Fix chain arguments and nagios stdout