diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/306246-check_procs_perf | |
download | site-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_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 | ||