Page 1 of 2
Recurring downtime not working after 2012R2.4 update
Posted: Fri Oct 04, 2013 1:00 pm
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!
Re: Recurring downtime not working after 2012R2.4 update
Posted: Fri Oct 04, 2013 1:22 pm
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?
Re: Recurring downtime not working after 2012R2.4 update
Posted: Fri Oct 04, 2013 1:37 pm
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.
Re: Recurring downtime not working after 2012R2.4 update
Posted: Fri Oct 04, 2013 2:06 pm
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.
Re: Recurring downtime not working after 2012R2.4 update
Posted: Fri Oct 04, 2013 2:12 pm
by c.slagel
Sure thing, here you are.
recurringdowntime.pl
Re: Recurring downtime not working after 2012R2.4 update
Posted: Mon Oct 07, 2013 12:17 pm
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.
Re: Recurring downtime not working after 2012R2.4 update
Posted: Mon Oct 07, 2013 12:18 pm
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
Re: Recurring downtime not working after 2012R2.4 update
Posted: Mon Oct 07, 2013 12:25 pm
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.
Re: Recurring downtime not working after 2012R2.4 update
Posted: Mon Oct 07, 2013 12:37 pm
by slansing
It sounds like it is going to be rolled into the current 2.4b update and that should be done today.
Re: Recurring downtime not working after 2012R2.4 update
Posted: Mon Oct 07, 2013 1:11 pm
by c.slagel
Awesome. Thanks guys.