Cacti creates rrdtool command which is not correct

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
yalla
Posts: 2
Joined: Tue May 19, 2009 9:44 am

Cacti creates rrdtool command which is not correct

Post by yalla »

Hello,

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'
...
However, the graphs do not appear and the Apache error logs spits out some strange messages:

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...)
A little more digging and raising loglevels up to debug, I found that apparently the RRD command isn't generated correctly, so that rrdtool gives an error. Here one example:

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'
I'm not quite sure how to debug this one. I had the same error yesterday, when I created another snmp_query for something entirely else, but it went away when I deleted and recreated the graph. Other graphs don't seem to be affected.

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.
Attachments
citrix_osn_cpu_counters_templates.tar.gz
Data query, data template and graph template
(5.67 KiB) Downloaded 87 times
BMI-CPU.xml
belongs in resource/snmp_queries
(1.61 KiB) Downloaded 88 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti creates rrdtool command which is not correct

Post by gandalf »

Please show a screenshot of the graph template
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests