Serivce Checks have a Negative Duration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Serivce Checks have a Negative Duration

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Serivce Checks have a Negative Duration

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Serivce Checks have a Negative Duration

Post 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
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Serivce Checks have a Negative Duration

Post by CGraham »

Mysteriously it's working now. Makes me afraid to reboot....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Serivce Checks have a Negative Duration

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Serivce Checks have a Negative Duration

Post by CGraham »

They're back. It appears I still have an issue. Any ideas?
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: Serivce Checks have a Negative Duration

Post by scottwilkerson »

see my previous post
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Serivce Checks have a Negative Duration

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

Re: Serivce Checks have a Negative Duration

Post by scottwilkerson »

Are the times synced now in Admin->System Profile ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Serivce Checks have a Negative Duration

Post 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!
Locked