Page 1 of 1

Clear all events

Posted: Thu Apr 03, 2014 2:26 pm
by linuxnag
This is a rather unusual request but there is a need for it.
What I want to do is clear all events, (critical and warnings).

This way I want Nagios to "start from scratch"

The reason for this is a separate issue, regarding another product
and synchronized communications between Nagios and them.

Thank you in advance.

Re: Clear all events

Posted: Thu Apr 03, 2014 2:39 pm
by slansing
You want to clear all current states of your hosts/services? You can stop nagios, and remove the retention.dat file and then start nagios again, that will effectively re-schedule everything and start it all from a pending state.

Code: Select all

service nagios stop

rm -f /usr/local/nagios/var/retention.dat

service nagios start

Re: Clear all events

Posted: Thu Apr 03, 2014 4:48 pm
by linuxnag
Perfect!
You guys are the best!

Thank you!

Re: Clear all events

Posted: Thu Apr 03, 2014 4:51 pm
by slansing
Awesome, glad that is what you needed. Closing this up.