mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
9 Commits
nagios-okp
...
nagios-okp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26e5c218b9 | ||
|
|
aa41f16b6e | ||
|
|
6230193b05 | ||
|
|
bbc5893cfe | ||
|
|
599134bc5e | ||
|
|
f60a518bd3 | ||
|
|
f4615ffed5 | ||
|
|
05251498c1 | ||
|
|
8d0494c4ff |
59
check_drbd/nagios-okplugin-check_drbd.spec
Normal file
59
check_drbd/nagios-okplugin-check_drbd.spec
Normal file
@@ -0,0 +1,59 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
%define plugin_name check_drbd
|
||||
|
||||
|
||||
Summary: A Nagios plugin to check Linux Devicemapper Multipathing
|
||||
Name: nagios-okplugin-%{plugin_name}
|
||||
Version: 0.0.4
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://opensource.is/trac/wiki/%{plugin_name}
|
||||
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/%{plugin_name}/releases/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Packager: Pall Sigurdsson <palli@opensource.is>
|
||||
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/%{plugin_name}.cfg
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -D -p -m 0755 check_drbd %{buildroot}%{_libdir}/nagios/plugins/check_drbd
|
||||
install -D -p -m 0755 nrpe.d/%{plugin_name}.cfg %{buildroot}/etc/nrpe.d/%{plugin_name}.cfg
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README LICENSE
|
||||
%{_libdir}/nagios/plugins/*
|
||||
/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
|
||||
|
||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.2-1
|
||||
- new package built with tito
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Summary: A Nagios plugins to check if a specific linux module exists
|
||||
Name: nagios-okplugin-check_linux_modules
|
||||
Version: 0.0.12
|
||||
Version: 0.0.13
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@@ -24,7 +24,7 @@ perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_module.cfg
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -D -p -m 0755 check_linux_module.pl %{buildroot}%{_libdir}/nagios/plugins/check_linux_module.pl
|
||||
install -D -p -m 0755 check_linux_modules.pl %{buildroot}%{_libdir}/nagios/plugins/check_linux_modules.pl
|
||||
install -D -p -m 0755 nrpe.d/check_module.cfg %{buildroot}/etc/nrpe.d/check_module.cfg
|
||||
|
||||
%clean
|
||||
@@ -37,6 +37,9 @@ rm -rf %{buildroot}
|
||||
/etc/nrpe.d/check_module.cfg
|
||||
|
||||
%changelog
|
||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.13-1
|
||||
- typo in plugin name fixed (palli@opensource.is)
|
||||
|
||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.12-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
|
||||
|
||||
|
||||
58
check_rhcs/nagios-okplugin-check_rhcs.spec
Normal file
58
check_rhcs/nagios-okplugin-check_rhcs.spec
Normal file
@@ -0,0 +1,58 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
%define plugin_name check_rhcs
|
||||
%define version 0.0.3
|
||||
|
||||
|
||||
Summary: A Nagios plugin to check Red Hat Cluster suite (rhel5 and rhel6)
|
||||
Name: nagios-okplugin-%{plugin_name}
|
||||
Version: %{version}
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://opensource.is/trac/wiki/%{plugin_name}
|
||||
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/%{plugin_name}/releases/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Packager: Pall Sigurdsson <palli@opensource.is>
|
||||
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/%{plugin_name}.cfg
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
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
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
#%doc README LICENSE
|
||||
%{_libdir}/nagios/plugins/*
|
||||
/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
|
||||
|
||||
* Wed Mar 14 2012 Pall Sigurdsson <palli@opensource.is> 0.0.3-1
|
||||
- new package built with tito
|
||||
|
||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.2-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