This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
costanza2k1
Posts: 197 Joined: Fri Aug 09, 2013 12:19 pm
Post
by costanza2k1 » Wed Dec 11, 2013 11:52 am
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.
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Wed Dec 11, 2013 12:21 pm
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 .
costanza2k1
Posts: 197 Joined: Fri Aug 09, 2013 12:19 pm
Post
by costanza2k1 » Wed Dec 11, 2013 12:25 pm
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...
Post
by slansing » Wed Dec 11, 2013 12:31 pm
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
costanza2k1
Posts: 197 Joined: Fri Aug 09, 2013 12:19 pm
Post
by costanza2k1 » Wed Dec 11, 2013 12:35 pm
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
costanza2k1
Posts: 197 Joined: Fri Aug 09, 2013 12:19 pm
Post
by costanza2k1 » Wed Dec 11, 2013 1:01 pm
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...
Post
by slansing » Wed Dec 11, 2013 1:23 pm
What was the output of:
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.
costanza2k1
Posts: 197 Joined: Fri Aug 09, 2013 12:19 pm
Post
by costanza2k1 » Wed Dec 11, 2013 1:32 pm
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...