Recurring Service Downtime - Multiple entries

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Recurring Service Downtime - Multiple entries

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Recurring Service Downtime - Multiple entries

Post by slansing »

What version of Nagios XI are you running? This was fixed in the latest release.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Recurring Service Downtime - Multiple entries

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

Re: Recurring Service Downtime - Multiple entries

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Recurring Service Downtime - Multiple entries

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Recurring Service Downtime - Multiple entries

Post by abrist »

There was a few small fixes for downtime in the past few weeks. Let us know if it is WAI.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Recurring Service Downtime - Multiple entries

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Recurring Service Downtime - Multiple entries

Post by slansing »

Sounds good, we will keep the thread open until then, please let us know!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Recurring Service Downtime - Multiple entries

Post by Fred Kroeger »

Problem solved - I only have one entry today for the recurring downtime

Thanks... Fred
Locked