How To Reset Nagios State

Published Date Author: , Posted November 5th, 2015 at 2:43:58pm

Every once in a while there is a hiccup in my internet service and every host that Nagios monitors shows DOWN. In those situations, I do not need the hundreds of the emails and text messages generated by Nagios.

Here is the procedure for resetting Nagios v3.5.0 running on MacOSX 10.6.8 via a MacPorts install:

1
2
3
/opt/local/var/nagios/nagios.init stop
mv /opt/local/var/nagios/retention.dat /opt/local/var/nagios/retention.dat.OLD
/opt/local/var/nagios/nagios.init start
/opt/local/var/nagios/nagios.init stop
mv /opt/local/var/nagios/retention.dat /opt/local/var/nagios/retention.dat.OLD
/opt/local/var/nagios/nagios.init start

As always, YMMV!

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.