summaryrefslogtreecommitdiffstats
path: root/web/attachments/306246-check_procs_perf
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/306246-check_procs_perf')
-rw-r--r--web/attachments/306246-check_procs_perf14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/attachments/306246-check_procs_perf b/web/attachments/306246-check_procs_perf
new file mode 100644
index 0000000..acbd997
--- /dev/null
+++ b/web/attachments/306246-check_procs_perf
@@ -0,0 +1,14 @@
1#!/bin/bash
2
3RET=`/usr/lib/nagios/plugins/check_procs "$@"`
4STATUS=$?
5
6getopts c:w: name "$@"
7eval $name=$OPTARG
8getopts c:w: name "$@"
9eval $name=$OPTARG
10
11VAL=`echo $RET | sed 's/^.*: \([0-9]*\) process.*$/\1/'`
12echo "$RET|procs=$VAL;$w;$c;0"
13
14exit $STATUS