summaryrefslogtreecommitdiffstats
path: root/web/attachments/306246-check_procs_perf
blob: acbd99752c15d14c843ea433bd9358cbca72e8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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