I created a snmp_query which collects CPU data from a custom SNMP-agent (not HOST-RESOURCE-MIB compatible).
The XML-file in resource/snmp_queries/BMI-CPU.xml parses happily, and after creating a data-template and a graph-template, assigning the query to a host, the data-query works happily:
Code: Select all
+ Running data query [12].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/BMI-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.8521.4.1.2.1.1.1.1' Index Count: 16
+ Index found at OID: '1.3.6.1.4.1.8521.4.1.2.1.1.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.8521.4.1.2.1.1.1.1.2' value: '2'
...
Code: Select all
ERROR: Could not make sense out of ':a#7EE600FF:cpuIOIdle:STACK'
ERROR: Could not make sense out of ':a#7EE600FF::STACK'
(...and a few others...)
Code: Select all
$ /usr/bin/rrdtool graph - --imgformat=PNG --start=1352379791 --end=1352466191 --title='machinename - Citrix OSN CPU Counters - CPU3' --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit='0' --no-legend COMMENT:"From 2012/11/08 14\:03\:11 To 2012/11/09 14\:03\:11\c" COMMENT:" \n" --vertical-label='%' --slope-mode --font TITLE:7: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/machinename_cpuiousertime_728.rrd":'cpuIOIdle':AVERAGE DEF:b="/usr/share/cacti/rra/machinename_cpuiousertime_728.rrd":'cpuIOSystemTime':AVERAGE DEF:c="/usr/share/cacti/rra/machinename_cpuiousertime_728.rrd":'cpuIOUserTime':AVERAGE DEF:d="/usr/share/cacti/rra/machinename_cpuiousertime_728.rrd":'cpuIOWaitingTime':AVERAGE :a#00CF00FF:"":STACK :b#FF7D00FF:"":STACK :c#4668E4FF:"":STACK :c#FF0000FF:"":STACK
ERROR: Could not make sense out of ':a#00CF00FF::STACK'
Can anyone tell me: What exactly is rrdtool complaining about? Also, assuming I did something odd in my templates, what exactly could be the cause? Is this a user error from my side or is this maybe a bug?
The only thing I did which makes me a little suspicious, was installing the aggregate plugin. But even disabling it doesn't seem to help.
The rrdtool is version 1.3.8 (RHEL 6.3 x86_64), Cacti version is 0.8.8a. Attached my snmp_query and the graph template to this posting.
Edit: Because I was curious I changed the graph type from "STACK" to "LINE1". Now the error is a little different. After recreating the graphs, the "Could not make sense"-errors are gone, but the graphs aren't created nonetheless. Now I only get "ERROR: opening '/usr/share/cacti/rra/ts2pepsv600_cpuiousertime_874.rrd': No such file or directory" and the such. Sigh.
Thanks a lot!
Alexander.