Reset last check time
-
- Posts: 6
- Joined: Tue May 25, 2010 7:12 pm
Reset last check time
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.
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
Re: Reset last check time
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.
-
- Posts: 6
- Joined: Tue May 25, 2010 7:12 pm
Re: Reset last check time
Here is the latest update from the server:
Ok -55s 1/5 2015-05-27 14:23:56
Ok -55s 1/5 2015-05-27 14:23:56
-
- Posts: 972
- Joined: Mon Feb 15, 2010 2:23 pm
Re: Reset last check time
Your rrd files will need to be wiped, don't worry your historical data is already(should already be) gone.
-
- Posts: 6
- Joined: Tue May 25, 2010 7:12 pm
Re: Reset last check time
And what would be the process for doing that?
-
- Posts: 972
- Joined: Mon Feb 15, 2010 2:23 pm
Re: Reset last check time
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.
The comment was merely an indicator as to how far up mud creek you are.
-
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
Re: Reset last check time
From the Admin page stop the Performance grapher service.smsldoo wrote:And what would be the process for doing that?
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.