Page 1 of 1
Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 10:39 am
by CGraham
I've had to restart the Nagios server and repair the database because of corruption.
Now, my service checks have a negative duration. Any ideas on where to start with this?
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 11:05 am
by lmiltchev
Are the system time and the php time in sync? Go to Admin->System Profile and check it out.
You can also refer to
this post. It's regarding a different issue but it may help in your case.
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 12:03 pm
by CGraham
Date/Time
PHP Timezone: America/New_York
PHP Time: Tue, 21 Aug 2012 13:02:36 -0400
System Time: Tue, 21 Aug 2012 17:02:36 +0000
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 12:30 pm
by CGraham
Mysteriously it's working now. Makes me afraid to reboot....
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 1:26 pm
by scottwilkerson
Are the times synced now in Admin->System Profile ?
If not you may also need to update the server timezone and time, instructions in this post
http://support.nagios.com/forum/viewtop ... ime#p24962
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 1:28 pm
by CGraham
They're back. It appears I still have an issue. Any ideas?
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 1:36 pm
by scottwilkerson
see my previous post
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 2:09 pm
by CGraham
No effect. Still have negative durations.
A little backstory: My / (root) ran out of space this morning, I had to extend the virtual disk in VMWare and then extend the volume group using LVM. Then I had to repair the mysql database because of corruption errors in the logs.
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 2:42 pm
by scottwilkerson
Are the times synced now in Admin->System Profile ?
Re: Serivce Checks have a Negative Duration
Posted: Tue Aug 21, 2012 3:16 pm
by CGraham
Yup.
PHP Timezone: America/New_York
PHP Time: Tue, 21 Aug 2012 16:15:58 -0400
System Time: Tue, 21 Aug 2012 16:15:58 -0400
And now my times are right too. Thanks for the help!