"STACK" graphs broken, invalid rrdtool graph comma

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

Moderators: Developers, Moderators

Post Reply
hume
Posts: 7
Joined: Fri Jan 20, 2006 11:04 am

"STACK" graphs broken, invalid rrdtool graph comma

Post by hume »

I've been playing around with Cacti, considering it as a replacement for our current intensive MRTG setup. It's certainly prettier, and a lot easier for the network/cable-puller guys to deal with, so long as they're only hooking up switches and routers.

However, I've been trying to hook up a simple script-provided-data graph, and after a lot of effort and fussing, I've gotten it to start providing useful data. It's a simple IN/OUT mail traffic graph from our mail relay. Messages in versus messages out.

This kind of graph would look nice as a stack/inverted-stack, I think. So I choose "STACK" in the graph template, and check the graphs produced... or not produced, in this case. If I use a LINE{1,2,3}, or AREA, I'm fine. STACK produces nothing. The debug output for the graph generation says it's trying to execute the following command:

Code: Select all

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Mail Traffic Statistics" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Messages" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/kilmx1_mail_rcvd_231.rrd":mail_rcvd:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/kilmx1_mail_rcvd_231.rrd":mail_sent:AVERAGE \
:a#00CF00:"":STACK \
LINE2:b#2175D9:"" 
That's wrong, isn't it? Why is STACK at the end? Shouldn't it be STACK:a#00CF00:"" ?

Sure enough, if I paste this into a shell, I get :

ERROR: Could not make sense out of ':a#00CF00::STACK'

But, if I switch the STACK keyword around, putting it first, it works fine.

I'm assuming this is a very simple bug, but I wanted to check, since I don't see anyone else mentioning it - and perhaps I'm just messed up someplace else, being such a new user. I'm running Cacti 0.8.6h + patches on FreeBSD, with RRDTool 1.2.12.

---

I'm a bit of an idiot... I notice now that Cacti has a RRDTool 1.0.x versus RRDTool 1.2.x lever... And Cacti specifically puts the STACK at the end for the sake of RRDTool 1.2.x. However... I've GOT RRDTool 1.2.12, so that should have worked from the beginning. Was this a workaround for a bug in RRDTool that has since been fixed?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

rrdtool syntax was changed from 1.0.x to 1.2.x and cacti deals with this based on this config setting ...
Reinhard
hume
Posts: 7
Joined: Fri Jan 20, 2006 11:04 am

Post by hume »

lvm wrote:rrdtool syntax was changed from 1.0.x to 1.2.x and cacti deals with this based on this config setting ...
I noticed that. However, it seems that the syntax for *my* copy of RRDTool 1.2.12 has NOT changed. Which is a bit weird.

In order to make it work properly, I have to tell Cacti that I have RRDTool 1.0.x, when I don't. (I've verified that Cacti is running the proper rrdtool binary).

Ah, well. I'm going to consider this to be something one-off about my particular system.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests