Recurring downtime not working after 2012R2.4 update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
c.slagel
Posts: 57
Joined: Mon Dec 17, 2012 6:47 pm

Recurring downtime not working after 2012R2.4 update

Post by c.slagel »

We're having an issue with items in recurring downtime not going down when scheduled after updating to the newest version. I've restarted the server and everything to make sure it wasn't a weird glitch. It's causing issues as I'm now getting text message alerts in the middle of the night waking me up for false alarms. Please help!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime not working after 2012R2.4 update

Post by lmiltchev »

What happens when you run the following script manually?

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
Do you get any errors?

What is the output of the following command?

Code: Select all

tail -50 /var/log/httpd/error_log
Be sure to check out our Knowledgebase for helpful articles and solutions!
c.slagel
Posts: 57
Joined: Mon Dec 17, 2012 6:47 pm

Re: Recurring downtime not working after 2012R2.4 update

Post by c.slagel »

Yes, here's the output:

Code: Select all

[root@nagios ~]# /usr/local/nagiosxi/cron/recurringdowntime.pl
Reading Nagios configuration
Reading in configuration
Reading objects...
   Read object cache file...
Reading /usr/local/nagios/var/objects.cache...HG Netscalers = LAX:Downtown
HG linux-servers = localhost
HG lu-servers = NOXlu8:NOXlu7:NOXlu6:NOXlu5:NOXlu4:NOXlu3:NOXlu2:NOXlu1
HG nox-virtual = NOXvcenter1:NOXbeta2:NOXbeta1
HG sql-servers = mysqlslavebackup:mysqlslave6:mysqlslave5:mysqlslave4:mysqlslave3:mysqlslave2:mysqlsamys2:mysqlsamys1:mysqlmaster4:mysqlmaster3:mysqlmaster2:mysqlmaster1
HG windows-servers = NOXweb15:NOXweb9:NOXweb8:NOXweb7:NOXweb6:NOXweb5:NOXweb4:NOXweb3:NOXweb2:NOXweb16:NOXweb12:NOXweb11:NOXweb1:NOXdns2
SG MySQL Slave Lag = mysqlmaster2;MySQL Slave Lag:mysqlmaster1;MySQL Slave Lag:mysqlsamys1;MySQL Slave Lag:mysqlsamys2;MySQL Slave Lag:mysqlslave2;MySQL Slave Lag:mysqlslave3;MySQL Slave Lag:mysqlslave4;MySQL Slave Lag:mysqlslave5;MySQL Slave Lag:mysqlslave6;MySQL Slave Lag:mysqlslavebackup;MySQL Slave Lag:mysqlmaster3;MySQL Slave Lag:mysqlmaster4;MySQL Slave Lag
Done.
Reading in list of already scheduled downtime
Reading downtime information from /usr/local/nagios/var/status.dat ...Done.
Checking for downtime due in next 10080 minutes

 now: 5,11,24,4,9,113 
Next schedule:  mysqlmaster2 MySQL Slave Lag
Current candidate: 23:55 on 4/10/2013

nd=4;nm=9;ny=113

nd=4;nm=9;ny=113
Current candidate(dow): 23:55 on 4/10/2013
Current candidate: 23:55 on 4/10/2013
Scheduling service mysqlmaster2:MySQL Slave Lag
Can't use string ("1") as a HASH ref while "strict refs" in use at /usr/local/nagiosxi/cron/recurringdowntime.pl line 299.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Recurring downtime not working after 2012R2.4 update

Post by slansing »

Can you send us a copy of your:

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
I want to diff it and see if something went funky.
c.slagel
Posts: 57
Joined: Mon Dec 17, 2012 6:47 pm

Re: Recurring downtime not working after 2012R2.4 update

Post by c.slagel »

Sure thing, here you are.
recurringdowntime.pl
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime not working after 2012R2.4 update

Post by lmiltchev »

Sorry for the late response. It doesn't seem the "recurringdowntime.pl" has been modified, so we will need to do some more digging into this.
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Recurring downtime not working after 2012R2.4 update

Post by scottwilkerson »

This was a bug.

The attached file can be unzipped and placed in the following directory to resolve the issue.
/usr/local/nagiosxi/cron
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Recurring downtime not working after 2012R2.4 update

Post by BanditBBS »

scottwilkerson wrote:This was a bug.

The attached file can be unzipped and placed in the following directory to resolve the issue.
/usr/local/nagiosxi/cron
Scott,

Is a hotfix going to be released? I was holding off on upgrading until I saw a resolution to this issue.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Recurring downtime not working after 2012R2.4 update

Post by slansing »

It sounds like it is going to be rolled into the current 2.4b update and that should be done today.
c.slagel
Posts: 57
Joined: Mon Dec 17, 2012 6:47 pm

Re: Recurring downtime not working after 2012R2.4 update

Post by c.slagel »

Awesome. Thanks guys.
Locked