Page 1 of 1

Nagios XI set to UTC, but 30 minutes off

Posted: Wed Aug 10, 2016 3:35 pm
by dlukinski
Hello XI support

We've just noticed our Nagios XI 30 minutes off UTC (wasn't the case in the past). Unsure what it could be and how to deal with it.

login as: root
[email protected]'s password:

[root@fikc-nagxiprod01 ~]# file /etc/localtime
/etc/localtime: symbolic link to `/usr/share/zoneinfo/UTC'

[root@fikc-nagxiprod01 zoneinfo]# date
Wed Aug 10 20:50:57 UTC 2016 - has to be 20:30 instead

PHP also set to UTC :-\

/etc/sysconfig/clock UTC as well

What could this be?

Re: Nagios XI set to UTC, but 30 minutes off

Posted: Wed Aug 10, 2016 3:38 pm
by rkennedy
Just to run through the normal procedure, could you show us the output for all 5 of these commands?

Code: Select all

grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
mysql -unagiosxi -pn@gweb -e "SELECT NOW();"

Re: Nagios XI set to UTC, but 30 minutes off

Posted: Wed Aug 10, 2016 3:41 pm
by dlukinski
rkennedy wrote:Just to run through the normal procedure, could you show us the output for all 5 of these commands?

Code: Select all

grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
mysql -unagiosxi -pn@gweb -e "SELECT NOW();"

NTPd was to be fed by the internal timeserver, but it just wasn't the case.
re-done ntpd part of the XI time manual and restarted sql services

correct time now. unsure why ntpd was stopped

Re: Nagios XI set to UTC, but 30 minutes off

Posted: Thu Aug 11, 2016 9:13 am
by rkennedy
Not sure what happened either, but it sounds like you were able to resolve it. Are we good to mark this as resolved?

Re: Nagios XI set to UTC, but 30 minutes off

Posted: Fri Aug 12, 2016 7:31 pm
by dlukinski
rkennedy wrote:Not sure what happened either, but it sounds like you were able to resolve it. Are we good to mark this as resolved?
Yes please (I'll keep checking ntpd service)