How to increase number of check attempts for local check, before sending notifications?

Hello,

I’ve setup a python script, as a local check (/usr/lib/check_mk_agent/local/900/myscript.py - runs every 15 min), and a custom notification script that is like a last line of defense, and it blasts out SMS messages.

The SMS notification method is configured only for a single host, and a single service. If that service fails once, the notification script starts blasting SMS. I would like CMK to wait for 2 or 3 failures, before it starts sending out the SMS. How can I accomplish this?

I remember playing around with these settings:


But I’m not sure if that’s the thing I’m looking for for this type of check.

Yes, “maximum number of check attempts for service” should help here.
The docs explain it a bit more: