How can I disable a nagios check

How can I disable a nagios check?


If you want to get rid of a nagios check (e.g. the CUPS check) you can disable it via udm:

  • Lookup the check:
    udm nagios/service list --filter cn=UNIVENTION_CUPS
    All hosts that will be tested are listed within the property assignedHosts.

  • Disable the check:
    There is no single deactivation flag. To disable a certain check, all assigned hosts have to be removed from a check:
    udm nagios/service modify --dn "cn=UNIVENTION_PACKAGE_STATUS,$(ucr get ldap/base)" --remove assignedHosts
    To reenable the check, the desired hosts have to be readded to this check.