Scheduled downtime issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Scheduled downtime issue

Post by skol »

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

Post by slansing »

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?
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: Scheduled downtime issue

Post by skol »

slansing 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?
It was, yes. It has re-scheduled the downtime twice so far. 2012R1.5
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled downtime issue

Post by lmiltchev »

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!
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: Scheduled downtime issue

Post by skol »

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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Scheduled downtime issue

Post by sreinhardt »

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.
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: Scheduled downtime issue

Post by skol »

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/
For the ghost host/services in question:

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled downtime issue

Post by lmiltchev »

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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: Scheduled downtime issue

Post by skol »

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?
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).

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

Post by slansing »

Hmm, are you running multiple instances of the nagios process, possibly due to the configuration issue?:

Code: Select all

service nagios stop

killall -9 nagios

service nagios start
Please share the above command's output's.
Locked