diff --git a/check_apcext.pl/nagios-okplugin-apc.spec b/check_apcext.pl/nagios-okplugin-apc.spec index dcacd0c..9099ab1 100644 --- a/check_apcext.pl/nagios-okplugin-apc.spec +++ b/check_apcext.pl/nagios-okplugin-apc.spec @@ -2,7 +2,7 @@ Summary: A Nagios plugin to check APC devices Name: nagios-okplugin-apc -Version: 0.0.3 +Version: 2.1.0 Release: 1%{?dist} License: GPLv2+ Group: Applications/System @@ -38,6 +38,10 @@ rm -rf %{buildroot} %{_libdir}/nagios/plugins/* %changelog +* Thu Aug 23 2012 Pall Sigurdsson 2.1.0-1 +- Version number bumped to 2.1.0 (palli@opensource.is) +- Added noarch buildarch (tommi@tommi.org) + * Mon Mar 12 2012 Pall Sigurdsson 0.0.3-1 - new package built with tito diff --git a/check_bl/nagios-okplugin-mailblacklist.spec b/check_bl/nagios-okplugin-mailblacklist.spec index 94715f7..fba7c95 100644 --- a/check_bl/nagios-okplugin-mailblacklist.spec +++ b/check_bl/nagios-okplugin-mailblacklist.spec @@ -2,7 +2,7 @@ Summary: A Nagios plugin to check SMTP blacklists Name: nagios-okplugin-mailblacklist -Version: 0.0.2 +Version: 1.0 Release: 1%{?dist} License: GPLv2+ Group: Applications/System @@ -38,6 +38,9 @@ rm -rf %{buildroot} %{_libdir}/nagios/plugins/* %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.0-1 +- Updated buildarch to noarch (tommi@tommi.org) + * Mon Mar 12 2012 Pall Sigurdsson 0.0.2-1 - new package built with tito diff --git a/check_cifs/check_cifs b/check_cifs/check_cifs index 61ae2c1..044990f 100644 --- a/check_cifs/check_cifs +++ b/check_cifs/check_cifs @@ -23,7 +23,7 @@ use Nagios::Plugin; # Create the Nagios plugin object my $np = Nagios::Plugin->new( usage => "Usage: %s -H -u -p -s ", - version => "0.01", + version => "1.0", ); # Add valid arguments diff --git a/check_cifs/nagios-okplugin-cifs.spec b/check_cifs/nagios-okplugin-cifs.spec index da5c0c9..e8fc1f5 100644 --- a/check_cifs/nagios-okplugin-cifs.spec +++ b/check_cifs/nagios-okplugin-cifs.spec @@ -2,7 +2,7 @@ Summary: A Nagios plugin to check CIFS shares Name: nagios-okplugin-cifs -Version: 0.0.4 +Version: 1.0 Release: 1%{?dist} License: GPLv2+ Group: Applications/System @@ -39,6 +39,10 @@ rm -rf %{buildroot} %{_libdir}/nagios/plugins/* %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.0-1 +- version number of scripts bumped (palli@opensource.is) +- Updates buildarch to noarch (tommi@tommi.org) + * Mon Mar 12 2012 Pall Sigurdsson 0.0.4-1 - new package built with tito diff --git a/check_cpu.sh/nagios-plugins-check_cpu.spec b/check_cpu.sh/nagios-plugins-check_cpu.spec index bba18d8..310f92b 100644 --- a/check_cpu.sh/nagios-plugins-check_cpu.spec +++ b/check_cpu.sh/nagios-plugins-check_cpu.spec @@ -2,7 +2,7 @@ Summary: A Nagios plugin to check CPU on Linux servers Name: nagios-plugins-check_cpu -Version: 0.3 +Version: 1.0 Release: 1%{?dist} License: GPLv2+ Group: Applications/System @@ -42,6 +42,10 @@ rm -rf %{buildroot} %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.0-1 +- Version number bumped +- Updates buildarch to noarch (tommi@tommi.org) + * Mon Mar 12 2012 Pall Sigurdsson 0.3-1 - new package built with tito diff --git a/check_eva/nagios-okplugin-check_eva.spec b/check_eva/nagios-okplugin-check_eva.spec index f3f8d03..20f0862 100644 --- a/check_eva/nagios-okplugin-check_eva.spec +++ b/check_eva/nagios-okplugin-check_eva.spec @@ -2,7 +2,7 @@ Summary: A Nagios plugin to check HP EVA Disk Systems Name: nagios-okplugin-check_eva -Version: 1.0.1 +Version: 1.0.2 Release: 1%{?dist} License: GPLv2+ Group: Applications/System @@ -40,6 +40,10 @@ rm -rf %{buildroot} /etc/nrpe.d/check_eva.cfg %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.0.2-1 +- changed sssu subcommands from being singlequoted to doublequoted for windows + compatibility (palli@opensource.is) + * Mon Mar 12 2012 Pall Sigurdsson 1.0.1-1 - new package built with tito diff --git a/check_hpacucli/check_hpacucli.py b/check_hpacucli/check_hpacucli.py index 04d3257..2b5e3c4 100644 --- a/check_hpacucli/check_hpacucli.py +++ b/check_hpacucli/check_hpacucli.py @@ -26,7 +26,7 @@ debugging = False # No real need to change anything below here -version="1.0" +version="1.1" ok=0 warning=1 critical=2 diff --git a/check_hpacucli/nagios-okplugin-check_hpacucli.spec b/check_hpacucli/nagios-okplugin-check_hpacucli.spec index 2b56824..ee775d0 100644 --- a/check_hpacucli/nagios-okplugin-check_hpacucli.spec +++ b/check_hpacucli/nagios-okplugin-check_hpacucli.spec @@ -2,8 +2,8 @@ Summary: A Nagios plugin to check HP Array with hpacucli Name: nagios-okplugin-check_hpacucli -Version: 0.0.3 -Release: 1%{?dist} +Version: 1.2 +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: http://opensource.is/trac/wiki/check_hpacucli @@ -38,6 +38,12 @@ rm -rf %{buildroot} /etc/nrpe.d/check_hpacucli.cfg %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.2-2 +- version number of scripts bumped (palli@opensource.is) + +* Thu Aug 23 2012 Pall Sigurdsson 1.2-1 +- check_command is now sudo'ed (palli@opensource.is) + * Mon Mar 12 2012 Pall Sigurdsson 0.0.3-1 - new package built with tito diff --git a/check_ibm_bladecenter/check_ibm_bladecenter.py b/check_ibm_bladecenter/check_ibm_bladecenter.py index a6c2284..b1559a5 100644 --- a/check_ibm_bladecenter/check_ibm_bladecenter.py +++ b/check_ibm_bladecenter/check_ibm_bladecenter.py @@ -22,7 +22,7 @@ # No real need to change anything below here -version="1.1.0" +version="1.1.2" ok=0 warning=1 critical=2 diff --git a/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec b/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec index 1b9826d..c68b790 100644 --- a/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec +++ b/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec @@ -3,7 +3,7 @@ Summary: A Nagios plugin to check IBM Bladecenters Name: nagios-okplugin-check_ibm_bladecenter Version: 1.1.2 -Release: 1%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: Applications/System URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-check_ibm_bladecenter @@ -40,6 +40,12 @@ rm -rf %{buildroot} #%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.1.2-3 +- version number of scripts bumped (palli@opensource.is) + +* Thu Aug 23 2012 Pall Sigurdsson 1.1.2-2 +- rpm spec file added. version number bumped (palli@opensource.is) + * Tue Jul 17 2012 Pall Sigurdsson 1.0.0-1 - Initial packaging diff --git a/check_nagios/nagios-okplugin-check_nagios.spec b/check_nagios/nagios-okplugin-check_nagios.spec index 52fb999..1472db7 100644 --- a/check_nagios/nagios-okplugin-check_nagios.spec +++ b/check_nagios/nagios-okplugin-check_nagios.spec @@ -2,7 +2,7 @@ Summary: A set of Nagios plugins to check the health of a nagios host Name: nagios-okplugin-check_nagios -Version: 0.0.8 +Version: 1.1 Release: 1%{?dist} License: GPLv2+ Group: Applications/System @@ -40,6 +40,12 @@ rm -rf %{buildroot} /etc/nrpe.d/check_nagios.cfg %changelog +* Thu Aug 23 2012 Pall Sigurdsson 1.1-1 +- Version number bumped +- bugfix, check_nagios_needs_reload check for reload instead of reparse + (palli@opensource.is) +- fixed missing tempfile cleanup (root@manage.tr.is) + * Mon Mar 12 2012 Pall Sigurdsson 0.0.8-1 - LICENSE file added (palli@opensource.is) diff --git a/check_rhcs/check_rhcs b/check_rhcs/check_rhcs index 4ca9d49..4aeb022 100644 --- a/check_rhcs/check_rhcs +++ b/check_rhcs/check_rhcs @@ -40,6 +40,8 @@ Usage: """ + sys.argv[0] + """ ([-s serviceName] | [-c]) Gathers the overall cluster status for the local node -s, --service Gets the stats of the named service +-Z, --suspended + Checks whether there are any suspended services -h, --help Display this """ @@ -99,23 +101,27 @@ def getServiceState(dom, service): if group.attributes['name'].value in (service,"service:"+service,"vm:"+service): serviceState['owner'] = group.attributes['owner'].value serviceState['state'] = group.attributes['state_str'].value + serviceState['flags'] = group.attributes['flags_str'].value return serviceState def main(): try: - opts, args = getopt.getopt(sys.argv[1:], 's:ch', ['service=', 'cluster', 'help']) + opts, args = getopt.getopt(sys.argv[1:], 's:cZh', ['service=', 'cluster', 'supsended', 'help']) except getopt.GetoptError: usage() sys.exit(2) + check_suspend = False for o, a in opts: if o in ('-c', '--cluster'): typeCheck = 'cluster' if o in ('-s', '--service'): typeCheck = 'service' serviceName = a + if o in ('-Z', '--suspended'): + check_suspend = True if o in ('-h', '--help'): usage() sys.exit() @@ -124,8 +130,8 @@ def main(): clustatOutput = os.popen('/usr/sbin/clustat -fx') dom = xml.dom.minidom.parse(clustatOutput) except Exception, e: - print "Error: could not parse output of : '/usr/sbin/clustat -fx': ", e - sys.exit(3) + print "Error: could not parse output of : '/usr/sbin/clustat -fx': ", e + sys.exit(3) if typeCheck == 'cluster': # First we query for the state of the cluster itself. @@ -156,6 +162,9 @@ def main(): if serviceState['state'] != 'started': print "CRITICAL: Service " + serviceName + " on " + serviceState['owner'] + " is in " + serviceState['state'] + " state" sys.exit(2) + elif check_suspend is True and serviceState['flags'] == 'frozen': + print "WARNING: Service " + serviceName + " on " + serviceState['owner'] + " is in " + serviceState['flags'] + " state" + sys.exit(1) else: print "OK: Service " + serviceName + " on " + serviceState['owner'] + " is in " + serviceState['state'] + " state" sys.exit(0) diff --git a/check_rhcs/nrpe.d/check_rhcs.cfg b/check_rhcs/nrpe.d/check_rhcs.cfg index ef714d9..70ad24b 100644 --- a/check_rhcs/nrpe.d/check_rhcs.cfg +++ b/check_rhcs/nrpe.d/check_rhcs.cfg @@ -1,5 +1,6 @@ command[check_rhcs]=sudo /usr/lib64/nagios/plugins/check_rhcs -c command[check_rhcs_service]=sudo /usr/lib64/nagios/plugins/check_rhcs -s '$ARG1$' +command[check_rhcs_service_frozen]=sudo /usr/lib64/nagios/plugins/check_rhcs -s '$ARG1$' -Z command[get_rhcs_fencing]=test ! -p /tmp/fence_manual.fifo command[check_rhcs_fencing]=/usr/lib64/nagios/plugins/check_rhcs_manualfencing.sh diff --git a/check_yum/nagios-okplugin-check_yum.spec b/check_yum/nagios-okplugin-check_yum.spec deleted file mode 100644 index 1f6bce6..0000000 --- a/check_yum/nagios-okplugin-check_yum.spec +++ /dev/null @@ -1,49 +0,0 @@ -%define debug_package %{nil} - -Summary: Nagios plugin to test for Yum updates on RedHat/CentOS Linux. -Name: nagios-okplugin-check_yum -Version: 0.8.0 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/System -URL: http://opensource.is/trac/wiki/check_yum -Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_yum/releases/nagios-okplugin-check_yum-%{version}.tar.gz -Requires: yum-security -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Packager: Pall Sigurdsson -BuildArch: noarch - - -%description -Nagios plugin to test for Yum updates on RedHat/CentOS Linux. - -%prep -%setup -q -perl -pi -e "s|/usr/lib/|%{_libdir}/|g" nrpe.d/check_yum.cfg -perl -pi -e "s|/usr/lib64/|%{_libdir}/|g" nrpe.d/check_yum.cfg - -%build - - -%install -rm -rf %{buildroot} -install -D -p -m 0755 check_yum %{buildroot}%{_libdir}/nagios/plugins/check_yum -install -D -p -m 0755 nrpe.d/check_yum.cfg %{buildroot}/etc/nrpe.d/check_yum.cfg - -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root,-) -%{_libdir}/nagios/plugins/* -/etc/nrpe.d/check_yum.cfg - -%changelog -* Thu Dec 13 2012 Tomas Edwardsson 0.8.0-1 -- New upstream release - -* Mon Mar 12 2012 Pall Sigurdsson 0.7.3-1 -- new package built with tito - -* Mon Sep 14 2010 Pall Sigurdsson 0.1-1 -- Initial packaging