I made a new Cacti device by adding a new server. I immediately ran the SQL query you asked for against it. Results were:
I let it go for a few poller cycles and found that it demonstrated the same behavior as mentioned above... From my CDEF
Code: Select all
cdef=CURRENT_DATA_SOURCE,|query_ifSpeed|,/,100,*,8,*
it replaced query_ifSpeed with the index number of the NIC as you can see here in the graph debug:
Code: Select all
CDEF:cdefa=a,65539,/,100,*,8,* \
CDEF:cdefb=b,65539,/,100,*,8,* \
I then did the Verbose SNMP Query "workaround" above from the device view of the new server. It yielded the following results:
Code: Select all
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='65539'] index: 65539 [from value]
+ Found item [ifIndex='65540'] index: 65540 [from value]
+ Found item [ifIndex='131077'] index: 131077 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='1'] index: 1 [from value]
+ Found item [ifOperStatus='1'] index: 65539 [from value]
+ Found item [ifOperStatus='1'] index: 65540 [from value]
+ Found item [ifOperStatus='1'] index: 131077 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='MS TCP Loopback interface'] index: 1 [from value]
+ Found item [ifDescr='Broadcom NetXtreme Gigabit Ethernet'] index: 65539 [from value]
+ Found item [ifDescr='Broadcom NetXtreme Gigabit Ethernet #2'] index: 65540 [from value]
+ Found item [ifDescr='WAN (PPP/SLIP) Interface'] index: 131077 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='24'] index: 1 [from value]
+ Found item [ifType='6'] index: 65539 [from value]
+ Found item [ifType='6'] index: 65540 [from value]
+ Found item [ifType='23'] index: 131077 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='1000000000'] index: 65539 [from value]
+ Found item [ifSpeed='1000000000'] index: 65540 [from value]
+ Found item [ifSpeed='19200'] index: 131077 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:0B:DB:E2:96:D8'] index: 65539 [from value]
+ Found item [ifHwAddr='00:0B:DB:E2:96:D9'] index: 65540 [from value]
+ Found item [ifHwAddr='00:53:45:00:00:00'] index: 131077 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='10.80.100.14'] index: 65539 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='192.168.0.60'] index: 65540 [from regexp oid parse]
+ Found item [ifIP='192.168.234.235'] index: 131077 [from regexp oid parse]
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\apachefriends\xampp\cacti/resource/snmp_queries/interface.xml'
I refreshed my browser that had been displaying the graph with the 72,000% utilization and found it had dropped down to a more reasonable 4% and the graph debug showed that the CDEF had found the right number this time:
Code: Select all
CDEF:cdefa=a,1000000000,/,100,*,8,* \
CDEF:cdefb=b,1000000000,/,100,*,8,* \
So I went back and re-ran the SQL queries I did at the first of the thread and wasn't too surprised to find it identical as it was before the "Verbose SNMP Query" since everything seemed in order the first time around.
Weird, huh??
Jason