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:""
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?