Page 1 of 1

Time showing differently for recurring downtime.

Posted: Thu Jul 01, 2021 1:24 am
by Pratapa
Hi,

We are using Nagios XI and the timezone is set to HKT (Hong Kong Timezone).

We have configured rucurring downtime for a hostgroup and the time mentioned while creating the recurring downtime is from 22:00 to 6:00 HKT everyday but in the scheduled downtime window time is showing as 16:00 to 00:00. It should show as 22:00 to 6:00.

Please let me know why this time difference. why it is showing as 16:00 to 00:00 instead of 22:00 to 6:00


Regards,
Pratap

Re: Time showing differently for recurring downtime.

Posted: Thu Jul 01, 2021 1:21 pm
by pbroste
Hello Pratap,

Thanks for reaching out and would suggest checking the following timezone settings within the following configs:

Code: Select all

mysql ....SELECT 
            @@GLOBAL.time_zone,
            @@SESSION.time_zone;'
default-time-zone='+00:00' in /etc/my.cnf
date
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
grep "date.timezone =" /etc/php.ini
or
grep date.timezone /etc/php.ini
Let me know if everything is the set the same.

Thanks,
Perry