1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-23 02:43:45 +01:00
nagios-plugins/check_dataprotector/trunk/check_dp_mountrequest

25 lines
359 B
Plaintext
Raw Normal View History

2010-03-01 23:09:31 +01:00
#!/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