Network Wizard not generating MRTG RRD files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
uidaho
Posts: 89
Joined: Tue Feb 12, 2013 11:58 am

Network Wizard not generating MRTG RRD files

Post by uidaho »

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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Network Wizard not generating MRTG RRD files

Post by lmiltchev »

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!
uidaho
Posts: 89
Joined: Tue Feb 12, 2013 11:58 am

Re: Network Wizard not generating MRTG RRD files

Post by uidaho »

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Network Wizard not generating MRTG RRD files

Post by abrist »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Network Wizard not generating MRTG RRD files

Post by lmiltchev »

Any hosts added before I ran the fix perms script still do not have RRD files being generated.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked