Page 2 of 2

Re: How to check a service once a day, without an "OK" messa

Posted: Fri Sep 19, 2014 10:38 am
by avonnieda
Hey hey, now there's one I didn't know about, thank you! :)

OK, between the passive check and that option, I think it's doable! Thanks very much for your time, Eric.

Best regards,

-Adam

Re: How to check a service once a day, without an "OK" messa

Posted: Fri Sep 19, 2014 2:02 pm
by sreinhardt
You can absolutely do it that way, a nice addition to notification options, and alternatives to your script sending ok as well, would be to use event handlers to submit a passive check return if the service check does go to warning or critical. This will allow you to use nagios to check once a day, send the notification if warn\crit, and if either of those are found it will also auto-reset to OK as the event handler that returns. It has the added advantage of avoiding the reset to OK logic in your script, unless you want to handle it that way, which would be perfectly fine as well!

Re: How to check a service once a day, without an "OK" messa

Posted: Fri Sep 19, 2014 2:07 pm
by eloyd
You are welcome. Remember me in your will. ;-)
avonnieda wrote:Hey hey, now there's one I didn't know about, thank you! :)

OK, between the passive check and that option, I think it's doable! Thanks very much for your time, Eric.

Best regards,

-Adam

Re: How to check a service once a day, without an "OK" messa

Posted: Fri Sep 19, 2014 2:12 pm
by eloyd
If IT were a cat, Nagios would be the skinning process.
sreinhardt wrote:You can absolutely do it that way, a nice addition to notification options, and alternatives to your script sending ok as well, would be to use event handlers to submit a passive check return if the service check does go to warning or critical. This will allow you to use nagios to check once a day, send the notification if warn\crit, and if either of those are found it will also auto-reset to OK as the event handler that returns. It has the added advantage of avoiding the reset to OK logic in your script, unless you want to handle it that way, which would be perfectly fine as well!