<blockquote>
<p>It would, but be carefully with the pipes, the exit code of the command, will be the exit code from the last command in the pipe :)</p>
</blockquote>

<p>Er, indeed.  So you'd need a little wrapper script.</p>

<p>Oh well, I'm not against such an option.  (I'd really prefer to get rid of this first output field <a href="http://thread.gmane.org/gmane.network.nagios.plugins.devel/5155">in other plugins as well</a>, but I guess that's somewhat unrelated.)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/issues/1240#issuecomment-35426841'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODI4NjU3NCwiZGF0YSI6eyJpZCI6MjU5MDA5MTN9fQ==--e48a92f20820c5f7f15fdff5811979d9e5721673.gif' height='1' width='1'></p>