Scheduled downtime issue
Scheduled downtime issue
I recently setup a service wide scheduled downtime to test the setting. After seeing how it worked for us, I removed the configuration. However, nagios is still scheduling downtime with the configuration removed.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Scheduled downtime issue
Is this the only downtime configuration you have? How many times has it re-scheduled the downtime? What version of Nagios Xi are you on?
Re: Scheduled downtime issue
It was, yes. It has re-scheduled the downtime twice so far. 2012R1.5slansing wrote:Is this the only downtime configuration you have? How many times has it re-scheduled the downtime? What version of Nagios Xi are you on?
Re: Scheduled downtime issue
If you do to: Home->Incident Management->Scheduled Downtime or Home->Incident Management->Recurring Downtime, you don't see any schedules at all?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Scheduled downtime issue
Correct.
I also have hosts and services which aren't in the configuration yet seem to still be configured in the configuration database (they show up as a monitored service/host yet they do not exist in the CCM). Perhaps related?
I also have hosts and services which aren't in the configuration yet seem to still be configured in the configuration database (they show up as a monitored service/host yet they do not exist in the CCM). Perhaps related?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Scheduled downtime issue
It sounds like you may have some ghost host\service issues. For those same objects, how recently did you remove them, and are the configuration files still existing in your local file system. They would be located in /usr/local/nagios/etc/hosts/ or /usr/local/nagios/etc/services/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Scheduled downtime issue
For the ghost host/services in question:sreinhardt wrote:It sounds like you may have some ghost host\service issues. For those same objects, how recently did you remove them, and are the configuration files still existing in your local file system. They would be located in /usr/local/nagios/etc/hosts/ or /usr/local/nagios/etc/services/
I did some config clean up, removed 3-5 hosts and associated services. Wrote configs, verified, then restarted nagios. About 30 minutes later, I was adding an additional contact and left an option blank (it would be good to bold or red the absolutely required fields in the UI to reduce this next part) and clicked "apply configuration" which resulted in an error. Immediately after it seemed it rolled back to an older config set which then included these hosts/services I had removed which immediately began alerting. I removed them from the filesystem and restarted nagios (which fixed the problem) since the hosts/services in question weren't available via the CCM.
Re: Scheduled downtime issue
Nagios cannot start or restart with bad configuration. It is always a good idea to run the Write Config Tool, prior to Applying Configuration, in order to check for config errors.
Just to confirm, has the issue been resolved?
Just to confirm, has the issue been resolved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Scheduled downtime issue
No, the recurring downtime part hasn't changed (I can't tell if it will attempt to do it again - the schedule was every Saturday 2300-0400).lmiltchev wrote:Nagios cannot start or restart with bad configuration. It is always a good idea to run the Write Config Tool, prior to Applying Configuration, in order to check for config errors.
Just to confirm, has the issue been resolved?
recurringdowntime.cfg is empty.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Scheduled downtime issue
Hmm, are you running multiple instances of the nagios process, possibly due to the configuration issue?:
Please share the above command's output's.
Code: Select all
service nagios stop
killall -9 nagios
service nagios start