check_omd

Check OMD site status.

Implementation

WindowsLinuxFreeBSDmacOS
✅

Argument Defaults

ArgumentDefault Value
filterautostart = 1
warningstate == 1
criticalstate >= 2
empty-state3 (UNKNOWN)
empty-syntaxcheck_omd failed to find any site with this filter.
top-syntax%(status) - %(list)
ok-syntax
detail-syntaxsite %(site): %(status)%(failed_services_txt)

Check Specific Arguments

ArgumentDescription
excludeSkip this OMD service
siteShow this site only

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
siteOMD site name
autostartConfiguration value of ‘autostart’: 0/1
stateReturn code of OMD status, 0 - running, 1 - partially running, 2 - stopped, 3 - unknown
statusText status: (running, partially running, stopped, unknown)
failed_servicesList of failed services
failed_services_txtMore usable form of failed services list

Examples

Default Check

check_omd
OK - site demo: running |...

Check specific site by site filter:

check_omd site=demo
OK - site demo: running |...

Example using check_snclient and Naemon

Naemon Config

define command{
    command_name         check_snclient
    command_line         $USER1$/check_snclient -k -p 'your-password' -u 'https://$HOSTADDRESS$:8443' $ARG1$ $ARG2$
}

define service {
    host_name            testhost
    service_description  check_omd
    use                  generic-service
    check_command        check_snclient!check_omd!
}