diff options
Diffstat (limited to 'web/attachments/306246-check_procs_perf')
-rw-r--r-- | web/attachments/306246-check_procs_perf | 14 |
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 | |||
3 | RET=`/usr/lib/nagios/plugins/check_procs "$@"` | ||
4 | STATUS=$? | ||
5 | |||
6 | getopts c:w: name "$@" | ||
7 | eval $name=$OPTARG | ||
8 | getopts c:w: name "$@" | ||
9 | eval $name=$OPTARG | ||
10 | |||
11 | VAL=`echo $RET | sed 's/^.*: \([0-9]*\) process.*$/\1/'` | ||
12 | echo "$RET|procs=$VAL;$w;$c;0" | ||
13 | |||
14 | exit $STATUS | ||