gprint weirdness

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

Moderators: Developers, Moderators

Post Reply
foxbert
Posts: 1
Joined: Tue Mar 04, 2003 4:34 am

gprint weirdness

Post by foxbert »

I am using cacti to graph active connections on USR total control racks. From the rra's and the graphs I can tell the data extraction is going ok :)
However I have come across a very weird thing, sometimes the graph does not seem to pick up the GPRINTs I've defined.

Sometimes we get something like this :

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Netsrv00 Active Calls" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--vertical-label="" \
DEF:a="/mon/cacti/rra/netsrv00_modem_usage.rrd":netsrv00_modem_usag:AVERAGE \
AREA:a#0000FF:"" \
LINE1:a#000000:"" \
GPRINT:a:MAX:"maximum calls\:%8.0lf\n" \
GPRINT:a:AVERAGE:"average calls\:%8.0lf\n" \
GPRINT:a:LAST:"current calls\:%8.0lf"

(which is correct) but other times we get this :

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Netsrv05 Active Calls" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--vertical-label="" \
DEF:a="/mon/cacti/rra/netsrv05_modem_usag.rrd":netsrv05_modem_usag:AVERAGE \
AREA:a#0000FF:"" \
LINE1:a#000000:"" \
\
\

(which I got from duplicating the previous item!) This is obviously not so correct considering I do have GPRINTs defined on this. Even a quick look in mysql confirms this.

I have to say that this is rapidly doing my head in, and I would great appreciate any help given!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests