Page 2 of 2

Re: check_mrtgtraf: Unable to open MRTG log file

Posted: Wed Oct 08, 2014 2:54 am
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 ~]#

Re: check_mrtgtraf: Unable to open MRTG log file

Posted: Thu Oct 09, 2014 3:18 pm
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