check_omd
Check OMD site status.
Implementation
| Windows | Linux | FreeBSD | macOS |
|---|---|---|---|
| ✅ |
Argument Defaults
| Argument | Default Value |
|---|---|
| filter | autostart = 1 |
| warning | state == 1 |
| critical | state >= 2 |
| empty-state | 3 (UNKNOWN) |
| empty-syntax | check_omd failed to find any site with this filter. |
| top-syntax | %(status) - %(list) |
| ok-syntax | |
| detail-syntax | site %(site): %(status)%(failed_services_txt) |
Check Specific Arguments
| Argument | Description |
|---|---|
| exclude | Skip this OMD service |
| site | Show this site only |
Attributes
Filter Keywords
these can be used in filters and thresholds (along with the default attributes):
| Attribute | Description |
|---|---|
| site | OMD site name |
| autostart | Configuration value of ‘autostart’: 0/1 |
| state | Return code of OMD status, 0 - running, 1 - partially running, 2 - stopped, 3 - unknown |
| status | Text status: (running, partially running, stopped, unknown) |
| failed_services | List of failed services |
| failed_services_txt | More 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!
}