mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
4 Commits
nagios-okp
...
nagios-okp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26e5c218b9 | ||
|
|
aa41f16b6e | ||
|
|
6230193b05 | ||
|
|
bbc5893cfe |
@@ -1,12 +1,11 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
%define plugin_name check_drbd
|
||||
%define version 0.0.3
|
||||
|
||||
|
||||
Summary: A Nagios plugin to check Linux Devicemapper Multipathing
|
||||
Name: nagios-okplugin-%{plugin_name}
|
||||
Version: %{version}
|
||||
Version: 0.0.4
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@@ -41,6 +40,18 @@ rm -rf %{buildroot}
|
||||
/etc/nrpe.d/%{plugin_name}.cfg
|
||||
|
||||
%changelog
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is> 0.0.4-1
|
||||
- licence and readme removed from specfile (palli@opensource.is)
|
||||
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is>
|
||||
- licence and readme removed from specfile (palli@opensource.is)
|
||||
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is>
|
||||
- licence and readme removed from specfile (palli@opensource.is)
|
||||
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is>
|
||||
- licence and readme removed from specfile (palli@opensource.is)
|
||||
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is> 0.0.3-1
|
||||
- new package built with tito
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Summary: Nagios plugins to check the status of MS-SQL Servers
|
||||
Name: nagios-okplugin-mssql
|
||||
Version: 0.0.5
|
||||
Version: 0.0.7
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@@ -39,6 +39,12 @@ rm -rf %{buildroot}
|
||||
%{_libdir}/nagios/plugins/*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 19 2012 Pall Sigurdsson <palli@opensource.is> 0.0.7-1
|
||||
-
|
||||
|
||||
* Mon Mar 19 2012 Pall Sigurdsson <palli@opensource.is>
|
||||
-
|
||||
|
||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.5-1
|
||||
-
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/%{plugin_name}.cfg
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
check_rhcs check_rhcs_cman_group.sh check_rhcs_manualfencing.sh
|
||||
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
|
||||
|
||||
@@ -45,6 +45,9 @@ rm -rf %{buildroot}
|
||||
/etc/nrpe.d/%{plugin_name}.cfg
|
||||
|
||||
%changelog
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is>
|
||||
-
|
||||
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is> 0.0.3-1
|
||||
- new package built with tito
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user