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!
Making mass changes then running reconfigure_nagios
Re: Making mass changes then running reconfigure_nagios
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
Re: Making mass changes then running reconfigure_nagios
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:
#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.
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.#2 - This is not correct but I can live with it.
Thanks.
Re: Making mass changes then running reconfigure_nagios
I decided to look in the CCM (Core Config Manager) and there I could see the errant service check and delete it. problem solved!
Re: Making mass changes then running reconfigure_nagios
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)
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
Re: Making mass changes then running reconfigure_nagios
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