Network Wizard not generating MRTG RRD files
Posted: Wed Jul 24, 2013 5:49 pm
I've run the Network device wizard to add several network devices. However, many of the checks are failing. The failing checks all report "/var/lib/mrtg/xxxx.rrd does not exist."
It appears that the mrtg.cfg is not being updated with the new information? Suggestions?
Nagios log:
[1374702706] SERVICE ALERT: libcore-loopback0.csrv.uidaho.edu;Port 4 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/129.101.255.226_4.rrd does not exist.
[1374702716] SERVICE ALERT: libcore-loopback0.csrv.uidaho.edu;Port 60 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/129.101.255.226_60.rrd does not exist
.
No rrd files exist:
[root@monitor01p tmp]# ls -la /var/lib/mrtg/
total 8
drwxr-xr-x 2 root root 4096 Apr 12 19:05 .
drwxr-xr-x. 34 root root 4096 Apr 30 16:14 ..
-rw-r--r-- 1 root root 0 Jul 24 15:33 mrtg.ok
[root@monitor01p tmp]#
mrtg.cfg never updated:
[root@monitor01p tmp]# ls -la /etc/mrtg/mrtg.cfg
-rw-r--r-- 1 apache apache 863 Apr 30 16:09 /etc/mrtg/mrtg.cfg
[root@monitor01p mrtg]$ cat /etc/mrtg/mrtg.cfg | grep -v "#"
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
[unirmt@monitor01p mrtg]$ ls -la /usr/local/nagiosxi/tmp/mrtgsca*
-rw-r--r-- 1 apache nagios 8327 Jul 24 13:50 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.220
-rw-r--r-- 1 apache nagios 0 Jul 24 13:50 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.220.done
-rw-r--r-- 1 apache nagios 571 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.224
-rw-r--r-- 1 apache nagios 0 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.224.done
-rw-r--r-- 1 apache nagios 51714 Jul 24 14:14 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.225
-rw-r--r-- 1 apache nagios 0 Jul 24 14:14 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.225.done
-rw-r--r-- 1 apache nagios 52905 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.226
-rw-r--r-- 1 apache nagios 0 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.226.done
It appears that the mrtg.cfg is not being updated with the new information? Suggestions?
Nagios log:
[1374702706] SERVICE ALERT: libcore-loopback0.csrv.uidaho.edu;Port 4 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/129.101.255.226_4.rrd does not exist.
[1374702716] SERVICE ALERT: libcore-loopback0.csrv.uidaho.edu;Port 60 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/129.101.255.226_60.rrd does not exist
.
No rrd files exist:
[root@monitor01p tmp]# ls -la /var/lib/mrtg/
total 8
drwxr-xr-x 2 root root 4096 Apr 12 19:05 .
drwxr-xr-x. 34 root root 4096 Apr 30 16:14 ..
-rw-r--r-- 1 root root 0 Jul 24 15:33 mrtg.ok
[root@monitor01p tmp]#
mrtg.cfg never updated:
[root@monitor01p tmp]# ls -la /etc/mrtg/mrtg.cfg
-rw-r--r-- 1 apache apache 863 Apr 30 16:09 /etc/mrtg/mrtg.cfg
[root@monitor01p mrtg]$ cat /etc/mrtg/mrtg.cfg | grep -v "#"
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
[unirmt@monitor01p mrtg]$ ls -la /usr/local/nagiosxi/tmp/mrtgsca*
-rw-r--r-- 1 apache nagios 8327 Jul 24 13:50 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.220
-rw-r--r-- 1 apache nagios 0 Jul 24 13:50 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.220.done
-rw-r--r-- 1 apache nagios 571 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.224
-rw-r--r-- 1 apache nagios 0 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.224.done
-rw-r--r-- 1 apache nagios 51714 Jul 24 14:14 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.225
-rw-r--r-- 1 apache nagios 0 Jul 24 14:14 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.225.done
-rw-r--r-- 1 apache nagios 52905 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.226
-rw-r--r-- 1 apache nagios 0 Jul 24 14:41 /usr/local/nagiosxi/tmp/mrtgscan-129.101.255.226.done