Page 1 of 1
Different TZ for schedule downtime and Recurring Down
Posted: Thu Apr 29, 2021 12:46 pm
by matson-itops
server was accidentally in UTC
changed it on server, (OS) and system settings in nagios to Pacific.
confirmed in /etc/php.ini it is correct now
however, all my schedueld downtime are still in UTC after server reboot.
HELP
Re: Different TZ for schedule downtime and Recurring Down
Posted: Fri Apr 30, 2021 11:40 am
by vtrac
Hi,
Can you please check "Timezone Settings" under System Settings:
Nagios XI GUI > Admin > System Config > System Settings
F1.png
Once done, check your scheduled downtime again:
Nagios XI GUI > Home > Incident Management > Scheduled Downtime
Best Regards,
Vinh
Re: Different TZ for schedule downtime and Recurring Down
Posted: Fri Apr 30, 2021 6:06 pm
by matson-itops
yes. in the settings it is correct
somehow db is not refreshing
Re: Different TZ for schedule downtime and Recurring Down
Posted: Mon May 03, 2021 11:12 am
by ssax
Let's check some other places:
Please send the FULL output of these commands (as root):
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the first command if your DB is contained/stored on another server and/or you've changed the root mysql password
Code: Select all
mysql -h 127.0.0.1 -uroot -pnagiosxi -e 'SELECT NOW(); SELECT @@GLOBAL.time_zone, @@SESSION.time_zone;'
date
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
grep "date.timezone =" /etc/php.ini
grep timezone /var/lib/pgsql/data/postgresql.conf
I don't think it will auto-convert them for you, you'd likely need to remove and re-add the downtime.