Reset last check time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
smsldoo
Posts: 6
Joined: Tue May 25, 2010 7:12 pm

Reset last check time

Post by smsldoo »

Ran in to an issue while trying to reset all of my server clocks. All of the clocks got pushed forward about 5 years, as such Nagios took a reading during that time and all of the counters now say last checked +5 years. Is there a way to reset all of these counters? Also the duration is showing negative numbers for all of the checks.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Reset last check time

Post by tonyyarusso »

Nagios Core keeps track of changes in time internally, so what should happen here is the system will notice that the clock did something odd, and adjust the "next check time" for all of the services to compensate for the shift. Thus, if the next check time was 15:00:00 27 May 2015, and the clock moved back 5 years, Nagios should change that next check time to 15:00:00 27 May 2010. Then all you need to do is wait for that check time to arrive as usual, and the problem should resolve itself. If it's been longer that the time period between checks and you still don't have a fresh check yet, let us know.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
smsldoo
Posts: 6
Joined: Tue May 25, 2010 7:12 pm

Re: Reset last check time

Post by smsldoo »

Here is the latest update from the server:

Ok -55s 1/5 2015-05-27 14:23:56
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Reset last check time

Post by mmestnik »

Your rrd files will need to be wiped, don't worry your historical data is already(should already be) gone.
smsldoo
Posts: 6
Joined: Tue May 25, 2010 7:12 pm

Re: Reset last check time

Post by smsldoo »

And what would be the process for doing that?
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Reset last check time

Post by mmestnik »

I'm quite confident that the Juice would not be worth the Squeeze. You are going to have to be able to navigate the command line on your own to clean up after this, posting this one fix would only serve to provide you with false hope.

The comment was merely an indicator as to how far up mud creek you are.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Reset last check time

Post by Box293 »

smsldoo wrote:And what would be the process for doing that?
From the Admin page stop the Performance Grapher service.

If you don't know much about the linux command line then use a third party application like WinSCP to connect to your Nagios XI server.

Navigate to /usr/local/nagios/share/perfdata

There is a directory for each host and each directory has all of the service graphs in here.

Delete ALL of the directories. This will destroy any statistical data that may be left.

From the Admin page start the Performance Grapher service.

Wait about 10 minutes to see if this fixes your problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked