1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-25 11:53:48 +01:00
nagios-plugins/check_dataprotector/trunk/check_dp_mountrequest
Páll Guðjón Sigurðsson 7e0aef04d5 check_dataprotector added
2010-03-01 22:09:31 +00:00

25 lines
359 B
Bash
Executable File

#!/bin/sh
OUTPUT=$(/opt/omni/bin/omnistat)
RESULT=$?
echo $OUTPUT | grep -q "No currently running sessions."
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "OK - No running sessions"
exit 0
fi
echo $OUTPUT | grep -q "Mount Request"
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Warning, Dataprotector has mount requests"
exit 1
fi
echo -n $OUTPUT
exit 0