Deleting Recurring Downtime Doesn't Work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Deleting Recurring Downtime Doesn't Work

Post by jbennett »

I've recently deleted a recurring downtime entry, only to find that the downtime keeps popping up in the scheduled down time every day still.

I have verified that the recurring down time that I originally had entered under all 3 tabs (Hosts/Services, Hostgroups, Servicegroups) are no longer there.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Deleting Recurring Downtime Doesn't Work

Post by sreinhardt »

I'm sure you did, but have you verified configs apply and such correctly? How about running:

grep -R "Name-of-Downtime" /usr/local/nagios/etc/*

Does that return anything still in your configuration files?
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.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Deleting Recurring Downtime Doesn't Work

Post by jbennett »

sreinhardt wrote:I'm sure you did, but have you verified configs apply and such correctly? How about running:

grep -R "Name-of-Downtime" /usr/local/nagios/etc/*

Does that return anything still in your configuration files?
Yes, everything appears to apply correctly:

Code: Select all

# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
(snipped for bravarity)
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
        Checked 4297 services.
Checking hosts...
        Checked 1704 hosts.
Checking host groups...
        Checked 192 host groups.
Checking service groups...
        Checked 4 service groups.
Checking contacts...
        Checked 31 contacts.
Checking contact groups...
        Checked 4 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 127 commands.
Checking time periods...
        Checked 37 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
When I ran the command above, I substituted the host name for "Name-of-downtime' as I'm not sure what the name of the downtime is?

When I did this, it simply listed off the name of the host as it appears in every single host and service config file?

I will note the recurringdowntime.cfg file is empty:

Code: Select all

-rwxrwxr-x 1 apache nagios    0 Apr 15 13:53 recurringdowntime.cfg
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Deleting Recurring Downtime Doesn't Work

Post by scottwilkerson »

When did you delete the recurring downtime? on the 15th?

Had the downtime items that "popped up" already been scheduled before you deleted the recurring downtime?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Deleting Recurring Downtime Doesn't Work

Post by jbennett »

When I came in this morning, the downtime was no longer there. It seemed to show up on Thursday & Friday, which was the day of the week I had scheduled it for.

I will be out of the office this Thursday & Friday and will not be able to monitor it.

At this point, I'm going to assume this was a glitch or a possible bug with the way the dates were processed (?). If I see it again in 2 weeks, I will advise. Until then, I guess this is resolved.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Deleting Recurring Downtime Doesn't Work

Post by sreinhardt »

Great let us know how it goes!
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.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: Deleting Recurring Downtime Doesn't Work

Post by questrad »

Hello All,

Any update on this issue?

We are getting similar issue.
We have scheduled on Monday Recurring Downtime for Servicegroup for Sunday, it is in Scheduled Downtime->Scheduled Service Downtime - this is fine.

Prior scheduled downtime, for example Friday, we re-scheduled it for next week at Monday, so, we do editing and changing to Monday.
But when we go back to Scheduled Downtime->Scheduled Service Downtime, we see that Scheduled downtime if still for Sunday, not for Monday.

Can any one provide help?

Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Deleting Recurring Downtime Doesn't Work

Post by slansing »

questrad,

I am attempting to reproduce this, though am not able to. This is what I am doing:

Home > Recurring Downtime > Scheduling a Servicegroup to be down on Sun for a given time, then saving it.

Exiting that page, then re entering via Home > Recurring Downtime > Servicegroups > The servicegroup is still scheduled for the correct time.

This holds true after I change the day to monday and then re-save the downtime, exit, and re enter again.

What version of nagios Xi are you running on?
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: Deleting Recurring Downtime Doesn't Work

Post by questrad »

I am using Nagios XI 2012R1.8.

When you change to monday, can you check, the scheduled downtime is has changed to monday in Home -> Incident Management -> Scheduled Downtime.

And one thing also that I have found yesterday, that in some how same scheduled downtime via Recurring Downtime > Scheduling a Servicegroup has increased in Home -> Incident Management -> Scheduled Downtime with different "Entry Time" but for same "Start Time End Time Type Duration".

Sorry, but I cannot show any screenshot, because it was Production server and I have cleaned up everything.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Deleting Recurring Downtime Doesn't Work

Post by lmiltchev »

When you change to monday, can you check, the scheduled downtime is has changed to monday in Home -> Incident Management -> Scheduled Downtime.
It will not change right away. It runs on a cron job and it updates one minute after each hour. You can verify this by running:

Code: Select all

cat /etc/cron.d/nagiosxi | grep recurringdowntime.p
of you can "force" updating by running the script:

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked