check_by_ssh: print command output in verbose mode (#1414)

Sven Nierlein notifications at github.com
Thu Mar 10 21:36:06 CET 2016


right now it is not possible to print the command output of ssh.
check_by_ssh
only prints the command itself. This patchs adds printing the output too.
This
makes it possible to use ssh with verbose logging which helps debuging any
connection, key or other ssh problems.
Note: you must use -E,--skip-stderr=<high number>, otherwise check_by_ssh
would
always exit with unknown state.

Example:

  ./check_by_ssh -H localhost -o LogLevel=DEBUG3 -C "sleep 1" -E 999 -v

Signed-off-by: Sven Nierlein <sven at nierlein.de>
You can view, comment on, or merge this pull request online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1414

-- Commit Summary --

  * check_by_ssh: print command output in verbose mode

-- File Changes --

    M plugins/check_by_ssh.c (7)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1414.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1414.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1414
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20160310/6c64b7c8/attachment.html>


More information about the Devel mailing list