Page 2 of 2
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 9:30 am
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
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 9:46 am
by vijilants
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
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 10:21 am
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.
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.
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 10:56 am
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.
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 2:43 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Re: Adding the MRTG configuration Failed !
Posted: Wed Jan 17, 2018 7:00 am
by vijilants
Yes,
Thank you