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
Last Check time is in the future
Last Check time is in the future
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
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.
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
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
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
can you please post the contents of your nagios.cfg
Thanks
Thanks
Re: Last Check time is in the future
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
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 ?
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
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
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
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?
Also, is this a VM or manual install?
Re: Last Check time is in the future
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
This issue started when I changed from UTC to America/New_York.