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

confused

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


Joined: 17 Mar 2004
Posts: 3

PostPosted: Wed Mar 17, 2004 10:29 am    Post subject: confused Reply with quote

hello there. i managed to install latest version of netmrg on my slackware 9.1. Well, things are fine..i mean i can view graph and it shows up.. but i need to type in the command netmrg-gatherer as root everytime i wanted to update the graph...

One more thing is the crontab issue. i tried to follow the 1st suggestion, which is the crontab -e . does it mean by running from root and typed in this command? --> crontab -e netmrg. After i typed in this, then i typed in
su netmrg
*/5 * * * * /usr/local/bin/netmrg_cron.sh
exit

inside the crontab..but i still cant update it automatically..any idea? thanks.
Back to top
silfreed
Site Admin


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

PostPosted: Wed Mar 17, 2004 2:13 pm    Post subject: Reply with quote

If you were running netmrg-gatherer as root to start, the RRD files where probably created as root, so running it as your NetMRG user now won't work (it won't have permission to write to the files).
If your rrd files are in /usr/local/var/lib/netmrg/rrd/, then the following should make things better:
Code:
chown netmrg: /usr/local/var/lib/netmrg/rrd/*.rrd


Let us know if this helps.

-Doug
Back to top
madjackal
Beginner


Joined: 17 Mar 2004
Posts: 3

PostPosted: Thu Mar 18, 2004 3:20 am    Post subject: Reply with quote

thanks for the reply. :) well, indeed the file permissions of *.rrd files are owned by root. i changed it to netmrg now...and then i su into netmrg and type crontab -e and put in :-

*/2 * * * * /usr/loca/bin/netmrg_cron.sh

well..it got updated..but i need to click on Slideshow everytime..do you guys think it gotta do with the polling i set on netmrg.xml(i set the value to 60) ?? or something else?

Thanks.
Back to top
silfreed
Site Admin


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

PostPosted: Thu Mar 18, 2004 3:21 pm    Post subject: Reply with quote

You must have some really high-flowing interfaces to need to poll every minute.

If you changed the polling rate in netmrg.xml, this will only apply to newly created RRDs (it's just the way those work), unless you want to hand-modify them.
Also, if you have your polling interval in netmrg.xml set to 60 seconds, you should be running netmrg_cron.sh every minute (* * * * * in cron).
You should be able to get to your graphs by clicking on device tree, then opening up the groups that have your devices in. The orange graph icons represent devices with graphs attached to them.

Let us know if this gets you any further.

-Doug
Back to top
madjackal
Beginner


Joined: 17 Mar 2004
Posts: 3

PostPosted: Tue Mar 23, 2004 2:50 am    Post subject: Reply with quote

hi there again. Well..it works for a couple for hours and then this is what i got :-

netmrg@silveron:/home/chun$ netmrg-gatherer
NetMRG starting.
[Dev: 0015] Starting device thread.
[Dev: 0016] Starting device thread.
[Dev: 0015] [Sub: 0026] [Mon: 0115] Test MySQL Connection Failure.
[Dev: 0016] Ending device thread.
Thread Ended.
[Dev: 0015] Ending device thread.
Thread Ended.

What is that Test MySQL Connection Failure? I think that's the main problem..Im quite not sure why it surfaced..Btw, i set the polling interval in netmrg.xml back to 300. Does this mean i need to change my netmrg's user crontab back to */5 * * * * ?? Thanks a lot.
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