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?
Nagios XI set to UTC, but 30 minutes off
Re: Nagios XI set to UTC, but 30 minutes off
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();"
Former Nagios Employee
Re: Nagios XI set to UTC, but 30 minutes off
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
Not sure what happened either, but it sounds like you were able to resolve it. Are we good to mark this as resolved?
Former Nagios Employee
Re: Nagios XI set to UTC, but 30 minutes off
Yes please (I'll keep checking ntpd service)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?