Error with get_graph.php / rrdtool


06-04-2006 06:15:55

On my netmrg web interface, graphics don't display, so i do the wiki debugging indications (with the &debug=1), i copy paste the command in my terminal and i have the following error

ERROR Could not parse color in 'F0000'

And the command is
/usr/bin/rrdtool graph - -s -108000 -e -360 --title "Routeur - TCP Connections" -w 575 -h 100 -b 1000 -v "Connections" --imgformat PNG DEFzero=/var/lib/netmrg/rrd/zero.rrdmon_25AVERAGE DEFdata1=/var/lib/netmrg/rrd/mon_28.rrdmon_28AVERAGE DEFdata1l=/var/lib/netmrg/rrd/mon_28.rrdmon_28LAST DEFdata1m=/var/lib/netmrg/rrd/mon_28.rrdmon_28MAX AREAdata1#330066"TCP Connections" GPRINTdata1lLAST"Current\%8.2lf %s" GPRINTdata1AVERAGE"Average\%8.2lf %s" GPRINTdata1mMAX"Maximum\%8.2lf %s" COMMENT"\n" VRULE1144274400#F00000

If someone can help me )
P.S. I'm using the 1.2.11 version of rrdtool


06-04-2006 06:28:41

If i delete de #FF0000 at the end of the command, i have a opening file error

ERROR opening '/var/lib/netmrg/rrd/mon_28.rrd' No such file or directory

This file don't exist, but some others .rrd files exist like mon_26.rrd file



06-04-2006 08:42:24

The color problem sounds like you might've setup a template or custom graph incorrectly. I would check there first.
The missing monitor file part sounds like there might be a permissions problem. Check the directory that the rrd files live in to make sure that the web server can read them. If they get created by root (common when you're debugging/tesing the install) then they might not be readable by the web server.



06-04-2006 09:27:20

Ok thank you, i have looked your indications but i use only the default template (linux box graphs) and the permissions seem good

The /var/lib/netmrg/rrd directory and included files are set to
user netmrg and group www-data

with 755 permission mask

i have added netmrg user in the www-data group (in the /etc/group file)
And the apache user.

How to know by which user the rrd files are created?


06-04-2006 09:30:47

The .rrd files are created by the user that runs netmrg-gatherer from cron. We typically try to create a netmrg user and have it run as that user. Make sure you look at the actual .rrd files and make sure permissions look good on them as well. Whatever user the netmrg-gatherer is being run by also needs to be able to write to the .rrd files.



06-04-2006 10:21:02

There was no entry in the crontab but it was not the problem

i don't understand what is the function of the entry in the crontab and the /usr/local/var/lock/subsys/netmrg (file or directory don't exist on my ubuntu). ([ibb9940d415]edit ok when i click on the snmp recache icon, it run the netmrg-gatherer command[/ibb9940d415])

So... now only some graphs displays i have errors like on the router main page
ERROR Garbage ' %ifDescr%' after command
COMMENTInterface %ifDescr%

But the interface - Bytes In and interface - Bytes In seem working good (graph display)... but with wrong values (ifInbytes.%ifIndex) (pearaps i need to write something like ifInBytes.%ifIndex/1000000)

i continue to brainstorming and reading docs, thank you for your help silfreed

for display interfaces graph i have created a new graph template (for color problem) and create two new snmp test (in/out) that i apply on the router device type

My routeur is a RV042 from linksys