<p>It makes more sense to exit critical if a explicit version/protocol is requested. This<br>
would also be more consistent with other plugins. Other string matching plugins like<br>
check_snmp or check_http exit critical if the result does not match.</p>

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

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/sni/monitoring-plugins check_ssh_critical</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1268'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1268</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_ssh: change warning to critical for protocal/version errors</li>
</ul>

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

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1268.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1268.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1268.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1268.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/1268">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTc1MjI3NSwiZGF0YSI6eyJpZCI6MzU4NTE5OTl9fQ==--9ff9af81e0d52bd7239d4f0a5e1c155bd89e0531.gif" width="1" /></p>