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 ~]#
check_mrtgtraf: Unable to open MRTG log file
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_mrtgtraf: Unable to open MRTG log file
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/
getenforceNagios-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.