Another graphics problem

eddyilg

22-04-2008 06:52:33

Hi,

my graphs are not displaying. I already checked some other posts, but could not find a solution for my problem.

First of all The directory /var/lib/netmrg/rrd only contains the file zero.rrd. Does this mean, the gatherer is not working? Do I have to enable some modules to make the files appear in this directory?

The debug output of get_graph.php is
/usr/bin/rrdtool graph - -s -108000 -e -360 --title="Template Linux Box - System (UCD - CPU Percent User) (#1)" --imgformat PNG -g -w 575 -h 100 DEFdata1=/var/lib/netmrg/rrd/mon_1.rrdmon_1AVERAGE AREAdata1#151590

Script execution debug information
Marker Time Diff
Start 1208861169.07005700 -
before headers 1208861169.07010700 5E-05
before auth 1208861169.07016000 5.3E-05
after auth 1208861169.07054400 0.000384
before get command 1208861169.07056300 1.9E-05
after get command 1208861169.07081800 0.000255
before exec command 1208861169.07083400 1.6E-05
after exec command 1208861169.07619400 0.00536
Stop 1208861169.07624400 5E-05
Start to Stop 0.006187

netmrg-gatherer -a output is
NetMRG starting.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0064, C 0001] Creating Lockfile.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0064, C 0257] Initializing SNMP library.
[L 0064, C 0129] Initializing RRDTOOL pipe.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking MySQL
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Unlocking MySQL
[L 0128, C 1024] Mysql Query Succeeded. (SELECT version FROM versioninfo WHERE module = 'Main')
[L 0128, C 1024] Mysql Query Succeeded. (SELECT id FROM devices WHERE disabled=0 ORDER BY id)
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking ActiveThreads
[L 0128, C 0002] Unlocking ActiveThreads
[L 0064, C 0001] Closed MySQL connection.
[L 0064, C 0001] Runtime 1
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0064, C 0129] Closed RRDTOOL pipe.
[L 0064, C 0257] Cleaned up SNMP.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings

This also seems to work without problems.


What could be the cause for the graphs to be missing?


Best regards


Eddy Ilg

silfreed

22-04-2008 08:34:47

It sounds like the gatherer isn't running. Did you install from source or from the RPM? If from the RPM, you need to start the service to have it run (/sbin/service netmrg start); otherwise you need to setup an appropriate crontab entry.

-Doug

eddyilg

22-04-2008 16:36:04

The gatherer is registered as a cronjob. I have also executed it manually, several times and as the above output shows, it exits without errors.

What could be the problem?

silfreed

22-04-2008 20:45:12

Does the user the netmrg-gatherer is running as have permission to write to the rrd directory?