From be3d09b7e15326ea3564bd1af4451af718c1e6b7 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 21 Nov 2011 10:04:06 +0000 Subject: [PATCH] check_procs wrapper added --- check_proc/check_procs.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 check_proc/check_procs.sh 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