Patches for check_ph script for Nagios plugins [sf#777753] [#527]