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

lastrun.err

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


Joined: 28 Dec 2004
Posts: 8

PostPosted: Thu Dec 30, 2004 8:41 am    Post subject: lastrun.err Reply with quote

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

PostPosted: Thu Dec 30, 2004 7:56 pm    Post subject: Reply with quote

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

PostPosted: Thu Dec 30, 2004 8:16 pm    Post subject: chmoded Reply with quote

# 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

PostPosted: Thu Dec 30, 2004 8:22 pm    Post subject: Reply with quote

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

PostPosted: Thu Dec 30, 2004 8:26 pm    Post subject: mknod done Reply with quote

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

PostPosted: Thu Dec 30, 2004 8:34 pm    Post subject: Restart Reply with quote

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

PostPosted: Thu Dec 30, 2004 8:55 pm    Post subject: Nothing in graphs Reply with quote

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

PostPosted: Thu Dec 30, 2004 8:59 pm    Post subject: Reply with quote

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

PostPosted: Thu Dec 30, 2004 9:10 pm    Post subject: Reply with quote

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

PostPosted: Thu Dec 30, 2004 9:13 pm    Post subject: Reply with quote

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

PostPosted: Thu Dec 30, 2004 9:20 pm    Post subject: Reply with quote

Sorry, the *.rrd files were still to root

chowned now to netmrg:www*****

Bernard
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