Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
+ Running data query [15].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/Zyxel_IES_CPU.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1' Index Count: 9
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.2.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.3.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.4.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.5.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.6.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.7.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.8.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.10.1' value: '1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.1.1' results: '1.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.2.1' results: '2.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.3.1' results: '3.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.4.1' results: '4.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.5.1' results: '5.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.6.1' results: '6.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.7.1' results: '7.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.8.1' results: '8.1'
+ index_parse at OID: '1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.1.0.10.1' results: '10.1'
+ Inserting index data for field 'cpuIndex' [value='1.1']
+ Inserting index data for field 'cpuIndex' [value='2.1']
+ Inserting index data for field 'cpuIndex' [value='3.1']
+ Inserting index data for field 'cpuIndex' [value='4.1']
+ Inserting index data for field 'cpuIndex' [value='5.1']
+ Inserting index data for field 'cpuIndex' [value='6.1']
+ Inserting index data for field 'cpuIndex' [value='7.1']
+ Inserting index data for field 'cpuIndex' [value='8.1']
+ Inserting index data for field 'cpuIndex' [value='10.1']
+ Located input field 'cpuDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.5'
+ Found item [cpuDescr='CPU1'] index: 1.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 2.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 3.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 4.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 5.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 6.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 7.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 8.1 [from value]
+ Found item [cpuDescr='CPU1'] index: 10.1 [from value]
+ Located input field 'cpuCurValue' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.2'
+ Found item [cpuCurValue='5'] index: 1.1 [from value]
+ Found item [cpuCurValue='5'] index: 2.1 [from value]
+ Found item [cpuCurValue='4'] index: 3.1 [from value]
+ Found item [cpuCurValue='5'] index: 4.1 [from value]
+ Found item [cpuCurValue='4'] index: 5.1 [from value]
+ Found item [cpuCurValue='5'] index: 6.1 [from value]
+ Found item [cpuCurValue='18'] index: 7.1 [from value]
+ Found item [cpuCurValue='51'] index: 8.1 [from value]
+ Found item [cpuCurValue='12'] index: 10.1 [from value]
Yes, you are probably right, I thought I would start a new thread as the other problem was solved.
I have read the debugging part, but all seems to work.
You can even see Cacti pull the right values when using <direction>input</direction> for that OID.
Also other graphs on same host is working fine.
So I guess I have made a mistake somewhere that I can not find.
Sorry, I have used Cacti for some time, but I`m new to making these kinds of query's.
How do I validated the script is spitting out data in cacti.log for these OIDs?
I get these warnings in log file, but they do not tell me much.
06/20/2013 02:25:03 AM - CMDPHP: Poller[0] Host[3] DS[109] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:04 AM - CMDPHP: Poller[0] Host[4] DS[616] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:04 AM - CMDPHP: Poller[0] Host[4] DS[616] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[736] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[737] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[738] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[739] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[740] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[741] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[742] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[743] WARNING: Result from SNMP not valid. Partial Result: U
06/20/2013 02:25:21 AM - CMDPHP: Poller[0] Host[5] DS[744] WARNING: Result from SNMP not valid. Partial Result: U
When looking at poller cache I noticed that a value was missing from OID (third last number).
Guess this happened with using <oid_index_parse>OID/REGEXP:^.{38}(.*)</oid_index_parse>
Fixed it now, and its finally working