mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-05 22:55:17 +01:00
check_rhcs_fence added for rhel6 compatibility
This commit is contained in:
22
check_rhcs/check_rhcs_fence
Normal file
22
check_rhcs/check_rhcs_fence
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user