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 <s...@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