mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-15 17:54:33 +02:00
Update ITL for check_ssh
Adds parameters for check_ssh (-r and -P) based on nagios-plugins 2.3.3 / monitoring-plugins 2.3 Fixes #9922
This commit is contained in:
parent
c5963712fa
commit
a662cb1a6b
@ -1481,12 +1481,14 @@ connects to an SSH server at a specified host and port.
|
|||||||
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||||
|
|
||||||
Name | Description
|
Name | Description
|
||||||
----------------|--------------
|
--------------------|--------------
|
||||||
ssh_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
|
ssh_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
|
||||||
ssh_port | **Optional.** The port that should be checked. Defaults to 22.
|
ssh_port | **Optional.** The port that should be checked. Defaults to 22.
|
||||||
ssh_timeout | **Optional.** Seconds before connection times out. Defaults to 10.
|
ssh_timeout | **Optional.** Seconds before connection times out. Defaults to 10.
|
||||||
ssh_ipv4 | **Optional.** Use IPv4 connection. Defaults to false.
|
ssh_ipv4 | **Optional.** Use IPv4 connection. Defaults to false.
|
||||||
ssh_ipv6 | **Optional.** Use IPv6 connection. Defaults to false.
|
ssh_ipv6 | **Optional.** Use IPv6 connection. Defaults to false.
|
||||||
|
ssh_remote_version | **Optional.** Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1).
|
||||||
|
ssh_remote_protocol | **Optional.** Alert if protocol doesn't match expected protocol version (ex: 2.0).
|
||||||
|
|
||||||
|
|
||||||
### ssl <a id="plugin-check-command-ssl"></a>
|
### ssl <a id="plugin-check-command-ssl"></a>
|
||||||
|
@ -1550,6 +1550,14 @@ object CheckCommand "ssh" {
|
|||||||
set_if = "$ssh_ipv6$"
|
set_if = "$ssh_ipv6$"
|
||||||
description = "Use IPv6 connection"
|
description = "Use IPv6 connection"
|
||||||
}
|
}
|
||||||
|
"-r" = {
|
||||||
|
value = "$ssh_remote_version$"
|
||||||
|
description = "Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)"
|
||||||
|
}
|
||||||
|
"-P" = {
|
||||||
|
value = "$ssh_remote_protocol$"
|
||||||
|
description = "Alert if protocol doesn't match expected protocol version (ex: 2.0)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vars.ssh_address = "$check_address$"
|
vars.ssh_address = "$check_address$"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user