omd

check_omd

Check omd site status.

Implementation

WindowsLinuxFreeBSDMacOSX

Examples

Default Check

check_omd
OK - site demo: running |...

Check specific site by site filter:

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

Example using NRPE and Naemon

Naemon Config

define command{
    command_name         check_nrpe
    command_line         $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$
}

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

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