Page 1 of 2

Timing issues after upgrade 2014R1.3

Posted: Tue Aug 12, 2014 12:04 pm
by mvp
I am running Nagios 2014R1.3 on with the following :
suse linux
64 bit
VM image

I had a recent timing issue that occured after we upgraded our vCenter; it seemed to have been resolved by removing what I believe was retention data... as noted in the last post that I added to this board (refer title: Timing off after vCenter upgrade, Wed Jun 18, 2014 10:03 am)

We upgraded Nagios to 2014R1.3, as stated above & it seems to have created a similar problem. Attached is a screenshot of the timing - & please take note the network time in the bottom right corner of pc. It seems to be a few hours off along with minutes off, as well.

Re: Timing issues after upgrade 2014R1.3

Posted: Tue Aug 12, 2014 2:30 pm
by tmcdonald
Let's make sure your time settings on the nagios server are still sane:

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
ntpdate
ntpstat

Re: Timing issues after upgrade 2014R1.3

Posted: Wed Aug 13, 2014 7:24 am
by mvp
Below is the requested output:

[root@nagoisxi ~]# grep "date.timezone" /etc/php.ini
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = America/New_York

[root@nagoisxi ~]# ls -l /etc/localtime
-rw-r--r-- 1 root root 118 Aug 7 19:28 /etc/localtime

[root@nagoisxi ~]# php -r 'echo date("D M j G:i:s T Y")."\n";'
Wed Aug 13 8:21:59 EDT 2014

[root@nagoisxi ~]# date
Wed Aug 13 12:22:18 UTC 2014

[root@nagoisxi ~]# ntpdate
13 Aug 12:22:56 ntpdate[27996]: no servers can be used, exiting

[root@nagoisxi ~]# ntpstat
Unable to talk to NTP daemon. Is it running?

Re: Timing issues after upgrade 2014R1.3

Posted: Wed Aug 13, 2014 9:15 am
by tmcdonald
Looks like your system time and PHP do not agree. Assuming you truly are in the Eastern time zone, you will need to adjust the system time. Using NTP is pretty painless:

http://www.cyberciti.biz/faq/howto-inst ... ver-clock/

Re: Timing issues after upgrade 2014R1.3

Posted: Wed Aug 13, 2014 12:48 pm
by mvp
this is what came back after the synchronization part:

[root@nagoisxi ~]# ntpdate pool.ntp.org
13 Aug 17:44:44 ntpdate[6699]: no server suitable for synchronization found

Re: Timing issues after upgrade 2014R1.3

Posted: Wed Aug 13, 2014 2:16 pm
by abrist
Does this server have access to the internet/ntp's time servers?

Code: Select all

ping pool.ntp.org

Re: Timing issues after upgrade 2014R1.3

Posted: Wed Aug 13, 2014 2:26 pm
by mvp
output:

64 bytes from us2.gombadi.com (162.210.196.6): icmp_seq=95 ttl=53 time=12.7 ms

Re: Timing issues after upgrade 2014R1.3

Posted: Wed Aug 13, 2014 4:29 pm
by abrist
Odd. Try to sync again:

Code: Select all

ntpdate pool.ntp.org
Otherwise you will have to set the date by hand:
http://www.cyberciti.biz/faq/howto-set- ... nd-prompt/
Additionally, we have a doc covering datetime/time/zone issue with XI:
http://assets.nagios.com/downloads/nagi ... m_Time.pdf
After you fix the date, remember to restart mysql so that it updates its date time:

Code: Select all

service mysqld restart

Re: Timing issues after upgrade 2014R1.3

Posted: Thu Aug 14, 2014 7:30 am
by mvp
It's still out of sync with the network. Network time was 7:33. This was the output:

[root@nagoisxi ~]# ntpdate pool.ntp.org
14 Aug 11:27:31 ntpdate[6246]: step time server 50.7.68.4 offset 7.393775 sec

I had assistance with setting the time on this server & will need to revisit exactly what was done.

Re: Timing issues after upgrade 2014R1.3

Posted: Thu Aug 14, 2014 2:25 pm
by tmcdonald
Let us know what you come up with.