Adding the MRTG configuration Failed !

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post by vijilants »

tgriep wrote:Thanks, I received the reconfigure output in the PM and it looks good but the info.txt file is missing, can you post it again?
Thanks
Done.

Thanks
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post by vijilants »

tgriep wrote:One more thing to try, follow this KB article and update the file limits and see if that fixes the issue for you.
https://support.nagios.com/kb/article/n ... g-512.html
The two values recommended on my system are set to 10000, so that is OK. (* hard nofile 10000
* soft nofile 10000)

Regarding the LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg command, I am getting loads of errors.

I will PM you the output.

Many Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Adding the MRTG configuration Failed !

Post by tgriep »

It does look like there is a permission problem with the files / folders in the /etc/mrtg folder. To fix it, run the following as root.

Code: Select all

chown -R apache.nagios /etc/mrtg/conf.d
chmod -R 775 /etc/mrtg/conf.d
Then run the wizard again and see if it completes.

The errors when running the mrtg command are displayed when either the host does not exist on the network so the configuration file needs to be removed from this folder so the mrtg application will not check for it any more.

Code: Select all

/etc/mrtg/conf.d
If the device does exist, then either the community string has changed, or that the device is firewalled and the Nagios server cannot contact it so it will generate those errors.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post by vijilants »

[quote="tgriep"]It does look like there is a permission problem with the files / folders in the /etc/mrtg folder. To fix it, run the following as root.

Code: Select all

chown -R apache.nagios /etc/mrtg/conf.d
chmod -R 775 /etc/mrtg/conf.d
Then run the wizard again and see if it completes.

Thank you and well done !!!! That appears to have fixed it !

Not sure how this issue suddenly occurred in the first place. It all went wrong after the last upgrade and Router Wizard upgrade.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Adding the MRTG configuration Failed !

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post by vijilants »

Yes,

Thank you
Locked