Recurring Downtime in 2011R3.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Recurring Downtime in 2011R3.2

Post by gwakem »

I checked the forums, but didnt see anything that fit for what were seeing.

We can schedule a regular downtime for hosts and services, and that gets logged correctly in /var/log/messages, however, recurring downtime seems to be getting ignored. We did some testing and found that the entries get places in the recurringdowntime.cfg correctly, but never get entered in the log upon entry, and at the time they should trigger a downtime for a host or service, they dont. No log entries, nothing. The file permissions appear correct, apache:nagios, -rw-rw-r-- on recurringdowntime.cfg. The modification time is also accurately reflects the time we entered the downtime. As a test, I attempted to import this file via CCM > Tools > Import Config Files, but got no conformation, it just thought about it for a second and then did nothing.

Is this a known issue with 2011r3.2? I can PM the recurringdowntime.cfg to whomever, and I have attached the profile.txt to this post. Any ideas of where I can begin looking?
You do not have the required permissions to view the files attached to this post.
--
Griffin Wakem
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Recurring Downtime in 2011R3.2

Post by scottwilkerson »

When creating recurring downtimes, it only runs the cron to create the downtimes once per hour
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Recurring Downtime in 2011R3.2

Post by gwakem »

Ok, Ill check the cron job. We have had recurring downtime set for weeks that is being consistently ignored. Thanks for the pointer.
--
Griffin Wakem
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Recurring Downtime in 2011R3.2

Post by scottwilkerson »

Yeah, you're looking for the one that calls /usr/local/nagiosxi/cron/recurringdowntime.pl

You also can run that file directly to see if you are getting any errors
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Recurring Downtime in 2011R3.2

Post by gwakem »

In checking the cron job, I was lead to the log (/usr/local/nagiosxi/var/recurringdowntime.log) where I see every host set for recurring downtime throwing this one error: "ERROR: Invalid host Blah!"

I can copy and paste that host name into nagios and it comes up, so its not a case sensitivity issue. All of the other fields seem to check out. Why would it believe that these valid hosts are invalid?
--
Griffin Wakem
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Recurring Downtime in 2011R3.2

Post by scottwilkerson »

Actually there was a bug that was fixed since 3.2 relating to exactly this.

I have attached the new file you can place in
/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
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Recurring Downtime in 2011R3.2

Post by gwakem »

Ha! I think we just found it and fixed it... Im assuming regarding the wildcard issue. Its working for us now.. but thank you! :)
--
Griffin Wakem
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Recurring Downtime in 2011R3.2

Post by scottwilkerson »

actually it had to do with line endings in the nagios.cfg if you can believe that...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked