Time showing differently for recurring downtime.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Time showing differently for recurring downtime.

Post 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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Time showing differently for recurring downtime.

Post 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
Locked