Reset Nagios timers

Linux July 2nd, 2009

In case you - just like me - unplugged your Nagios monitoring box from the network for some time, you will get strange statusses for some services, mentioning they’re OK for more than 300 days for example. You probably want to get rid of this. But how do you get this done?

Well, the solution is quite simple. Stop the Nagios service (”service nagios stop” for RedHat based systems) and delete (or archive, which is better in case something goes wrong) the file ”/var/log/nagios/retention.dat”

After this, start the Nagios service again (”service nagios start” for RedHat based systems) and the timers will all be set to zero, with Status on Pending, indicating the first check is being scheduled.

Leave a Reply