#!/bin/bash # SYNOPSIS # check_openvault <# DCPs> # # DESCRIPTION # This NAGIOS plugin checks whether: 1) openvault is running, # 2) at least 1 LCP is active, and 2) the number of active # DCPs is equal to the value supplied as an argument. # # AUTHOR # Wayne.Mallett@jcu.edu.au OK=0 WARN=1 CRITICAL=2 PATH="/bin:/sbin:/usr/bin:/usr/sbin" if [ $# -ne 1 ] ; then echo "" echo "SYNOPSIS" echo " check_openvault <# DCPs>" echo "" echo "DESCRIPTION" echo " This NAGIOS plugin checks whether: 1) openvault is running," echo " 2) at least 1 LCP is active, and 2) the number of active" echo " DCPs is equal to the value supplied as an argument." echo "" exit 1 fi cat >/tmp/ovCheck <