Last Check time is in the future

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jfondow
Posts: 6
Joined: Thu Apr 19, 2012 11:17 am

Last Check time is in the future

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check time is in the future

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfondow
Posts: 6
Joined: Thu Apr 19, 2012 11:17 am

Re: Last Check time is in the future

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check time is in the future

Post by scottwilkerson »

can you please post the contents of your nagios.cfg

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfondow
Posts: 6
Joined: Thu Apr 19, 2012 11:17 am

Re: Last Check time is in the future

Post by jfondow »

nagios.txt attached, thank you.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check time is in the future

Post 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 ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfondow
Posts: 6
Joined: Thu Apr 19, 2012 11:17 am

Re: Last Check time is in the future

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check time is in the future

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfondow
Posts: 6
Joined: Thu Apr 19, 2012 11:17 am

Re: Last Check time is in the future

Post by jfondow »

I have rebooted about 5 times testing, same results each time. The install was with the VM build.
jfondow
Posts: 6
Joined: Thu Apr 19, 2012 11:17 am

Re: Last Check time is in the future

Post by jfondow »

This issue started when I changed from UTC to America/New_York.
Locked