Rule based notifications and hard states

When a service or host gets recovered from either WARN/CRIT/UNKW/UNREACHABLE/DOWN state to OK/UP, it’s automatically an hard state (OK).
What you can do is write your own notification script and add some logic to it.
Using for example the notification variables such as NOTIFY_NOTIFICATIONTYPE and NOTIFY_PREVIOUSSERVICEHARDSTATE to get your logic to work.

Still you “can’t run away” from OK/UP being an hard state.

More info here : https://checkmk.com/cms_notifications.html#scripts

Cheers,

1 Like