Can't add graphs to existing devices
Moderators: Developers, Moderators
Can't add graphs to existing devices
I have a bunch of devices and have upgraded to 0.8.7e. When I tried to add a new graph to an existing device, I get "This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information." I have run the debug mode and it returns a bunch of data. I have applied all the patches that are current with no issues. I have removed the entire cacti folder and reinstalled following the upgrade instructions. Any ideas on what else I should be looking for?
Running on Red Hat Linux release 7.1 (Seawolf)
I downloaded the source directly from cacti.net. I was on an older version and upgraded. Everything polls fine, just can no longer add new devices or graphs.
Date Wed, 25 Nov 2009 14:11:38 -0500
Cacti Version 0.8.7e
Cacti OS unix
SNMP Version NET-SNMP version: 5.1.2
RRDTool Version RRDTool 1.0.x
Hosts 72
Graphs 428
Data Sources Script/Command: 19
SNMP: 116
SNMP Query: 320
Script Query: 8
Total: 463
I downloaded the source directly from cacti.net. I was on an older version and upgraded. Everything polls fine, just can no longer add new devices or graphs.
Date Wed, 25 Nov 2009 14:11:38 -0500
Cacti Version 0.8.7e
Cacti OS unix
SNMP Version NET-SNMP version: 5.1.2
RRDTool Version RRDTool 1.0.x
Hosts 72
Graphs 428
Data Sources Script/Command: 19
SNMP: 116
SNMP Query: 320
Script Query: 8
Total: 463
It doesn't appear so.
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/www/htdocs-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'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.2' value: '2'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.3' value: '3'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.4' value: '4'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.5' value: '5'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.6' value: '6'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.7' value: '7'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.8' value: '8'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.9' value: '9'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.10' value: '10'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.11' value: '11'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.12' value: '12'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.13' value: '13'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.14' value: '14'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.15' value: '15'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.16' value: '16'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.17' value: '17'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.18' value: '18'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.19' value: '19'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.20' value: '20'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.21' value: '21'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.22' value: '22'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.23' value: '23'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.24' value: '24'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.25' value: '25'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.26' value: '26'
+ 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='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Found item [ifIndex='8'] index: 8 [from value]
+ Found item [ifIndex='9'] index: 9 [from value]
+ Found item [ifIndex='10'] index: 10 [from value]
+ Found item [ifIndex='11'] index: 11 [from value]
+ Found item [ifIndex='12'] index: 12 [from value]
+ Found item [ifIndex='13'] index: 13 [from value]
+ Found item [ifIndex='14'] index: 14 [from value]
+ Found item [ifIndex='15'] index: 15 [from value]
+ Found item [ifIndex='16'] index: 16 [from value]
+ Found item [ifIndex='17'] index: 17 [from value]
+ Found item [ifIndex='18'] index: 18 [from value]
+ Found item [ifIndex='19'] index: 19 [from value]
+ Found item [ifIndex='20'] index: 20 [from value]
+ Found item [ifIndex='21'] index: 21 [from value]
+ Found item [ifIndex='22'] index: 22 [from value]
+ Found item [ifIndex='23'] index: 23 [from value]
+ Found item [ifIndex='24'] index: 24 [from value]
+ Found item [ifIndex='25'] index: 25 [from value]
+ Found item [ifIndex='26'] index: 26 [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='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Down'] index: 5 [from value]
+ Found item [ifOperStatus='Up'] index: 6 [from value]
+ Found item [ifOperStatus='Down'] index: 7 [from value]
+ Found item [ifOperStatus='Down'] index: 8 [from value]
+ Found item [ifOperStatus='Down'] index: 9 [from value]
+ Found item [ifOperStatus='Up'] index: 10 [from value]
+ Found item [ifOperStatus='Up'] index: 11 [from value]
+ Found item [ifOperStatus='Up'] index: 12 [from value]
+ Found item [ifOperStatus='Down'] index: 13 [from value]
+ Found item [ifOperStatus='Down'] index: 14 [from value]
+ Found item [ifOperStatus='Up'] index: 15 [from value]
+ Found item [ifOperStatus='Up'] index: 16 [from value]
+ Found item [ifOperStatus='Up'] index: 17 [from value]
+ Found item [ifOperStatus='Down'] index: 18 [from value]
+ Found item [ifOperStatus='Up'] index: 19 [from value]
+ Found item [ifOperStatus='Up'] index: 20 [from value]
+ Found item [ifOperStatus='Up'] index: 21 [from value]
+ Found item [ifOperStatus='Down'] index: 22 [from value]
+ Found item [ifOperStatus='Down'] index: 23 [from value]
+ Found item [ifOperStatus='Up'] index: 24 [from value]
+ Found item [ifOperStatus='Up'] index: 25 [from value]
+ Found item [ifOperStatus='Up'] index: 26 [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='FastEthernet0/1'] index: 1 [from value]
+ Found item [ifDescr='FastEthernet0/2'] index: 2 [from value]
+ Found item [ifDescr='FastEthernet0/3'] index: 3 [from value]
+ Found item [ifDescr='FastEthernet0/4'] index: 4 [from value]
+ Found item [ifDescr='FastEthernet0/5'] index: 5 [from value]
+ Found item [ifDescr='FastEthernet0/6'] index: 6 [from value]
+ Found item [ifDescr='FastEthernet0/7'] index: 7 [from value]
+ Found item [ifDescr='FastEthernet0/8'] index: 8 [from value]
+ Found item [ifDescr='FastEthernet0/9'] index: 9 [from value]
+ Found item [ifDescr='FastEthernet0/10'] index: 10 [from value]
+ Found item [ifDescr='FastEthernet0/11'] index: 11 [from value]
+ Found item [ifDescr='FastEthernet0/12'] index: 12 [from value]
+ Found item [ifDescr='FastEthernet0/13'] index: 13 [from value]
+ Found item [ifDescr='FastEthernet0/14'] index: 14 [from value]
+ Found item [ifDescr='FastEthernet0/15'] index: 15 [from value]
+ Found item [ifDescr='FastEthernet0/16'] index: 16 [from value]
+ Found item [ifDescr='FastEthernet0/17'] index: 17 [from value]
+ Found item [ifDescr='FastEthernet0/18'] index: 18 [from value]
+ Found item [ifDescr='FastEthernet0/19'] index: 19 [from value]
+ Found item [ifDescr='FastEthernet0/20'] index: 20 [from value]
+ Found item [ifDescr='FastEthernet0/21'] index: 21 [from value]
+ Found item [ifDescr='FastEthernet0/22'] index: 22 [from value]
+ Found item [ifDescr='FastEthernet0/23'] index: 23 [from value]
+ Found item [ifDescr='FastEthernet0/24'] index: 24 [from value]
+ Found item [ifDescr='Null0'] index: 25 [from value]
+ Found item [ifDescr='Vlan1'] index: 26 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='Fa0/1'] index: 1 [from value]
+ Found item [ifName='Fa0/2'] index: 2 [from value]
+ Found item [ifName='Fa0/3'] index: 3 [from value]
+ Found item [ifName='Fa0/4'] index: 4 [from value]
+ Found item [ifName='Fa0/5'] index: 5 [from value]
+ Found item [ifName='Fa0/6'] index: 6 [from value]
+ Found item [ifName='Fa0/7'] index: 7 [from value]
+ Found item [ifName='Fa0/8'] index: 8 [from value]
+ Found item [ifName='Fa0/9'] index: 9 [from value]
+ Found item [ifName='Fa0/10'] index: 10 [from value]
+ Found item [ifName='Fa0/11'] index: 11 [from value]
+ Found item [ifName='Fa0/12'] index: 12 [from value]
+ Found item [ifName='Fa0/13'] index: 13 [from value]
+ Found item [ifName='Fa0/14'] index: 14 [from value]
+ Found item [ifName='Fa0/15'] index: 15 [from value]
+ Found item [ifName='Fa0/16'] index: 16 [from value]
+ Found item [ifName='Fa0/17'] index: 17 [from value]
+ Found item [ifName='Fa0/18'] index: 18 [from value]
+ Found item [ifName='Fa0/19'] index: 19 [from value]
+ Found item [ifName='Fa0/20'] index: 20 [from value]
+ Found item [ifName='Fa0/21'] index: 21 [from value]
+ Found item [ifName='Fa0/22'] index: 22 [from value]
+ Found item [ifName='Fa0/23'] index: 23 [from value]
+ Found item [ifName='Fa0/24'] index: 24 [from value]
+ Found item [ifName='Nu0'] index: 25 [from value]
+ Found item [ifName='Vl1'] index: 26 [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 1 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 4 [from value]
+ Found item [ifAlias=''] index: 5 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 6 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 7 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 8 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 9 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 10 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 11 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 12 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 13 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 14 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 15 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 16 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 17 [from value]
+ Found item [ifAlias=''] index: 18 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 19 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 20 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxxt'] index: 21 [from value]
+ Found item [ifAlias=''] index: 22 [from value]
+ Found item [ifAlias=''] index: 23 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 24 [from value]
+ Found item [ifAlias=''] index: 25 [from value]
+ Found item [ifAlias=''] index: 26 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd(6)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 6 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 8 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 9 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 10 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 11 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 12 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 13 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 14 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 15 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 16 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 17 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 18 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 19 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 20 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 21 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 22 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 23 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 24 [from value]
+ Found item [ifType='other(1)'] index: 25 [from value]
+ Found item [ifType='propVirtual(53)'] index: 26 [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='100000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 2 [from value]
+ Found item [ifSpeed='100000000'] index: 3 [from value]
+ Found item [ifSpeed='100000000'] index: 4 [from value]
+ Found item [ifSpeed='100000000'] index: 5 [from value]
+ Found item [ifSpeed='100000000'] index: 6 [from value]
+ Found item [ifSpeed='100000000'] index: 7 [from value]
+ Found item [ifSpeed='100000000'] index: 8 [from value]
+ Found item [ifSpeed='100000000'] index: 9 [from value]
+ Found item [ifSpeed='100000000'] index: 10 [from value]
+ Found item [ifSpeed='100000000'] index: 11 [from value]
+ Found item [ifSpeed='100000000'] index: 12 [from value]
+ Found item [ifSpeed='100000000'] index: 13 [from value]
+ Found item [ifSpeed='100000000'] index: 14 [from value]
+ Found item [ifSpeed='100000000'] index: 15 [from value]
+ Found item [ifSpeed='100000000'] index: 16 [from value]
+ Found item [ifSpeed='100000000'] index: 17 [from value]
+ Found item [ifSpeed='100000000'] index: 18 [from value]
+ Found item [ifSpeed='100000000'] index: 19 [from value]
+ Found item [ifSpeed='100000000'] index: 20 [from value]
+ Found item [ifSpeed='100000000'] index: 21 [from value]
+ Found item [ifSpeed='10000000'] index: 22 [from value]
+ Found item [ifSpeed='10000000'] index: 23 [from value]
+ Found item [ifSpeed='100000000'] index: 24 [from value]
+ Found item [ifSpeed='4294967295'] index: 25 [from value]
+ Found item [ifSpeed='1000000000'] index: 26 [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='00:07:85:52:11:41'] index: 1 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:42'] index: 2 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:43'] index: 3 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:44'] index: 4 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:45'] index: 5 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:46'] index: 6 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:47'] index: 7 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:48'] index: 8 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:49'] index: 9 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4A'] index: 10 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4B'] index: 11 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4C'] index: 12 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4D'] index: 13 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4E'] index: 14 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4F'] index: 15 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:50'] index: 16 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:51'] index: 17 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:52'] index: 18 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:53'] index: 19 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:54'] index: 20 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:55'] index: 21 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:56'] index: 22 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:57'] index: 23 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:58'] index: 24 [from value]
+ Found item [ifHwAddr=''] index: 25 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:40'] index: 26 [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='xxxxxx'] index: 26 [from regexp oid parse]
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/www/htdocs-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'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.2' value: '2'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.3' value: '3'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.4' value: '4'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.5' value: '5'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.6' value: '6'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.7' value: '7'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.8' value: '8'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.9' value: '9'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.10' value: '10'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.11' value: '11'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.12' value: '12'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.13' value: '13'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.14' value: '14'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.15' value: '15'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.16' value: '16'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.17' value: '17'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.18' value: '18'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.19' value: '19'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.20' value: '20'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.21' value: '21'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.22' value: '22'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.23' value: '23'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.24' value: '24'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.25' value: '25'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.26' value: '26'
+ 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='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Found item [ifIndex='8'] index: 8 [from value]
+ Found item [ifIndex='9'] index: 9 [from value]
+ Found item [ifIndex='10'] index: 10 [from value]
+ Found item [ifIndex='11'] index: 11 [from value]
+ Found item [ifIndex='12'] index: 12 [from value]
+ Found item [ifIndex='13'] index: 13 [from value]
+ Found item [ifIndex='14'] index: 14 [from value]
+ Found item [ifIndex='15'] index: 15 [from value]
+ Found item [ifIndex='16'] index: 16 [from value]
+ Found item [ifIndex='17'] index: 17 [from value]
+ Found item [ifIndex='18'] index: 18 [from value]
+ Found item [ifIndex='19'] index: 19 [from value]
+ Found item [ifIndex='20'] index: 20 [from value]
+ Found item [ifIndex='21'] index: 21 [from value]
+ Found item [ifIndex='22'] index: 22 [from value]
+ Found item [ifIndex='23'] index: 23 [from value]
+ Found item [ifIndex='24'] index: 24 [from value]
+ Found item [ifIndex='25'] index: 25 [from value]
+ Found item [ifIndex='26'] index: 26 [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='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Down'] index: 5 [from value]
+ Found item [ifOperStatus='Up'] index: 6 [from value]
+ Found item [ifOperStatus='Down'] index: 7 [from value]
+ Found item [ifOperStatus='Down'] index: 8 [from value]
+ Found item [ifOperStatus='Down'] index: 9 [from value]
+ Found item [ifOperStatus='Up'] index: 10 [from value]
+ Found item [ifOperStatus='Up'] index: 11 [from value]
+ Found item [ifOperStatus='Up'] index: 12 [from value]
+ Found item [ifOperStatus='Down'] index: 13 [from value]
+ Found item [ifOperStatus='Down'] index: 14 [from value]
+ Found item [ifOperStatus='Up'] index: 15 [from value]
+ Found item [ifOperStatus='Up'] index: 16 [from value]
+ Found item [ifOperStatus='Up'] index: 17 [from value]
+ Found item [ifOperStatus='Down'] index: 18 [from value]
+ Found item [ifOperStatus='Up'] index: 19 [from value]
+ Found item [ifOperStatus='Up'] index: 20 [from value]
+ Found item [ifOperStatus='Up'] index: 21 [from value]
+ Found item [ifOperStatus='Down'] index: 22 [from value]
+ Found item [ifOperStatus='Down'] index: 23 [from value]
+ Found item [ifOperStatus='Up'] index: 24 [from value]
+ Found item [ifOperStatus='Up'] index: 25 [from value]
+ Found item [ifOperStatus='Up'] index: 26 [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='FastEthernet0/1'] index: 1 [from value]
+ Found item [ifDescr='FastEthernet0/2'] index: 2 [from value]
+ Found item [ifDescr='FastEthernet0/3'] index: 3 [from value]
+ Found item [ifDescr='FastEthernet0/4'] index: 4 [from value]
+ Found item [ifDescr='FastEthernet0/5'] index: 5 [from value]
+ Found item [ifDescr='FastEthernet0/6'] index: 6 [from value]
+ Found item [ifDescr='FastEthernet0/7'] index: 7 [from value]
+ Found item [ifDescr='FastEthernet0/8'] index: 8 [from value]
+ Found item [ifDescr='FastEthernet0/9'] index: 9 [from value]
+ Found item [ifDescr='FastEthernet0/10'] index: 10 [from value]
+ Found item [ifDescr='FastEthernet0/11'] index: 11 [from value]
+ Found item [ifDescr='FastEthernet0/12'] index: 12 [from value]
+ Found item [ifDescr='FastEthernet0/13'] index: 13 [from value]
+ Found item [ifDescr='FastEthernet0/14'] index: 14 [from value]
+ Found item [ifDescr='FastEthernet0/15'] index: 15 [from value]
+ Found item [ifDescr='FastEthernet0/16'] index: 16 [from value]
+ Found item [ifDescr='FastEthernet0/17'] index: 17 [from value]
+ Found item [ifDescr='FastEthernet0/18'] index: 18 [from value]
+ Found item [ifDescr='FastEthernet0/19'] index: 19 [from value]
+ Found item [ifDescr='FastEthernet0/20'] index: 20 [from value]
+ Found item [ifDescr='FastEthernet0/21'] index: 21 [from value]
+ Found item [ifDescr='FastEthernet0/22'] index: 22 [from value]
+ Found item [ifDescr='FastEthernet0/23'] index: 23 [from value]
+ Found item [ifDescr='FastEthernet0/24'] index: 24 [from value]
+ Found item [ifDescr='Null0'] index: 25 [from value]
+ Found item [ifDescr='Vlan1'] index: 26 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='Fa0/1'] index: 1 [from value]
+ Found item [ifName='Fa0/2'] index: 2 [from value]
+ Found item [ifName='Fa0/3'] index: 3 [from value]
+ Found item [ifName='Fa0/4'] index: 4 [from value]
+ Found item [ifName='Fa0/5'] index: 5 [from value]
+ Found item [ifName='Fa0/6'] index: 6 [from value]
+ Found item [ifName='Fa0/7'] index: 7 [from value]
+ Found item [ifName='Fa0/8'] index: 8 [from value]
+ Found item [ifName='Fa0/9'] index: 9 [from value]
+ Found item [ifName='Fa0/10'] index: 10 [from value]
+ Found item [ifName='Fa0/11'] index: 11 [from value]
+ Found item [ifName='Fa0/12'] index: 12 [from value]
+ Found item [ifName='Fa0/13'] index: 13 [from value]
+ Found item [ifName='Fa0/14'] index: 14 [from value]
+ Found item [ifName='Fa0/15'] index: 15 [from value]
+ Found item [ifName='Fa0/16'] index: 16 [from value]
+ Found item [ifName='Fa0/17'] index: 17 [from value]
+ Found item [ifName='Fa0/18'] index: 18 [from value]
+ Found item [ifName='Fa0/19'] index: 19 [from value]
+ Found item [ifName='Fa0/20'] index: 20 [from value]
+ Found item [ifName='Fa0/21'] index: 21 [from value]
+ Found item [ifName='Fa0/22'] index: 22 [from value]
+ Found item [ifName='Fa0/23'] index: 23 [from value]
+ Found item [ifName='Fa0/24'] index: 24 [from value]
+ Found item [ifName='Nu0'] index: 25 [from value]
+ Found item [ifName='Vl1'] index: 26 [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 1 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 4 [from value]
+ Found item [ifAlias=''] index: 5 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 6 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 7 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 8 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 9 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 10 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 11 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 12 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 13 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 14 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 15 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 16 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 17 [from value]
+ Found item [ifAlias=''] index: 18 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 19 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 20 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxxt'] index: 21 [from value]
+ Found item [ifAlias=''] index: 22 [from value]
+ Found item [ifAlias=''] index: 23 [from value]
+ Found item [ifAlias='xxxxxxxxxxxxx'] index: 24 [from value]
+ Found item [ifAlias=''] index: 25 [from value]
+ Found item [ifAlias=''] index: 26 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd(6)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 6 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 8 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 9 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 10 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 11 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 12 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 13 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 14 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 15 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 16 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 17 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 18 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 19 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 20 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 21 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 22 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 23 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 24 [from value]
+ Found item [ifType='other(1)'] index: 25 [from value]
+ Found item [ifType='propVirtual(53)'] index: 26 [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='100000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 2 [from value]
+ Found item [ifSpeed='100000000'] index: 3 [from value]
+ Found item [ifSpeed='100000000'] index: 4 [from value]
+ Found item [ifSpeed='100000000'] index: 5 [from value]
+ Found item [ifSpeed='100000000'] index: 6 [from value]
+ Found item [ifSpeed='100000000'] index: 7 [from value]
+ Found item [ifSpeed='100000000'] index: 8 [from value]
+ Found item [ifSpeed='100000000'] index: 9 [from value]
+ Found item [ifSpeed='100000000'] index: 10 [from value]
+ Found item [ifSpeed='100000000'] index: 11 [from value]
+ Found item [ifSpeed='100000000'] index: 12 [from value]
+ Found item [ifSpeed='100000000'] index: 13 [from value]
+ Found item [ifSpeed='100000000'] index: 14 [from value]
+ Found item [ifSpeed='100000000'] index: 15 [from value]
+ Found item [ifSpeed='100000000'] index: 16 [from value]
+ Found item [ifSpeed='100000000'] index: 17 [from value]
+ Found item [ifSpeed='100000000'] index: 18 [from value]
+ Found item [ifSpeed='100000000'] index: 19 [from value]
+ Found item [ifSpeed='100000000'] index: 20 [from value]
+ Found item [ifSpeed='100000000'] index: 21 [from value]
+ Found item [ifSpeed='10000000'] index: 22 [from value]
+ Found item [ifSpeed='10000000'] index: 23 [from value]
+ Found item [ifSpeed='100000000'] index: 24 [from value]
+ Found item [ifSpeed='4294967295'] index: 25 [from value]
+ Found item [ifSpeed='1000000000'] index: 26 [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='00:07:85:52:11:41'] index: 1 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:42'] index: 2 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:43'] index: 3 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:44'] index: 4 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:45'] index: 5 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:46'] index: 6 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:47'] index: 7 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:48'] index: 8 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:49'] index: 9 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4A'] index: 10 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4B'] index: 11 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4C'] index: 12 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4D'] index: 13 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4E'] index: 14 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:4F'] index: 15 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:50'] index: 16 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:51'] index: 17 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:52'] index: 18 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:53'] index: 19 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:54'] index: 20 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:55'] index: 21 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:56'] index: 22 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:57'] index: 23 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:58'] index: 24 [from value]
+ Found item [ifHwAddr=''] index: 25 [from value]
+ Found item [ifHwAddr='00:07:85:52:11:40'] index: 26 [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='xxxxxx'] index: 26 [from regexp oid parse]
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/www/htdocs-cacti/resource/snmp_queries/interface.xml'
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I meant: increase logging level and watch THE LOG while issuing a Verbose Query. It may happen, that the sql's generated when using Vernose Query are failinggandalf wrote:Please increase poller verbosity to find the SQL commands in cacti.log. Do you see any errors there when you're doing a "Verbose Query"?
R.
R.
Here is the log detail with the updated log data based on the permission changes for the log file.
12/01/2009 09:58:21 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT host_id, snmp_query_id, snmp_index, MAX(CASE WHEN field_name='ifAlias' THEN field_value ELSE NULL END) AS 'ifAlias', MAX(CASE WHEN field_name='ifDescr' THEN field_value ELSE NULL END) AS 'ifDescr', MAX(CASE WHEN field_name='ifHwAddr' THEN field_value ELSE NULL END) AS 'ifHwAddr', MAX(CASE WHEN field_name='ifIndex' THEN field_value ELSE NULL END) AS 'ifIndex', MAX(CASE WHEN field_name='ifIP' THEN field_value ELSE NULL END) AS 'ifIP', MAX(CASE WHEN field_name='ifName' THEN field_value ELSE NULL END) AS 'ifName', MAX(CASE WHEN field_name='ifOperStatus' THEN field_value ELSE NULL END) AS 'ifOperStatus', MAX(CASE WHEN field_name='ifSpeed' THEN field_value ELSE NULL END) AS 'ifSpeed', MAX(CASE WHEN field_name='ifType' THEN field_value ELSE NULL END) AS 'ifType' FROM host_snmp_cache WHERE host_id=117 AND snmp_query_id=1 GROUP BY host_id, snmp_query_id, snmp_index ORDER BY CAST(snmp_index AS unsigned) LIMIT 0,30"
12/01/2009 09:58:21 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT host_id, snmp_query_id, snmp_index, MAX(CASE WHEN field_name='ifAlias' THEN field_value ELSE NULL END) AS 'ifAlias', MAX(CASE WHEN field_name='ifDescr' THEN field_value ELSE NULL END) AS 'ifDescr', MAX(CASE WHEN field_name='ifHwAddr' THEN field_value ELSE NULL END) AS 'ifHwAddr', MAX(CASE WHEN field_name='ifIndex' THEN field_value ELSE NULL END) AS 'ifIndex', MAX(CASE WHEN field_name='ifIP' THEN field_value ELSE NULL END) AS 'ifIP', MAX(CASE WHEN field_name='ifName' THEN field_value ELSE NULL END) AS 'ifName', MAX(CASE WHEN field_name='ifOperStatus' THEN field_value ELSE NULL END) AS 'ifOperStatus', MAX(CASE WHEN field_name='ifSpeed' THEN field_value ELSE NULL END) AS 'ifSpeed', MAX(CASE WHEN field_name='ifType' THEN field_value ELSE NULL END) AS 'ifType' FROM host_snmp_cache WHERE host_id=117 AND snmp_query_id=1 GROUP BY host_id, snmp_query_id, snmp_index ORDER BY CAST(snmp_index AS unsigned) LIMIT 0,30"
Here is what occurs when I run it from the command line mysql.
ERROR 1064: You have an error in your SQL syntax near '(snmp_index AS unsigned) LIMIT 0,30' at line 1
I am running mysql cacti -u cactiuser -p
and then I am running:
SELECT host_id, snmp_query_id, snmp_index, MAX(CASE WHEN field_name=ifAlias THEN field_value ELSE NULL END) AS ifAlias, MAX(CASE WHEN field_name=ifDescr THEN field_value ELSE NULL END) AS ifDescr, MAX(CASE WHEN field_name=ifHwAddr THEN field_value ELSE NULL END) AS ifHwAddr, MAX(CASE WHEN field_name=ifIndex THEN field_value ELSE NULL END) AS ifIndex, MAX(CASE WHEN field_name=ifIP THEN field_value ELSE NULL END) AS ifIP, MAX(CASE WHEN field_name=ifName THEN field_value ELSE NULL END) AS ifName, MAX(CASE WHEN field_name=ifOperStatus THEN field_value ELSE NULL END) AS ifOperStatus, MAX(CASE WHEN field_name=ifSpeed THEN field_value ELSE NULL END) AS ifSpeed, MAX(CASE WHEN field_name=ifType THEN field_value ELSE NULL END) AS ifType FROM host_snmp_cache WHERE host_id=117 AND snmp_query_id=1 GROUP BY host_id, snmp_query_id, snmp_index ORDER BY CAST(snmp_index AS unsigned) LIMIT 0,30;
ERROR 1064: You have an error in your SQL syntax near '(snmp_index AS unsigned) LIMIT 0,30' at line 1
I am running mysql cacti -u cactiuser -p
and then I am running:
SELECT host_id, snmp_query_id, snmp_index, MAX(CASE WHEN field_name=ifAlias THEN field_value ELSE NULL END) AS ifAlias, MAX(CASE WHEN field_name=ifDescr THEN field_value ELSE NULL END) AS ifDescr, MAX(CASE WHEN field_name=ifHwAddr THEN field_value ELSE NULL END) AS ifHwAddr, MAX(CASE WHEN field_name=ifIndex THEN field_value ELSE NULL END) AS ifIndex, MAX(CASE WHEN field_name=ifIP THEN field_value ELSE NULL END) AS ifIP, MAX(CASE WHEN field_name=ifName THEN field_value ELSE NULL END) AS ifName, MAX(CASE WHEN field_name=ifOperStatus THEN field_value ELSE NULL END) AS ifOperStatus, MAX(CASE WHEN field_name=ifSpeed THEN field_value ELSE NULL END) AS ifSpeed, MAX(CASE WHEN field_name=ifType THEN field_value ELSE NULL END) AS ifType FROM host_snmp_cache WHERE host_id=117 AND snmp_query_id=1 GROUP BY host_id, snmp_query_id, snmp_index ORDER BY CAST(snmp_index AS unsigned) LIMIT 0,30;
Who is online
Users browsing this forum: anwaraahmad1 and 0 guests