Page 1 of 2
Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 11:52 am
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?
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 12:14 pm
by costanza2k1
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 12:21 pm
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.
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 12:25 pm
by costanza2k1
Followed the PDF again, as well as the documentation in the post. Any other suggestions?
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 12:31 pm
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
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 12:35 pm
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
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 1:01 pm
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...
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 1:23 pm
by slansing
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.
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 1:27 pm
by costanza2k1
date
Code: Select all
-sh-4.1$ date
Wed Dec 11 10:27:39 PST 2013
Re: Nagios XI Time Issue Still
Posted: Wed Dec 11, 2013 1:32 pm
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...