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
  #1  
Old 2nd September 2010, 08:18
gads gads is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default check_mrtgtraf: Unable to open MRTG log file

hi, I have installed nagios on centOS and I monitor switch but the Port1 Bandwidth Usage has this error "check_mrtgtraf: Unable to open MRTG log file ". I had already installed mrtg but it has the same error.
do anyone can help me about this problem? thanks in advance...

here is the script of my switch.cfg:

define service{
use generic-service ; Inherit values from a template
host_name distributed_switch
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5000000,50 00000!10
}
Reply With Quote
Sponsored Links
  #2  
Old 2nd September 2010, 09:10
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

Code:
ls -al /var/lib/mrtg/192.168.1.253_1.log
Code:
ps flax | grep nagios
Reply With Quote
  #3  
Old 2nd September 2010, 10:16
gads gads is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default

thanks for the reply Mark_NL, when I try the code you gave this is the result:

[root@localhost ~]# ls -al /var/lib/mrtg/192.168.1.253_1.log
ls: /var/lib/mrtg/192.168.1.253_1.log: No such file or directory
[root@localhost ~]# ps flax | grep nagios
0 0 18909 12276 17 0 3916 664 stext S+ pts/0 0:00 | \_ grep nagios
1 100 2860 1 18 0 6780 484 335550 Ss ? 0:00 /usr/sbin/ndo2db -c /etc/nagios/ndo2db.cfg
1 100 16191 2860 15 0 6780 1268 - S ? 0:01 \_ /usr/sbin/ndo2db -c /etc/nagios/ndo2db.cfg
1 100 16188 1 15 0 13716 984 stext Ssl ? 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg

I wonder what is 192.168.1.253_1.log because when i go to /var/lib/mrtg/ directory, it is not there? what should i do about this?

thanks in advance..
Reply With Quote
  #4  
Old 2nd September 2010, 10:28
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

what IS in that mrtg dir?

Code:
ls -al /var/lib/mrtg/
Reply With Quote
  #5  
Old 2nd September 2010, 17:52
kheimbuch kheimbuch is offline
Junior Member
 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Mark I am having the same problem as Gads. The only file I have in the /var/lib/mrtg/ directory is:

_etc_mrtg.cfg
Reply With Quote
  #6  
Old 3rd September 2010, 04:22
gads gads is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default

hi Mark, thanks for the reply, sorry for the late response... here is the result of the command " ls -al /var/lib/mrtg/ " :

[root@localhost ~]# ls -al /var/lib/mrtg/
total 12
drwxr-xr-x 2 root root 4096 Jan 10 2007 .
drwxrwxr-x 22 apache nagios 4096 Sep 1 13:21 ..
-rw-r--r-- 1 nagios nagios 0 Sep 3 10:15 mrtg.ok
[root@localhost ~]#

what should I do next? thanks in advance...
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 20:17
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 13:29
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 03:15
Mail System doesnt work! crichton Installation/Configuration 3 17th September 2007 23:49
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05


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


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