Page 1 of 2
Scheduled Downtimes not working correctly (5.2.3)
Posted: Mon Mar 21, 2016 9:55 am
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
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Mon Mar 21, 2016 10:45 am
by rkennedy
To better illustrate, can you show us a screenshot of what you're seeing on the scheduled downtime page?
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Mon Mar 21, 2016 12:20 pm
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)
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Mon Mar 21, 2016 3:21 pm
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
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Mon Mar 21, 2016 3:33 pm
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.
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Thu Mar 24, 2016 7:39 pm
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?
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Fri Mar 25, 2016 9:40 am
by rkennedy
Start by recreating one recurring downtime, and make sure it works - then yes, recreate all of them.
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Sun Mar 27, 2016 8:16 am
by dlukinski
rkennedy wrote:Start by recreating one recurring downtime, and make sure it works - then yes, recreate all of them.
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Mon Mar 28, 2016 9:36 am
by ssax
Are you seeing them now when you create them?
Re: Scheduled Downtimes not working correctly (5.2.3)
Posted: Sat Apr 16, 2016 2:15 pm
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 ~]#