lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Error with get_graph.php / rrdtool

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
iggy78
Beginner


Joined: 06 Apr 2006
Posts: 7

PostPosted: Thu Apr 06, 2006 10:15 am    Post subject: Error with get_graph.php / rrdtool Reply with quote

Hello,
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:

Quote:

ERROR: Could not parse color in 'F0000'


And the command is:
Quote:

/usr/bin/rrdtool graph - -s -108000 -e -360 --title "Routeur - TCP Connections" -w 575 -h 100 -b 1000 -v "Connections" --imgformat PNG DEF:zero=/var/lib/netmrg/rrd/zero.rrd:mon_25:AVERAGE DEF:data1=/var/lib/netmrg/rrd/mon_28.rrd:mon_28:AVERAGE DEF:data1l=/var/lib/netmrg/rrd/mon_28.rrd:mon_28:LAST DEF:data1m=/var/lib/netmrg/rrd/mon_28.rrd:mon_28:MAX AREA:data1#330066:"TCP Connections" GPRINT:data1l:LAST:"Current\:%8.2lf %s" GPRINT:data1:AVERAGE:"Average\:%8.2lf %s" GPRINT:data1m:MAX:"Maximum\:%8.2lf %s" COMMENT:"\n" VRULE:1144274400#F00000


If someone can help me Smile
P.S.: I'm using the 1.2.11 version of rrdtool
Back to top
iggy78
Beginner


Joined: 06 Apr 2006
Posts: 7

PostPosted: Thu Apr 06, 2006 10:28 am    Post subject: Reply with quote

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

Quote:

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

ideas??
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Thu Apr 06, 2006 12:42 pm    Post subject: Reply with quote

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.

-Doug
Back to top
iggy78
Beginner


Joined: 06 Apr 2006
Posts: 7

PostPosted: Thu Apr 06, 2006 1:27 pm    Post subject: Reply with quote

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?
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Thu Apr 06, 2006 1:30 pm    Post subject: Reply with quote

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.

-Doug
Back to top
iggy78
Beginner


Joined: 06 Apr 2006
Posts: 7

PostPosted: Thu Apr 06, 2006 2:21 pm    Post subject: Reply with quote

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). (edit: ok when i click on the snmp recache icon, it run the netmrg-gatherer command)

So... now only some graphs displays i have errors like on the router main page
Quote:

ERROR: Garbage ': %ifDescr%' after command:
COMMENT:Interface: %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[/i]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group