You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Princeton/pu/libexec/check_nrpe_unix_vvm_wrapper

16 lines
251 B
Bash

#!/bin/bash
plugins=/usr/local/monitoring/nagios/libexec
port=9666
timeout=60
command=check_vvm
host=$1
out=`${plugins}/check_nrpe -t $timeout -H $1 -p $port -c $command 2>&1`
stat=$?
if [[ "$stat" -eq "1" ]]; then stat=2; fi
echo $out
exit $stat