Nagios passive checks, reset service to OK state after notification

nagios

We have a passive service setup (external server reports issues via passive checks to nagios) and nagios sends out notifications when these services receive a non-ok state. However, we don't want to have to go in and manually reset the state of that service back to OK, is there a way to tell nagios to re-set the service back once it's received the non-ok state? I tried setting "is-volitle" to 1 but that didn't seem to work. Thanks!

Best Answer

Simply build a script on the nagios server that submits a passive check with a status of OK. Define a command in nagios that will call the script with the host and service name. Setup a notification to be linked with the host and service that will trigger that notification command in addition to any other notifications.

Related Topic