check_mrtgtraf: Unable to open MRTG log file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
gazy007
Posts: 12
Joined: Thu Oct 02, 2014 9:02 am

Re: check_mrtgtraf: Unable to open MRTG log file

Post by gazy007 »

Here is the output as requested.

[root@nagios ~]# ls -la /var/log/mrtg.log
-rw-r--r--. 1 root root 344524 Oct 8 08:45 /var/log/mrtg.log
[root@nagios ~]#

and

[root@nagios ~]# ls -al /var/lib/mrtg/
total 8
drwxrwxrwx. 2 nagios nagios 4096 Nov 12 2012 .
drwxr-xr-x. 40 root root 4096 Sep 24 13:48 ..
-rw-r--r--. 1 root root 0 Oct 8 15:55 mrtg.ok
[root@nagios ~]#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_mrtgtraf: Unable to open MRTG log file

Post by sreinhardt »

It looks like you do not have rrd files in /var/lib/mrtg/ and might have some extended permissions on that folder. Please run the following.

Code: Select all

ls -lartz /var/log/
ls -lartz /var/lib/mrtg/
ls -lartz /etc/mrtg/

getenforce
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked