mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
23 lines
255 B
Plaintext
23 lines
255 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
|
||
|
OK=0
|
||
|
WARNING=1
|
||
|
CRITICAL=2
|
||
|
UNKNOWN=3
|
||
|
|
||
|
STATUS=$UNKNOWN
|
||
|
|
||
|
OUTPUT=`fence_tool ls | grep "wait state" | awk '{ print $3}' `
|
||
|
|
||
|
if [ "$OUTPUT" = "none" ]; then
|
||
|
STATUS=$OK
|
||
|
fi
|
||
|
|
||
|
|
||
|
echo "Fence wait state (fence_tool ls) is: $OUTPUT"
|
||
|
exit $STATUS
|
||
|
|
||
|
|