Page 1 of 1
Reset last check time
Posted: Thu May 27, 2010 2:38 pm
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.
Re: Reset last check time
Posted: Thu May 27, 2010 2:51 pm
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.
Re: Reset last check time
Posted: Thu May 27, 2010 3:00 pm
by smsldoo
Here is the latest update from the server:
Ok -55s 1/5 2015-05-27 14:23:56
Re: Reset last check time
Posted: Thu May 27, 2010 3:19 pm
by mmestnik
Your rrd files will need to be wiped, don't worry your historical data is already(should already be) gone.
Re: Reset last check time
Posted: Thu May 27, 2010 3:23 pm
by smsldoo
And what would be the process for doing that?
Re: Reset last check time
Posted: Thu May 27, 2010 3:47 pm
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.
Re: Reset last check time
Posted: Wed Jun 02, 2010 5:43 am
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.