Page 1 of 2
Adding the MRTG configuration Failed !
Posted: Thu Dec 14, 2017 1:22 pm
by vijilants
System:
Nagios XI Version : 5.4.11
londnms1 2.6.32-431.29.2.el6.i686 i686
CentOS release 6.5 (Final)
Gnome Installed
Hi,
Can somebody please advise.....I am getting the following message on screen when I try to use the network switch / router wizard to scan a switch and after I apply the configuration:
"Adding the MRTG configuration Failed !"
The services then come up as unknown in the Services screen via the home screen.
Thank you
Re: Adding the MRTG configuration Failed !
Posted: Thu Dec 14, 2017 1:56 pm
by vijilants
In addition, this appears to be some sort of an issue with the new router / switch wizard v2.38
Even though I unchecked the bandwidth box against the vlans, it is still attempting to put them in and I get a list of "unknowns" against the bandwidths for the vlans which also are sent out as notifications which is flooding users inboxes.
However when I go in to CCM and look for these under the services, they are not there, which is correct.
Not sure exactly what is going on here.
Re: Adding the MRTG configuration Failed !
Posted: Thu Dec 14, 2017 3:54 pm
by kyang
Go to XI Home --> Admin --> under System Extensions click Config Wizard --> click Check for updates.
The router/switch wizard should be on v2.39 now.
Try that and see if you are still running into issues.
Let us know!
Re: Adding the MRTG configuration Failed !
Posted: Thu Dec 14, 2017 5:01 pm
by vijilants
OK,
I've upgraded but am still getting the same warning of Adding the MRTG configuration Failed, but I am no longer hetting the Unknown services.
There definitely appears to be an issue when you decide to unclick the bandwidth check option.
Re: Adding the MRTG configuration Failed !
Posted: Fri Dec 15, 2017 10:15 am
by kyang
Mine runs just fine when I uncheck the bandwidth option.
Did you try restarting any services?
Code: Select all
service nagios restart
service crond restart
service npcd restart
Have you added this switch before? Or has it always failed? Any MRTG issues when you run this command?
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Also, is there a cfg file for the switch in here? Can you post or PM it to me.
Re: Adding the MRTG configuration Failed !
Posted: Mon Jan 15, 2018 11:24 am
by vijilants
I have sent you the requested config file.
Thanks
Re: Adding the MRTG configuration Failed !
Posted: Mon Jan 15, 2018 2:09 pm
by tgriep
@kyang is out of the office and we do not have access to his forum email box so we cannot file the files that you sent in.
The error point to either a permission problem for the /etc/mrtg folder or a configuration issue.
Can you login to the server as root, run the following commands and post the /tmp/info.txt file?
Code: Select all
ls -l /etc >/tmp/info.txt
ls -lR /etc/mrtg >>/tmp/info.txt
To check for a configuration error, run the following and post the output.
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Thanks
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 8:08 am
by vijilants
tgriep wrote:@kyang is out of the office and we do not have access to his forum email box so we cannot file the files that you sent in.
The error point to either a permission problem for the /etc/mrtg folder or a configuration issue.
Can you login to the server as root, run the following commands and post the /tmp/info.txt file?
Code: Select all
ls -l /etc >/tmp/info.txt
ls -lR /etc/mrtg >>/tmp/info.txt
To check for a configuration error, run the following and post the output.
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Thanks
Thanks,
I have PM'd both files to you.
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 9:17 am
by tgriep
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
Re: Adding the MRTG configuration Failed !
Posted: Tue Jan 16, 2018 9:25 am
by tgriep
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