<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 18, 2014 at 7:57 PM, Holger Weiß <span dir="ltr"><<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Wouldn't <code>sed(1)</code> do the trick?  That is, a command line such as the following?</p>

<pre><code>command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 8080 | sed 's/^TCP //'</code></pre></blockquote><div>then you need to track the original check_tcp exit code since the sed command would exit 0 or fail and that will be the status instead.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><pre><code>
</code></pre><div class="HOEnZb"><div class="h5">

<p style="font-size:small;color:#666">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1240#issuecomment-35419631" target="_blank">Reply to this email on GitHub</a>.<img src="https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODI4MjY0MiwiZGF0YSI6eyJpZCI6MjU5MDA5MTN9fQ==--8588132bcf701109e07c523d48aa34cbc3d30a96.gif" height="1" width="1"></p>

</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Vänliga hälsningar / Best Regards<br>Mattias Ryrlén<br><br>__________________________<br>op5 AB<br>Första Långgatan 19<br>SE-413 27 Göteborg<br>Mobil: +46 735-17 70 99<br>
Support: +46 31-774 09 24<br><a href="http://www.op5.com">www.op5.com</a>
</div></div>