#!/usr/bin/php Secs, RpcProcessingTime_avg_time:<" . $RpcProcessingTime_avg_time . "> Secs"; if ($RpcQueueTime_avg_time >= $crit) { echo "CRITICAL: " . $out_msg . "\n"; exit (2); } if ($RpcQueueTime_avg_time >= $warn) { echo "WARNING: " . $out_msg . "\n"; exit (1); } echo "OK: " . $out_msg . "\n"; exit(0); /* print usage */ function usage () { echo "Usage: $0 -h -p port -n -w -c \n"; } ?>