|
|
| Author |
Message |
madjackal Beginner
Joined: 17 Mar 2004 Posts: 3
|
Posted: Wed Mar 17, 2004 10:29 am Post subject: confused |
|
|
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
|
Posted: Wed Mar 17, 2004 2:13 pm Post subject: |
|
|
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
|
Posted: Thu Mar 18, 2004 3:20 am Post subject: |
|
|
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
|
Posted: Thu Mar 18, 2004 3:21 pm Post subject: |
|
|
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
|
Posted: Tue Mar 23, 2004 2:50 am Post subject: |
|
|
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 |
|
 |
|