summaryrefslogtreecommitdiffstats
path: root/web/attachments/306246-check_procs_perf
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/306246-check_procs_perf
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
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