Nagios XI set to UTC, but 30 minutes off

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Nagios XI set to UTC, but 30 minutes off

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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();"
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

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