|
|
| Author |
Message |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 8:41 am Post subject: lastrun.err |
|
|
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 |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu Dec 30, 2004 7:56 pm Post subject: |
|
|
Do you have write access to /dev/null? This is very odd for a linux installation. My permissions look like the following:
| Code: |
$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 20 16:23 /dev/null |
-Doug |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 8:16 pm Post subject: chmoded |
|
|
# chmod 666 /dev/null
$ ls -l /dev/null
-rw-rw-rw- 1 root root 0 2004-12-30 20:40 /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.
--------------------------------------------------------------------------------------- |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu Dec 30, 2004 8:22 pm Post subject: |
|
|
Tha's very odd; your /dev/null should be a character device. Try the following:
| Code: |
rm /dev/null
mknod /dev/null c 1 3
chmod 666 /dev/null |
I would make sure other things on your box are correct though; having a non-functioning /dev/null is very odd.
-Doug |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 8:26 pm Post subject: mknod done |
|
|
This is done, I have no more errors now. Just waiting if I have some date written in the graph.
Bernard |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 8:34 pm Post subject: Restart |
|
|
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 |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 8:55 pm Post subject: Nothing in graphs |
|
|
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 21:50:02.
[Dev: 0006] Ending device thread at 2004-12-30 21:50:02, after a duration of 0 seconds.
Thread Ended.
Bernard |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu Dec 30, 2004 8:59 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 9:10 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 9:13 pm Post subject: |
|
|
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 22:11:57.
[Dev: 0006] MySQL connection established.
[Dev: 0006] Fire / <Field Omitted>
[Dev: 0006] SNMP Uptime is 19 days, 11:00:39 (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 22:11:57, after a duration of 0 seconds.
Thread Ended.
Closed MySQL connection.
Runtime: 1
Closed RRDTOOL pipe.
Cleaned up SNMP. |
|
| Back to top |
|
 |
macrid Beginner
Joined: 28 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 9:20 pm Post subject: |
|
|
Sorry, the *.rrd files were still to root
chowned now to netmrg:www*****
Bernard |
|
| Back to top |
|
 |
|