'How to escalate NAGIOS CORE service to alert also without changing the state? (During the CRITICAL-Phase)

We have a PowerShell Script comparing AD Groups and alerting if there are any differences. The services works good. If the state changes (CRITICAL to RECOVERY or vica versa) it is OK.

We would like however that we receive Alerts even though the state did not changed.

NAGIOS CORE should alert as till the the services is recovered.

I have tried to add an escalate command, it does not work however. I have received one alert as it got "CRITICAL" but anyway nothing happens. We do not receive a 2nd or 3rd alert.

define service{
        name                        CheckADGroups_admins
        use                         systemhealth
        service_description         Check AD Admin Groups for Members of Administrators
        check_command               check_by_nrpe!check_domainadmins_admins!-t 300 ;
        check_interval              60                          
        servicegroups               +AVIR                           
        contact_groups              +ADGruppe
        register                    0
}

define serviceescalation{
        host_name                   HOSTNAME
        service_description         Check AD Admin Groups for Members of Administrators
        first_notification          1
        last_notification           0
        notification_interval       10
        contact_groups              +ADGruppe
    }

Has somebody an idea how to change the config?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source