Page 1 of 1

Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Thu May 09, 2019 2:48 pm
by DiegoSantidrian
Good afternoon everyone,

I'm Diego, I've just installed Nagios on my RedHat 6.4 Virtual Machine (on VMware Workstation) to monitor my corp switches. I also installed mrtg for monitoring ports. The thing is that when I click on a SW, it shows me 2 errors:

- For Port 1 Bandwidth Usage: check_mrtgtraf: Unable to open MRTG log file.
- For Port 1 Link Status and Uptime: Plugin timed out while executing system call.

I have tried thousands of things on forums or youtube, but it keeps showing me these errors. Please, can an internship guy get some help? THANK YOU!

Re: Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Thu May 09, 2019 4:05 pm
by ssax
Please send the output of these commands:

Code: Select all

ls -ld /var/lib/mrtg
ls -l /var/lib/mrtg

Re: Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Fri May 10, 2019 4:12 pm
by DiegoSantidrian
Here they go
cmsd.png

Re: Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Fri May 10, 2019 4:34 pm
by DiegoSantidrian
Is that what you were asking for? lol I'm not so good at RHEL to be honest :/

Re: Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Fri May 10, 2019 4:41 pm
by ssax
You use MRTG to create the files in /var/lib/mrtg which creates the MRTG log, since it doesn't look like you have anything setup to do that there are no MRTG log files (or RRD files) in /var/lib/mrtg.

You will need to configure MRTG to scan your devices to create those, see here:

Code: Select all

https://oss.oetiker.ch/mrtg/
And here:

Code: Select all

http://bigunix.blogspot.com/2009/07/how-to-monitor-bandwidht-using-mrtg-and.html

Re: Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Fri May 10, 2019 4:45 pm
by DiegoSantidrian
I did install MRTG and stuff, but as I saw no good configuration about it, I hashed the changes I did on those files..

I will try again with that second link you sent, thank you very much

Re: Help! check_mrtgtraf: Unable to open MRTG log file

Posted: Mon May 13, 2019 4:56 pm
by cdienger
Please keep us posted!