Graphs disappear when I change their title...

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

Moderators: Developers, Moderators

Post Reply
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Graphs disappear when I change their title...

Post by Nick »

Hi,

All my graphs work fine when I create them from a default template (eg. "Interface - Traffic (bytes/sec)"). But When I change their title, they disappear, and I get this error:
ERROR: can't parse '#00CF00:Inbound'
Even if I change back the title, the graph still not display, and I have got the same error.

What I'm doing wrong ?

Nick
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Post by Nick »

Even if I use "Reapply Suggested Name" fonction, it doesn't work anymore...
I'm quite confused about this pb...

Any ideas? Is it a Bug ?

Thanks for advance.
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Post by Nick »

Me again :)

Well here are the graph sources before and after changing title.

Before:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=-1800 \
--title="Router La Roche Site 1 - Traffic - Se0/0.1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
DEF:a="/var/www/cacti/rra/router_la_roche_site_1_traffic_in_80.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/router_la_roche_site_1_traffic_in_80.rrd":traffic_out:AVERAGE \
AREA:a#00CF00:"Inbound" \
GPRINT:a:LAST:" Current\:%8.2lf%s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:a:MAX:"Maximum\:%8.2lf%s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:b#002A97:"Outbound" \
GPRINT:b:LAST:"Current\:%8.2lf%s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:b:MAX:"Maximum\:%8.2lf%s" \
COMMENT:"Total Out: 0 bytes"
After changing the title of the graph:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1106235411 \
--end=1106235410 \
--title="Router La Roche Site 1 - Traffic new name" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2005/01/20 16:36:51 To 2005/01/20 16:36:50\c" \
COMMENT:"\n" \
--vertical-label="bytes per second" \
AREA:#00CF00:"Inbound" \
GPRINT::LAST:"Current\:%8.2lf%s" \
GPRINT::AVERAGE:"Average\:%8.2lf%s" \
GPRINT::MAX:"Maximum\:%8.2lf%s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:#002A97:"Outbound" \
GPRINT::LAST:"Current\:%8.2lf%s" \
GPRINT::AVERAGE:"Average\:%8.2lf%s" \
GPRINT::MAX:"Maximum\:%8.2lf%s" \
COMMENT:"Total Out: 0 bytes"
We can see in the last one, that it miss the "DEF" lines. That why RRDTool can't parse succefully.
Is it a Cacti pb or RRDTool pb ?

Please any idea could help me ! :wink:
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This would appear to be a Cacti problem, although I cannot seem to reproduce it. Here are my steps:

1) Go to Devices and add a new device.
2) Assign the "SNMP - Interface Statistics" data query to it.
3) Go to New Graphs and choose the new device.
4) Select some interfaces, select "In/Out Bytes" for graph type, and click Create.
5) Run the poller (php poller.php) and confirm that your new graphs appear.
6) Go to Graph Management and select one of the new graphs that you just created.
7) Change the graph title and click Save.

Assuming that these were the steps you followed, this did not cause my graph to break under a default 0.8.6c install. Let me know if I am missing something.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests