Page 1 of 2

Last Check time is in the future

Posted: Thu Apr 19, 2012 11:40 am
by jfondow
I am having a touble with host and service checks. After a reboot, if I manually deactivate, save, and activate the service works fine. But after a reboot the "Last Check" column shows from 1-2 days in the future and I have to manually deactivate and activate each service to get it running correctly. I have the same issue for host detail. I have the local timezone setup with ntp and the system time and php.ini are showing correct timezones. Below are the output for time configuration and attached is a screen capture. Any help would be appreciated, thank you.

root@d01mgtnagios01p rc.d]# cat /etc/php.ini | grep date.timezone
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = America/New_York
[root@d01mgtnagios01p rc.d]# date
Thu Apr 19 12:32:48 EDT 2012
time_issue.png

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 12:09 pm
by scottwilkerson
Was your date set in the future before making the changes and rebooting?

I am thinking that you may have gotten results in the system with the wrong date and the Next Check time is scheduled off of that.

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 12:12 pm
by jfondow
No, I have verified the dates are correct prior to rebooting. After I reboot, the times in the Last Check show in the future. I can go into Service, deactivate the service, save, apply config, go back activate the service, save and apply and it works fine, until next reboot. Does this help describe the problem?

From the web interface inside Nagios is current, and the time is even correc when I reboot.
Last Updated: 19/04/2012 13:09:59

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 12:19 pm
by scottwilkerson
can you please post the contents of your nagios.cfg

Thanks

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 12:26 pm
by jfondow
nagios.txt attached, thank you.

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 1:03 pm
by scottwilkerson
That all looks normal.

What version of XI are you running?

What changes have you made to the system besides the install of XI, adding ntp, and updating the php.ini?

Have you changed anything on the boot level, for example, in /etc/rc.d ?

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 1:16 pm
by jfondow
Here is the output of System Profile attached, hopefully that will help. Only other changes I made were:
chkconfig ntpd on
ntpdate <internal NTP server>
/etc/init.d/ntpd start

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 4:32 pm
by scottwilkerson
How many restarts have you done on the system since you installed ntp and got the date setup correctly?

Also, is this a VM or manual install?

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 6:32 pm
by jfondow
I have rebooted about 5 times testing, same results each time. The install was with the VM build.

Re: Last Check time is in the future

Posted: Thu Apr 19, 2012 6:40 pm
by jfondow
This issue started when I changed from UTC to America/New_York.