check_index
Returns list of all known checks.
Implementation
| Windows | Linux | FreeBSD | MacOSX |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |
Argument Defaults
| Argument | Default Value |
|---|---|
| filter | implemented = 1 |
| empty-state | 3 (UNKNOWN) |
| empty-syntax | no checks found |
| top-syntax | %(list) |
| ok-syntax | |
| detail-syntax | %(name) |
Check Specific Arguments
None
Attributes
Filter Keywords
these can be used in filters and thresholds (along with the default attributes):
| Attribute | Description |
|---|---|
| name | name of the check |
| description | description of the check |
| implemented | check is available on current platform: 0 / 1 |
| windows | check is available on Windows: 0 / 1 |
| linux | check is available on Linux: 0 / 1 |
| osx | check is available on macOS: 0 / 1 |
| freebsd | check is available on FreeBSD: 0 / 1 |
| alias | check is an alias: 0 / 1 |
| script | check is a (wrapped) script: 0 / 1 |
Examples
Default Check
check_index filter="implemented = 1"
check_cpu...
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_index
use generic-service
check_command check_snclient!check_index!
}