Recurring downtime not working after 2012R2.4 update
Recurring downtime not working after 2012R2.4 update
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
What happens when you run the following script manually?
Do you get any errors?
What is the output of the following command?
Code: Select all
/usr/local/nagiosxi/cron/recurringdowntime.plWhat is the output of the following command?
Code: Select all
tail -50 /var/log/httpd/error_logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Recurring downtime not working after 2012R2.4 update
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
Can you send us a copy of your:
I want to diff it and see if something went funky.
Code: Select all
/usr/local/nagiosxi/cron/recurringdowntime.plRe: Recurring downtime not working after 2012R2.4 update
Sure thing, here you are.
You do not have the required permissions to view the files attached to this post.
Re: Recurring downtime not working after 2012R2.4 update
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
This was a bug.
The attached file can be unzipped and placed in the following directory to resolve the issue.
/usr/local/nagiosxi/cron
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.
Re: Recurring downtime not working after 2012R2.4 update
Scott,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
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
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
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
Awesome. Thanks guys.