From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/306246-check_procs_perf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 web/attachments/306246-check_procs_perf (limited to 'web/attachments/306246-check_procs_perf') 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 @@ +#!/bin/bash + +RET=`/usr/lib/nagios/plugins/check_procs "$@"` +STATUS=$? + +getopts c:w: name "$@" +eval $name=$OPTARG +getopts c:w: name "$@" +eval $name=$OPTARG + +VAL=`echo $RET | sed 's/^.*: \([0-9]*\) process.*$/\1/'` +echo "$RET|procs=$VAL;$w;$c;0" + +exit $STATUS -- cgit v1.2.3-74-g34f1