Nagios XI Time Issue Still

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Nagios XI Time Issue Still

Post by costanza2k1 »

related to this post: http://support.nagios.com/forum/viewtop ... 16&t=23050

System Profile:

Code: Select all

Date/Time

PHP Timezone: America/Los_Angeles 
PHP Time: Wed, 11 Dec 2013 08:50:03 -0800
System Time: Wed, 11 Dec 2013 08:50:03 -0800
The times are still negative and the last check time show eastern time zone, any suggestions on where else I should look?
You do not have the required permissions to view the files attached to this post.
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Nagios XI Time Issue Still

Post by costanza2k1 »

following this post right now:

http://support.nagios.com/forum/viewtop ... ime#p56255

Will post my results
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios XI Time Issue Still

Post by abrist »

Great. A server reboot will almost always solve this problem, but we understand that is not possible in some environments. Once the times have been fixed, you should not experience this problem again unless your server hardware is experiencing severe clock skew/drift.
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
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Nagios XI Time Issue Still

Post by costanza2k1 »

Followed the PDF again, as well as the documentation in the post. Any other suggestions?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI Time Issue Still

Post by slansing »

Just to make absolutely sure please post the output of the following:

Code: Select all

cat /etc/php.ini | grep timezone

date
You may also be able to remote the retention.dat file and restart nagios:

Code: Select all

/usr/local/nagios/var/retention.dat
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Nagios XI Time Issue Still

Post by costanza2k1 »

Code: Select all

-sh-4.1$ cat /etc/php.ini | grep timezone
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = America/Los_Angeles
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Nagios XI Time Issue Still

Post by costanza2k1 »

slansing wrote: You may also be able to remote the retention.dat file and restart nagios:

Code: Select all

/usr/local/nagios/var/retention.dat
I'm sorry I don't know what this means...
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI Time Issue Still

Post by slansing »

What was the output of:

Code: Select all

date
To remove retention.dat and have nagios recreate it run the following:

Code: Select all

service ngaios stop
rm /usr/local/nagios/var/retention.dat
service nagios start
NOTE: Removing this file will force all of your checks to a pending state until they return a new check, this scheduling will be handled by nagios.
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Nagios XI Time Issue Still

Post by costanza2k1 »

date

Code: Select all

-sh-4.1$ date
Wed Dec 11 10:27:39 PST 2013
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Nagios XI Time Issue Still

Post by costanza2k1 »

Code: Select all

1/5	12/31/1969 19:00:00	Service check is pending... Check is scheduled for 12/11/2013 13:31:56
Still showing East Coast time...
Locked