diff --git a/check_proc/check_procs.sh b/check_proc/check_procs.sh new file mode 100755 index 0000000..4dc3a8b --- /dev/null +++ b/check_proc/check_procs.sh @@ -0,0 +1,6 @@ +#!/bin/bash +LINE=`/usr/lib64/nagios/plugins/check_procs $*` +RC=$? +COUNT=`echo $LINE | awk '{print $3}'` +echo $LINE \| procs=$COUNT +exit $RC