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

<p>Example:</p>

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

<p>Signed-off-by: Sven Nierlein <a href="mailto:sven@nierlein.de">sven@nierlein.de</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1414'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1414</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_by_ssh: print command output in verbose mode</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1414/files#diff-0">plugins/check_by_ssh.c</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1414.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1414.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1414.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1414.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1414">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2fivVezw9XsCNsVVmpdNt8-JQCNtks5psIC2gaJpZM4HuHYJ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1414"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>