Change stdout for nagios plugins api