Page 1 of 1

Recurring Service Downtime - Multiple entries

Posted: Fri Dec 06, 2013 2:50 am
by Fred Kroeger
I have a few recurring Scheduled Service downtimes setup.
It appears that they are being recheduled every 2 hours. I now have *many* entries for the same event
It is a recurring Servicegroup downtime and is run once per week. They all appear to clear at the scheduled downtime, but after that they start building up again.
Also I get an email notification for each of the dupliacted downtimes.

Code: Select all

CICS-NELLPRD2	Transaction Test	12-05-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84295
CICS-NELLPRD	Transaction Test	12-05-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84293
CICS-NELLPRD2	Transaction Test	12-05-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84292
CICS-NELLPRD1	Transaction Test	12-05-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84291
CICS-NELLPRD	Transaction Test	12-05-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84290
CICS-NELLPRD2	Transaction Test	12-05-2013 08:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84289
CICS-NELLPRD1	Transaction Test	12-05-2013 08:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84288
CICS-NELLPRD	Transaction Test	12-05-2013 08:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84287
CICS-NELLPRD2	Transaction Test	12-05-2013 08:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84286
CICS-NELLPRD1	Transaction Test	12-05-2013 08:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84285
CICS-NELLPRD	Transaction Test	12-05-2013 08:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84284
CICS-NELLPRD2	Transaction Test	12-05-2013 07:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84282
CICS-NELLPRD1	Transaction Test	12-05-2013 07:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84281
CICS-NELLPRD	Transaction Test	12-05-2013 07:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84280
CICS-NELLPRD2	Transaction Test	12-05-2013 07:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84279
CICS-NELLPRD1	Transaction Test	12-05-2013 07:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84278
CICS-NELLPRD	Transaction Test	12-05-2013 07:01:03	nagiosadmin	AUTO: Scheduled Outage	12-08-2013 05:00:00	12-08-2013 05:30:00	Fixed	0d 0h 30m 0s	84277
I tried deleting them manually but I can only do one at a time so gave up after a while.
Any ideas on why they would be recheduled every hour?

regards... Fred

Re: Recurring Service Downtime - Multiple entries

Posted: Fri Dec 06, 2013 10:13 am
by slansing
What version of Nagios XI are you running? This was fixed in the latest release.

Re: Recurring Service Downtime - Multiple entries

Posted: Sun Dec 08, 2013 9:51 pm
by Fred Kroeger
Sorry.... Nagios XI 2012R2.7

The Recurring downtime ran OK yesterday (8/12/13 05:00) , however since then it is being rescheduled twice every hour.
Here's a snapshot of the recent scheduled downtimes - they continue on down to 12-08-2013 05:01:02

Code: Select all

CICS-NELLPRD2	Transaction Test	12-09-2013 10:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84903	
CICS-NELLPRD1	Transaction Test	12-09-2013 10:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84902	
CICS-NELLPRD	Transaction Test	12-09-2013 10:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84901	
CICS-NELLPRD2	Transaction Test	12-09-2013 10:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84900	
CICS-NELLPRD1	Transaction Test	12-09-2013 10:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84899	
CICS-NELLPRD	Transaction Test	12-09-2013 10:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84898	
CICS-NELLPRD2	Transaction Test	12-09-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84897	
CICS-NELLPRD1	Transaction Test	12-09-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84896	
CICS-NELLPRD	Transaction Test	12-09-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84895	
CICS-NELLPRD2	Transaction Test	12-09-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84894	
CICS-NELLPRD1	Transaction Test	12-09-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84893	
CICS-NELLPRD	Transaction Test	12-09-2013 09:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84892	
CICS-NELLPRD2	Transaction Test	12-09-2013 08:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84891	
CICS-NELLPRD1	Transaction Test	12-09-2013 08:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84890	
CICS-NELLPRD	Transaction Test	12-09-2013 08:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84889	
CICS-NELLPRD2	Transaction Test	12-09-2013 08:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84888	
CICS-NELLPRD1	Transaction Test	12-09-2013 08:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84887	
CICS-NELLPRD	Transaction Test	12-09-2013 08:01:02	nagiosadmin	AUTO: Scheduled Outage	12-15-2013 05:00:00	12-15-2013 05:30:00	Fixed	0d 0h 30m 0s	84886	

Re: Recurring Service Downtime - Multiple entries

Posted: Mon Dec 09, 2013 11:35 am
by lmiltchev
I wonder if the patched version of "recurringdowntime.pl" didn't get to R2.7... Download the file below:
recurringdowntime.zip
upzip it, and copy the "recurringdowntime.pl" file to: "/usr/local/nagiosxi/cron/" directory, overriding the old "recurringdowntime.pl" file.

Let me know if this fixed your problem.

Re: Recurring Service Downtime - Multiple entries

Posted: Tue Dec 10, 2013 2:26 am
by Fred Kroeger
Thanks for that. I have copied the script over & will see what happens.
There is a small difference between the existing script and your new version

Code: Select all

# diff recurringdowntime.pl recurringdowntime.pl-ORG
335c335
<       my($rv,$sr,$srd);
---
>       my($rv,$sr);
346,347c346
<               $srd = do { (my $tmp = $sr) =~ s/;/:/g; $tmp };
<               if( !defined $downtime{"$srd:$s"} ) {
---
>               if( !defined $downtime{"$sr:$s"} ) {
623d621
<
regards.. Fred

Re: Recurring Service Downtime - Multiple entries

Posted: Tue Dec 10, 2013 11:20 am
by abrist
There was a few small fixes for downtime in the past few weeks. Let us know if it is WAI.

Re: Recurring Service Downtime - Multiple entries

Posted: Tue Dec 10, 2013 7:28 pm
by Fred Kroeger
All good now - no additional recurring downtimes have been scheduled since I updated the script.
The test will be on Sunday to see if it does reschedule then.

regards... Fred

Re: Recurring Service Downtime - Multiple entries

Posted: Wed Dec 11, 2013 10:15 am
by slansing
Sounds good, we will keep the thread open until then, please let us know!

Re: Recurring Service Downtime - Multiple entries

Posted: Tue Dec 17, 2013 1:23 am
by Fred Kroeger
Problem solved - I only have one entry today for the recurring downtime

Thanks... Fred