Timing issues after upgrade 2014R1.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
mvp
Posts: 26
Joined: Tue Jul 26, 2011 8:57 am
Location: USA - PA

Timing issues after upgrade 2014R1.3

Post 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.
You do not have the required permissions to view the files attached to this post.
mvp
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Timing issues after upgrade 2014R1.3

Post 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
Former Nagios employee
User avatar
mvp
Posts: 26
Joined: Tue Jul 26, 2011 8:57 am
Location: USA - PA

Re: Timing issues after upgrade 2014R1.3

Post 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?
mvp
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Timing issues after upgrade 2014R1.3

Post 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/
Former Nagios employee
User avatar
mvp
Posts: 26
Joined: Tue Jul 26, 2011 8:57 am
Location: USA - PA

Re: Timing issues after upgrade 2014R1.3

Post 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
mvp
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Timing issues after upgrade 2014R1.3

Post by abrist »

Does this server have access to the internet/ntp's time servers?

Code: Select all

ping pool.ntp.org
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
mvp
Posts: 26
Joined: Tue Jul 26, 2011 8:57 am
Location: USA - PA

Re: Timing issues after upgrade 2014R1.3

Post by mvp »

output:

64 bytes from us2.gombadi.com (162.210.196.6): icmp_seq=95 ttl=53 time=12.7 ms
mvp
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Timing issues after upgrade 2014R1.3

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
mvp
Posts: 26
Joined: Tue Jul 26, 2011 8:57 am
Location: USA - PA

Re: Timing issues after upgrade 2014R1.3

Post 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.
mvp
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Timing issues after upgrade 2014R1.3

Post by tmcdonald »

Let us know what you come up with.
Former Nagios employee
Locked