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
Network Wizard not generating MRTG RRD files
Re: Network Wizard not generating MRTG RRD files
Are you running the wizard against a "new" network device or you are re-running it against an existing host? If you want to add additional services on an existing host, please, follow the steps, outlined in this document.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Network Wizard not generating MRTG RRD files
It is working now.
I ran the fix permissions script and then re-added all the network hosts. Any hosts added before I ran the fix perms script still do not have RRD files being generated.
I ran the fix permissions script and then re-added all the network hosts. Any hosts added before I ran the fix perms script still do not have RRD files being generated.
Re: Network Wizard not generating MRTG RRD files
So did re-adding them fix it, or are some of the rrds still broken?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Network Wizard not generating MRTG RRD files
Try removing these hosts, then follow the four steps, outlined in the "Adding Service Switch or Router" document (see my previous post). Hope this helps.Any hosts added before I ran the fix perms script still do not have RRD files being generated.
Be sure to check out our Knowledgebase for helpful articles and solutions!