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

Adding the MRTG configuration Failed !

Post 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
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post 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.
kyang

Re: Adding the MRTG configuration Failed !

Post 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!
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post 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.
kyang

Re: Adding the MRTG configuration Failed !

Post 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.

Code: Select all

/etc/mrtg/conf.d/
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Adding the MRTG configuration Failed !

Post by vijilants »

I have sent you the requested config file.

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

Re: Adding the MRTG configuration Failed !

Post 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
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 »

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Adding the MRTG configuration Failed !

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Adding the MRTG configuration Failed !

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked