Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 22nd November 2012, 02:26
ilyar ilyar is offline
Junior Member
 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
ow damn, the command is wrong, should be "check_mrtgtraf"

try to cd into /usr/lib/nagios/plugins, does that dir exist?

find your nagios plugin dir (should be defined in your nagios config somewhere)
then correct the command to reflect the correct location and run it.

This is what i get when i run the command you mentioned.

[root@NAGIOS01 /]# /usr/lib64/nagios/plugins/check_mrtgtraf -F /var/www/html/mymrtg/10.0.1.1_2.log -a AVG -w 1000000,1000000 -c 5000000,5000000 -e 10
Traffic OK - Avg. In = 141.3 KB/s, Avg. Out = 11.1 KB/s|in=141.305664KB/s;1000000.000000;5000000.000000;0.000000 out=11.091797KB/s;1000000.000000;5000000.000000;0.000000
Reply With Quote
Sponsored Links
  #22  
Old 23rd November 2012, 23:05
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Ok, so from your reply we can assume the plugin works when run as root.
afaik see all files have the correct permissions to run this thing

maybe try:
Code:
sudo -u nagios /usr/lib64/nagios/plugins/check_mrtgtraf -F /var/www/html/mymrtg/10.0.1.1_2.log -a AVG -w 1000000,1000000 -c 5000000,5000000 -e 10
If that gives correct output, the error you told us about in your first post is either from an old log line or another object, because if the above is all true it SHOULD work.
If not, you forgot something to tell us
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #23  
Old 27th November 2012, 03:32
ilyar ilyar is offline
Junior Member
 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
Ok, so from your reply we can assume the plugin works when run as root.
afaik see all files have the correct permissions to run this thing

maybe try:
Code:
sudo -u nagios /usr/lib64/nagios/plugins/check_mrtgtraf -F /var/www/html/mymrtg/10.0.1.1_2.log -a AVG -w 1000000,1000000 -c 5000000,5000000 -e 10
If that gives correct output, the error you told us about in your first post is either from an old log line or another object, because if the above is all true it SHOULD work.
If not, you forgot something to tell us

This is what I get when I run the command above.

[root@NAGIOS01 /]# sudo -u nagios /usr/lib64/nagios/plugins/check_mrtgtraf -F /var/www/html/mymrtg/10.0.1.1_2.log -a AVG -w 1000000,1000000 -c 5000000,5000000 -e 10
Traffic OK - Avg. In = 31.6 KB/s, Avg. Out = 12.3 KB/s|in=31.614258KB/s;1000000.000000;5000000.000000;0.000000 out=12.309570KB/s;1000000.000000;5000000.000000;0.000000



I have no idea why it is still telling me check_mrtgtraf: Unable to open MRTG log file
Reply With Quote
  #24  
Old 27th November 2012, 21:06
ilyar ilyar is offline
Junior Member
 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I also see this in the mrtg.log

Started mrtg with config '/etc/httpd/conf/mrtg.cfg'
2012-11-27 10:55:02 -- ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/httpd/conf/mrtg.pid
2012-11-27 11:00:02 -- Started mrtg with config '/etc/httpd/conf/mrtg.cfg'
2012-11-27 11:00:02 -- ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/httpd/conf/mrtg.pid



any ideas?
thanks.
Reply With Quote
Reply

Bookmarks

Tags
check_mrtgtraf, nagios

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 21:17
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 14:29
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 04:15
Mail System doesnt work! crichton Installation/Configuration 3 18th September 2007 00:49
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 17:05


All times are GMT +2. The time now is 11:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.