Scheduled Downtimes not working correctly (5.2.3)
Scheduled Downtimes not working correctly (5.2.3)
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
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)
To better illustrate, can you show us a screenshot of what you're seeing on the scheduled downtime page?
Former Nagios Employee
Re: Scheduled Downtimes not working correctly (5.2.3)
Schedule attached (still marked as downtime in the system, even so it is already Monday for a while in UTC)rkennedy wrote:To better illustrate, can you show us a screenshot of what you're seeing on the scheduled downtime page?
You do not have the required permissions to view the files attached to this post.
Re: Scheduled Downtimes not working correctly (5.2.3)
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.iniRe: Scheduled Downtimes not working correctly (5.2.3)
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.
The fix may only work for new recurring downtimes so please create another and see if it follows it.
Let us know the results.
Code: Select all
/usr/local/nagiosxi/cron/recurringdowntime.plLet us know the results.
You do not have the required permissions to view the files attached to this post.
Re: Scheduled Downtimes not working correctly (5.2.3)
I not seem to get ANY downtimes after using this onessax 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.
The fix may only work for new recurring downtimes so please create another and see if it follows it.Code: Select all
/usr/local/nagiosxi/cron/recurringdowntime.pl
Let us know the results.
- very not good
Upgraded to 5.2.5 / should I re-create all downtimes now?
Re: Scheduled Downtimes not working correctly (5.2.3)
Start by recreating one recurring downtime, and make sure it works - then yes, recreate all of them.
Former Nagios Employee
Re: Scheduled Downtimes not working correctly (5.2.3)
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)
Are you seeing them now when you create them?
Re: Scheduled Downtimes not working correctly (5.2.3)
This is bad. Downtimes do not work at all. Even after being deleted and re-scheduled (5.2.5 XI appliance)ssax wrote:Are you seeing them now when you create them?
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 ~]#