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
Different TZ for schedule downtime and Recurring Down
-
matson-itops
- Posts: 133
- Joined: Wed Nov 18, 2015 11:19 pm
Re: Different TZ for schedule downtime and Recurring Down
Hi,
Can you please check "Timezone Settings" under System Settings:
Nagios XI GUI > Admin > System Config > System Settings
Once done, check your scheduled downtime again:
Nagios XI GUI > Home > Incident Management > Scheduled Downtime
Best Regards,
Vinh
Can you please check "Timezone Settings" under System Settings:
Nagios XI GUI > Admin > System Config > System Settings
Once done, check your scheduled downtime again:
Nagios XI GUI > Home > Incident Management > Scheduled Downtime
Best Regards,
Vinh
You do not have the required permissions to view the files attached to this post.
-
matson-itops
- Posts: 133
- Joined: Wed Nov 18, 2015 11:19 pm
Re: Different TZ for schedule downtime and Recurring Down
yes. in the settings it is correct
somehow db is not refreshing
somehow db is not refreshing
Re: Different TZ for schedule downtime and Recurring Down
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
I don't think it will auto-convert them for you, you'd likely need to remove and re-add the downtime.
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