lastrun.err

macrid

30-12-2004 03:41:57

I have no data in the graphs.
In the error log I can see

sh line 1 /dev/null Permission non accordée (denied)

I'm newin using NetMRG, this is my first use.

Sorry for my bad english I'm living in Belgium !!!!!

I'm using a Debian sarge.
Version of NetMRG is Version 0.18.2.

Bernard

silfreed

30-12-2004 14:56:19

Do you have write access to /dev/null? This is very odd for a linux installation. My permissions look like the following
[code1aac2a76261]$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 20 16:23 /dev/null[/code1aac2a76261]

-Doug

macrid

30-12-2004 15:16:50

# chmod 666 /dev/null
$ ls -l /dev/null
-rw-rw-rw- 1 root root 0 2004-12-30 2040 /dev/null

I don't have the crw ???

I will try like that

Thank for your help.

---------------------------------------------------------------------------------------
Aoccdrnig to a rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae we do not raed ervey lteter by itslef but the wrod as a wlohe.
---------------------------------------------------------------------------------------

silfreed

30-12-2004 15:22:18

Tha's very odd; your /dev/null should be a character device. Try the following
[code184b462c52d]rm /dev/null
mknod /dev/null c 1 3
chmod 666 /dev/null[/code184b462c52d]

I would make sure other things on your box are correct though; having a non-functioning /dev/null is very odd.

-Doug

macrid

30-12-2004 15:26:42

This is done, I have no more errors now. Just waiting if I have some date written in the graph.

Bernard

macrid

30-12-2004 15:34:38

I will restart my groups devices etc ... from scratch following your basic tutorial , to be sure I did it properly.

Thanks again for your help.

Bernard

macrid

30-12-2004 15:55:10

I just made a new group..... following your Basic tutorial.

Here is a cat of my lastrun.log

NetMRG starting.
[Dev 0006] Starting device thread at 2004-12-30 215002.
[Dev 0006] Ending device thread at 2004-12-30 215002, after a duration of 0 seconds.
Thread Ended.


Bernard

silfreed

30-12-2004 15:59:14

The output you listed is normal; are you still not getting any graphs?
If this is the case, the first thing I would do is check the permissions on the directory where the RRDs are stored (/usr/local/var/lib/netmrg/rrd for a source install) to make sure the files are writable by the user netmrg runs as from cron. Commonly these files will get created as root if you do 'test runs' as that user, then the netmrg user can't write to the files.

If the permissions seem correct, try running 'netmrg-gatherer -sm' and posting the output here.

-Doug

macrid

30-12-2004 16:10:47

The rrd files are in /var/lib/netmrg/rrd/

the user is well netmrg but the group was my web server.
I have done adduser netmrg www******

Bernard

macrid

30-12-2004 16:13:56

the result of the command is

# /usr/bin/netmrg-gatherer -sm
NetMRG starting.
Creating Lockfile.
Initializing SNMP library.
Initializing RRDTOOL pipe.
[ACTIVE] Last 0, Now 0
[Dev 0006] Starting device thread at 2004-12-30 221157.
[Dev 0006] MySQL connection established.
[Dev 0006] Fire / <Field Omitted>
[Dev 0006] SNMP Uptime is 19 days, 110039 (168359931 centiseconds)
[Dev 0006] Number of Interfaces is 4
[Dev 0006] [Sub 0011] Starting Subdevice.
[Dev 0006] Trimming device event log.
[Dev 0006] Ending device thread at 2004-12-30 221157, after a duration of 0 seconds.
Thread Ended.
Closed MySQL connection.
Runtime 1
Closed RRDTOOL pipe.
Cleaned up SNMP.

macrid

30-12-2004 16:20:08

Sorry, the *.rrd files were still to root

chowned now to netmrgwww*****

Bernard