Different TZ for schedule downtime and Recurring Down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matson-itops
Posts: 133
Joined: Wed Nov 18, 2015 11:19 pm

Different TZ for schedule downtime and Recurring Down

Post 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
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Different TZ for schedule downtime and Recurring Down

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

Post by matson-itops »

yes. in the settings it is correct

somehow db is not refreshing
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Different TZ for schedule downtime and Recurring Down

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