Page 1 of 3
Deleting Recurring Downtime Doesn't Work
Posted: Wed Apr 17, 2013 11:13 am
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.
Re: Deleting Recurring Downtime Doesn't Work
Posted: Thu Apr 18, 2013 2:29 pm
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?
Re: Deleting Recurring Downtime Doesn't Work
Posted: Thu Apr 18, 2013 2:36 pm
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
Re: Deleting Recurring Downtime Doesn't Work
Posted: Fri Apr 19, 2013 8:23 am
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?
Re: Deleting Recurring Downtime Doesn't Work
Posted: Mon Apr 22, 2013 4:37 pm
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.
Re: Deleting Recurring Downtime Doesn't Work
Posted: Tue Apr 23, 2013 12:06 pm
by sreinhardt
Great let us know how it goes!
Re: Deleting Recurring Downtime Doesn't Work
Posted: Mon May 13, 2013 1:43 pm
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
Re: Deleting Recurring Downtime Doesn't Work
Posted: Tue May 14, 2013 9:33 am
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?
Re: Deleting Recurring Downtime Doesn't Work
Posted: Tue May 14, 2013 9:42 am
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.
Re: Deleting Recurring Downtime Doesn't Work
Posted: Tue May 14, 2013 2:59 pm
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