Make it possible for check_tcp to inhibit "TCP " in output (#1240)

Mattias Ryrlén mattias.ryrlen at op5.com
Tue Feb 18 20:50:12 CET 2014


On Tue, Feb 18, 2014 at 7:57 PM, Holger Weiß <notifications at github.com>wrote:

> Wouldn't sed(1) do the trick? That is, a command line such as the
> following?
>
> command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 8080 | sed 's/^TCP //'
>
> 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.


>  --
> Reply to this email on GitHub<https://github.com/monitoring-plugins/monitoring-plugins/issues/1240#issuecomment-35419631>
> .
>



-- 
Vänliga hälsningar / Best Regards
Mattias Ryrlén

__________________________
op5 AB
Första Långgatan 19
SE-413 27 Göteborg
Mobil: +46 735-17 70 99
Support: +46 31-774 09 24
www.op5.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140218/d04596d7/attachment.html>


More information about the Devel mailing list