Scheduled Downtimes not working correctly (5.2.3)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Scheduled Downtimes not working correctly (5.2.3)

Post by dlukinski »

Recurring schedule which looks this way:

6:00 2160 sat,sun 14,15,16,17,18,19,20,21 (36 hours)

14:00 Mon (21) already, but still in downtime mode ?


5.2.3 VMWARE Appliance
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by rkennedy »

To better illustrate, can you show us a screenshot of what you're seeing on the scheduled downtime page?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by dlukinski »

rkennedy wrote:To better illustrate, can you show us a screenshot of what you're seeing on the scheduled downtime page?
Schedule attached (still marked as downtime in the system, even so it is already Monday for a while in UTC)
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by ssax »

Is the date/time on the server set properly?

Code: Select all

date
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
grep "date.timezone =" /etc/php.ini
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by ssax »

This may actually be a bug, to test this please make a backup of your current file and replace it with the one I've attached.

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
recurringdowntime.pl
The fix may only work for new recurring downtimes so please create another and see if it follows it.

Let us know the results.
You do not have the required permissions to view the files attached to this post.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by dlukinski »

ssax wrote:This may actually be a bug, to test this please make a backup of your current file and replace it with the one I've attached.

Code: Select all

/usr/local/nagiosxi/cron/recurringdowntime.pl
recurringdowntime.pl
The fix may only work for new recurring downtimes so please create another and see if it follows it.

Let us know the results.
I not seem to get ANY downtimes after using this one
- very not good

Upgraded to 5.2.5 / should I re-create all downtimes now?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by rkennedy »

Start by recreating one recurring downtime, and make sure it works - then yes, recreate all of them.
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by dlukinski »

rkennedy wrote:Start by recreating one recurring downtime, and make sure it works - then yes, recreate all of them.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by ssax »

Are you seeing them now when you create them?
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Scheduled Downtimes not working correctly (5.2.3)

Post by dlukinski »

ssax wrote:Are you seeing them now when you create them?
This is bad. Downtimes do not work at all. Even after being deleted and re-scheduled (5.2.5 XI appliance)

After using Nagios-provided script neither new nor old script creates any downtimes. We are currently bombarded with with alerts from hundreds of servers (patching weekend). Any attempt to create even a simple Sat/Sun downtime does not work either. This is very bad.

[root@fikc-nagxiprod01 ~]# date
Sun Apr 17 13:16:31 UTC 2016
[root@fikc-nagxiprod01 ~]# ls -l /etc/localtime
lrwxrwxrwx 1 root root 23 Jan 28 17:36 /etc/localtime -> /usr/share/zoneinfo/UTC
[root@fikc-nagxiprod01 ~]# php -r 'echo date("D M j G:i:s T Y")."\n";'
Sun Apr 17 13:17:54 UTC 2016
[root@fikc-nagxiprod01 ~]# grep "date.timezone =" /etc/php.ini
date.timezone = UTC
[root@fikc-nagxiprod01 ~]#
Locked