Making mass changes then running reconfigure_nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dpearceFL
Posts: 6
Joined: Wed Jan 25, 2017 3:59 pm

Making mass changes then running reconfigure_nagios

Post by dpearceFL »

Using Nagios XI 5.4.1 on CentOS 6.8

There are times when making mass changes through the GUI is painful. Too many clicks.

So I will copy the cfg files from /usr/local/nagios/etc/services to /usr/local/nagios/etc/import, make my changes and then run reconfigure_nagios.sh. No errors.

But sometimes the changes do not take effect. I'll look in /usr/local/nagios/etc/services and the file mod time has changed but my changes as not there.

What am I doing wrong?

Thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Making mass changes then running reconfigure_nagios

Post by rkennedy »

When running the reconfigure, do you notice any of the curl's error out at all as they poll the interface? I'm wondering if someone could be applying configuration at the same time as you importing, thus creating a jam in it all.
Former Nagios Employee
dpearceFL
Posts: 6
Joined: Wed Jan 25, 2017 3:59 pm

Re: Making mass changes then running reconfigure_nagios

Post by dpearceFL »

BTW: Running this as root.

No errors and no one else editing the files. My changes do not take more often not.

These are the only two warnings, warnings I am trying to fix:

Code: Select all

Reading configuration data...
   Read main config file okay...
Warning: Duplicate definition found for service 'CPU Usage' on host 'blah.com' (config file '/usr/local/nagios/etc/services/blah.com.cfg', starting on line 16)
   Read object config files okay...

Warning: Service 'Domain Expiration' on host 'blah.org'  has a notification interval less than its check interval!  Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
#1 - What am I trying to fix, but the errant service check always comes back. This service check does not show in the GUI.
#2 - This is not correct but I can live with it.

Thanks.
dpearceFL
Posts: 6
Joined: Wed Jan 25, 2017 3:59 pm

Re: Making mass changes then running reconfigure_nagios

Post by dpearceFL »

I decided to look in the CCM (Core Config Manager) and there I could see the errant service check and delete it. problem solved!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Making mass changes then running reconfigure_nagios

Post by rkennedy »

I would watch the log files in the future to see if you can decipher out sometimes, it could be little problems like that or something else - a bit hard to say.

Depending on what you're after, you may be able to utilize teh API with host groups / templates in a powerful way. It's bit more reliable then using reconfigure, just make a few actions at once and then apply, instead of after every call.

(see attached)
You do not have the required permissions to view the files attached to this post.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Making mass changes then running reconfigure_nagios

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
Locked