On Tue, Feb 18, 2014 at 7:57 PM, Holger Weiß <[email protected]>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
