1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-12-22 00:53:50 +01:00

check_rhcs_fence added for rhel6 compatibility

This commit is contained in:
Pall Sigurdsson 2012-03-16 11:17:48 +00:00
parent 6230193b05
commit aa41f16b6e
3 changed files with 27 additions and 0 deletions

View 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

View File

@ -31,6 +31,7 @@ rm -rf %{buildroot}
install -D -p -m 0755 check_rhcs %{buildroot}%{_libdir}/nagios/plugins/check_rhcs
install -D -p -m 0755 check_rhcs_cman_group.sh %{buildroot}%{_libdir}/nagios/plugins/check_rhcs_cman_group.sh
install -D -p -m 0755 check_rhcs_manualfencing.sh %{buildroot}%{_libdir}/nagios/plugins/check_rhcs_manualfencing.sh
install -D -p -m 0755 check_rhcs_fence %{buildroot}%{_libdir}/nagios/plugins/check_rhcs_fence
install -D -p -m 0755 nrpe.d/%{plugin_name}.cfg %{buildroot}/etc/nrpe.d/%{plugin_name}.cfg

View File

@ -14,3 +14,7 @@ command[check_rhcs_cman_group]=/usr/lib64/nagios/plugins/check_rhcs_cman_group.s
command[check_rhcs_cman_group_default]=/usr/lib64/nagios/plugins/check_rhcs_cman_group.sh --level 0 --group default
command[check_rhcs_cman_group_rgmanager]=/usr/lib64/nagios/plugins/check_rhcs_cman_group.sh --level 1 --group rgmanager
# RHEL 6 specific
command[check_rhcs6_fencing]=/usr/lib64/nagios/plugins/check_rhcs_fence