mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-05 10:03:45 +01:00
25 lines
359 B
Bash
Executable File
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
|