File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -1480,13 +1480,15 @@ connects to an SSH server at a specified host and port.
1480
1480
1481
1481
Custom variables passed as [ command parameters] ( 03-monitoring-basics.md#command-passing-parameters ) :
1482
1482
1483
- Name | Description
1484
- ----------------|--------------
1485
- ssh_address | ** Optional.** The host's address. Defaults to "$address$" if the host's ` address ` attribute is set, "$address6$" otherwise.
1486
- ssh_port | ** Optional.** The port that should be checked. Defaults to 22.
1487
- ssh_timeout | ** Optional.** Seconds before connection times out. Defaults to 10.
1488
- ssh_ipv4 | ** Optional.** Use IPv4 connection. Defaults to false.
1489
- ssh_ipv6 | ** Optional.** Use IPv6 connection. Defaults to false.
1483
+ Name | Description
1484
+ --------------------|--------------
1485
+ ssh_address | ** Optional.** The host's address. Defaults to "$address$" if the host's ` address ` attribute is set, "$address6$" otherwise.
1486
+ ssh_port | ** Optional.** The port that should be checked. Defaults to 22.
1487
+ ssh_timeout | ** Optional.** Seconds before connection times out. Defaults to 10.
1488
+ ssh_ipv4 | ** Optional.** Use IPv4 connection. Defaults to false.
1489
+ ssh_ipv6 | ** Optional.** Use IPv6 connection. Defaults to false.
1490
+ ssh_remote_version | ** Optional.** Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1).
1491
+ ssh_remote_protocol | ** Optional.** Alert if protocol doesn't match expected protocol version (ex: 2.0).
1490
1492
1491
1493
1492
1494
### ssl <a id =" plugin-check-command-ssl " ></a >
Original file line number Diff line number Diff line change @@ -1550,6 +1550,14 @@ object CheckCommand "ssh" {
1550
1550
set_if = "$ssh_ipv6$"
1551
1551
description = "Use IPv6 connection"
1552
1552
}
1553
+ "-r" = {
1554
+ value = "$ssh_remote_version$"
1555
+ description = "Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)"
1556
+ }
1557
+ "-P" = {
1558
+ value = "$ssh_remote_protocol$"
1559
+ description = "Alert if protocol doesn't match expected protocol version (ex: 2.0)"
1560
+ }
1553
1561
}
1554
1562
1555
1563
vars.ssh_address = "$check_address$"
You can’t perform that action at this time.
0 commit comments