8 This script run the test1 or test2 over a machine.
24 while getopts "hH:w:c:p:" OPTION
43 #echo $HOST $PORT $WARN_LEVEL $CRIT_LEVEL
45 `wget -q "http://$HOST:$PORT/search.pz2?command=server-status" -O- | xsltproc /etc/pazpar2/server-status-nagios.xsl - 2> /dev/null`
47 if [ $? -ne 0 ] ; then
48 MSG="FATAL failed to communicate with pazpar2"
52 if [ "$WARN_LEVEL" != "" ] ; then
53 if [ $SESSIONS -gt $WARN_LEVEL ]; then
59 if [ "$CRIT_LEVEL" != "" ] ; then
60 if [ $SESSIONS -gt $CRIT_LEVEL ]; then
66 echo "SESSIONS $MSG $SESSIONS ($CLIENTS) [$VIRT,$VIRTUSE,$AREA,$ORDBLKS,$UORDBLKS,$FORDBLKS,$KEEPCOST,$HBLKS,$HBLKHD] | $SESSIONS;$WARN_LEVEL;$CRIT_LEVEL "