check_mk client can be used both from command line and from queries to check remote systes via check_mk
A list of all available queries (check commands)
Command | Description |
---|---|
check_mk_query | Request remote information via check_mk. |
Path / Section | Key | Description |
---|---|---|
/settings/check_mk/client | channel | CHANNEL |
/settings/check_mk/client/targets/default | address | TARGET ADDRESS |
/settings/check_mk/client/targets/default | retries | RETRIES |
/settings/check_mk/client/targets/default | timeout | TIMEOUT |
Path / Section | Key | Description |
---|---|---|
/settings/check_mk/client/targets/default | host | TARGET HOST |
/settings/check_mk/client/targets/default | port | TARGET PORT |
Path / Section | Key | Description |
---|---|---|
/settings/check_mk/client/targets/sample | address | TARGET ADDRESS |
/settings/check_mk/client/targets/sample | host | TARGET HOST |
/settings/check_mk/client/targets/sample | port | TARGET PORT |
/settings/check_mk/client/targets/sample | retries | RETRIES |
/settings/check_mk/client/targets/sample | timeout | TIMEOUT |
A quick reference for all available queries (check commands) in the CheckMKClient module.
Request remote information via check_mk.
Option | Default Value | Description |
---|---|---|
help | N/A | Show help screen (this screen) |
help-pb | N/A | Show help screen as a protocol buffer payload |
show-default | N/A | Show default values for a given command |
help-short | N/A | Show help screen (short format). |
host | The host of the host running the server | |
port | The port of the host running the server | |
address | The address (host:port) of the host running the server | |
timeout | Number of seconds before connection times out (default=10) | |
target | Target to use (lookup connection info from config) | |
retry | Number of times ti retry a failed connection attempt (default=2) | |
retries | legacy version of retry | |
source-host | Source/sender host name (default is auto which means use the name of the actual host) | |
sender-host | Source/sender host name (default is auto which means use the name of the actual host) | |
command | The name of the command that the remote daemon should run | |
argument | Set command line arguments | |
separator | Separator to use for the batch command (default is | |
batch | Add multiple records using the separator format is: command | |
certificate | Length of payload (has to be same as on the server) | |
dh | Length of payload (has to be same as on the server) | |
certificate-key | Client certificate to use | |
certificate-format | Client certificate format | |
ca | Certificate authority | |
verify | Client certificate format | |
allowed-ciphers | Client certificate format | |
ssl | 1 | Initial an ssl handshake with the server. |
Description: Show help screen (this screen)
### help-pbDescription: Show help screen as a protocol buffer payload
### show-defaultDescription: Show default values for a given command
### help-shortDescription: Show help screen (short format).
### hostDescription: The host of the host running the server
### portDescription: The port of the host running the server
### addressDescription: The address (host:port) of the host running the server
### timeoutDescription: Number of seconds before connection times out (default=10)
### targetDescription: Target to use (lookup connection info from config)
### retryDescription: Number of times ti retry a failed connection attempt (default=2)
### retriesDescription: legacy version of retry
### source-hostDescription: Source/sender host name (default is auto which means use the name of the actual host)
### sender-hostDescription: Source/sender host name (default is auto which means use the name of the actual host)
### commandDescription: The name of the command that the remote daemon should run
### argumentDescription: Set command line arguments
### separatorDescription: Separator to use for the batch command (default is |)
### batchDescription: Add multiple records using the separator format is: command|argument|argument
### certificateDescription: Length of payload (has to be same as on the server)
### dhDescription: Length of payload (has to be same as on the server)
### certificate-keyDescription: Client certificate to use
### certificate-formatDescription: Client certificate format
### caDescription: Certificate authority
### verifyDescription: Client certificate format
### allowed-ciphersDescription: Client certificate format
### sslDeafult Value: 1
Description: Initial an ssl handshake with the server.
## CHECK MK CLIENT SECTIONSection for check_mk active/passive check module.
# Section for check_mk active/passive check module.
[/settings/check_mk/client]
channel=CheckMK
Key | Default Value | Description |
---|---|---|
channel | CheckMK | CHANNEL |
CHANNEL
The channel to listen to.
Key | Description |
---|---|
Path: | /settings/check_mk/client |
Key: | channel |
Default value: | CheckMK |
Used by: | CheckMKClient |
[/settings/check_mk/client]
# CHANNEL
channel=CheckMK
#
[/settings/check_mk/client/handlers]
#
[/settings/check_mk/client/scripts]
#
[/settings/check_mk/client/targets]
Target definition for: default
# Target definition for: default
[/settings/check_mk/client/targets/default]
retries=3
timeout=30
Key | Default Value | Description |
---|---|---|
address | TARGET ADDRESS | |
host | TARGET HOST | |
port | TARGET PORT | |
retries | 3 | RETRIES |
timeout | 30 | TIMEOUT |
TARGET ADDRESS
Target host address
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/default |
Key: | address |
Default value: | N/A |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/default]
# TARGET ADDRESS
address=
TARGET HOST
The target server to report results to.
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/default |
Key: | host |
Advanced: | Yes (means it is not commonly used) |
Default value: | N/A |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/default]
# TARGET HOST
host=
TARGET PORT
The target server port
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/default |
Key: | port |
Advanced: | Yes (means it is not commonly used) |
Default value: | N/A |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/default]
# TARGET PORT
port=
RETRIES
Number of times to retry sending.
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/default |
Key: | retries |
Default value: | 3 |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/default]
# RETRIES
retries=3
TIMEOUT
Timeout when reading/writing packets to/from sockets.
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/default |
Key: | timeout |
Default value: | 30 |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/default]
# TIMEOUT
timeout=30
Target definition for: sample
# Target definition for: sample
[/settings/check_mk/client/targets/sample]
retries=3
timeout=30
Key | Default Value | Description |
---|---|---|
address | TARGET ADDRESS | |
host | TARGET HOST | |
port | TARGET PORT | |
retries | 3 | RETRIES |
timeout | 30 | TIMEOUT |
TARGET ADDRESS
Target host address
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/sample |
Key: | address |
Default value: | N/A |
Sample key: | Yes (This section is only to show how this key is used) |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/sample]
# TARGET ADDRESS
address=
TARGET HOST
The target server to report results to.
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/sample |
Key: | host |
Advanced: | Yes (means it is not commonly used) |
Default value: | N/A |
Sample key: | Yes (This section is only to show how this key is used) |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/sample]
# TARGET HOST
host=
TARGET PORT
The target server port
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/sample |
Key: | port |
Advanced: | Yes (means it is not commonly used) |
Default value: | N/A |
Sample key: | Yes (This section is only to show how this key is used) |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/sample]
# TARGET PORT
port=
RETRIES
Number of times to retry sending.
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/sample |
Key: | retries |
Default value: | 3 |
Sample key: | Yes (This section is only to show how this key is used) |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/sample]
# RETRIES
retries=3
TIMEOUT
Timeout when reading/writing packets to/from sockets.
Key | Description |
---|---|
Path: | /settings/check_mk/client/targets/sample |
Key: | timeout |
Default value: | 30 |
Sample key: | Yes (This section is only to show how this key is used) |
Used by: | CheckMKClient |
[/settings/check_mk/client/targets/sample]
# TIMEOUT
timeout=30