mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
36 Commits
nagios-okp
...
nagios-okp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c126130cc | ||
|
|
f0968997e4 | ||
|
|
95693e3c73 | ||
|
|
55daf8f4c9 | ||
|
|
d11d29185a | ||
|
|
06194c84cc | ||
|
|
184d7d3b4a | ||
|
|
1574cd13d3 | ||
|
|
b0b55dcd3e | ||
|
|
b96e973e60 | ||
|
|
51b75943cf | ||
|
|
8ff1cf84d0 | ||
|
|
5cb19c072e | ||
|
|
6db73d28d6 | ||
|
|
5ba61f91b2 | ||
|
|
8f6faa8b59 | ||
|
|
574538883c | ||
|
|
245ad9ba21 | ||
|
|
854b08c601 | ||
|
|
55ea04bd73 | ||
|
|
09dcc39f94 | ||
|
|
48d0a92707 | ||
|
|
e9222eb215 | ||
|
|
e64d51ebc3 | ||
|
|
5d94c9d3a2 | ||
|
|
22e4293db7 | ||
|
|
9b89a3d998 | ||
|
|
553a182dd1 | ||
|
|
9501bef37b | ||
|
|
b672f6f508 | ||
|
|
04d25281e3 | ||
|
|
9b2474fb49 | ||
|
|
156459046c | ||
|
|
a93d887721 | ||
|
|
2dbec06282 | ||
|
|
734e7d5596 |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check APC devices
|
Summary: A Nagios plugin to check APC devices
|
||||||
Name: nagios-okplugin-apc
|
Name: nagios-okplugin-apc
|
||||||
Version: 2.1.0
|
Version: 2.1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -38,6 +38,12 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/nagios/plugins/*
|
%{_libdir}/nagios/plugins/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 20 2014 Tomas Edwardsson <tommi@tommi.org> 2.1.1-1
|
||||||
|
- Merge github.com:opinkerfi/misc (palli@opensource.is)
|
||||||
|
- Use the right value for the job nbmstemp (tommi@tommi.org)
|
||||||
|
- Fixed metric conversion for all mibs (tommi@opensource.is)
|
||||||
|
- Added fahrenheit to celsius conversion (tommi@tommi.org)
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 2.1.0-1
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 2.1.0-1
|
||||||
- Version number bumped to 2.1.0 (palli@opensource.is)
|
- Version number bumped to 2.1.0 (palli@opensource.is)
|
||||||
- Added noarch buildarch (tommi@tommi.org)
|
- Added noarch buildarch (tommi@tommi.org)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check SMTP blacklists
|
Summary: A Nagios plugin to check SMTP blacklists
|
||||||
Name: nagios-okplugin-mailblacklist
|
Name: nagios-okplugin-mailblacklist
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -38,6 +38,9 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/nagios/plugins/*
|
%{_libdir}/nagios/plugins/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 1.1-1
|
||||||
|
-
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
||||||
- Updated buildarch to noarch (tommi@tommi.org)
|
- Updated buildarch to noarch (tommi@tommi.org)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check network bond devices
|
Summary: A Nagios plugin to check network bond devices
|
||||||
Name: nagios-okplugin-bond
|
Name: nagios-okplugin-bond
|
||||||
Version: 0.0.3
|
Version: 0.0.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -40,6 +40,10 @@ rm -rf %{buildroot}
|
|||||||
%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg
|
%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 0.0.4-1
|
||||||
|
- Merge pull request #5 from pallvalmundsson/check_yum_security_patch (palli-
|
||||||
|
github@minor.is)
|
||||||
|
|
||||||
* Wed Mar 13 2013 Pall Sigurdsson <palli@opensource.is> 0.0.3-1
|
* Wed Mar 13 2013 Pall Sigurdsson <palli@opensource.is> 0.0.3-1
|
||||||
-
|
-
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check Brocade devices
|
Summary: A Nagios plugin to check Brocade devices
|
||||||
Name: nagios-okplugin-brocade
|
Name: nagios-okplugin-brocade
|
||||||
Version: 0.0.4
|
Version: 0.0.5
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -36,6 +36,9 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/nagios/plugins/*
|
%{_libdir}/nagios/plugins/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 0.0.5-1
|
||||||
|
-
|
||||||
|
|
||||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.4-1
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.4-1
|
||||||
- new package built with tito
|
- new package built with tito
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check CIFS shares
|
Summary: A Nagios plugin to check CIFS shares
|
||||||
Name: nagios-okplugin-cifs
|
Name: nagios-okplugin-cifs
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -39,6 +39,9 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/nagios/plugins/*
|
%{_libdir}/nagios/plugins/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 1.1-1
|
||||||
|
- Merge github.com:opinkerfi/misc (palli@opensource.is)
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
||||||
- version number of scripts bumped (palli@opensource.is)
|
- version number of scripts bumped (palli@opensource.is)
|
||||||
- Updates buildarch to noarch (tommi@tommi.org)
|
- Updates buildarch to noarch (tommi@tommi.org)
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ def remove_stale_state():
|
|||||||
state_mtime = os.stat("/var/lib/nagios-okplugin/check_cpu").st_mtime
|
state_mtime = os.stat("/var/lib/nagios-okplugin/check_cpu").st_mtime
|
||||||
boot_time = os.stat("/proc/1").st_mtime
|
boot_time = os.stat("/proc/1").st_mtime
|
||||||
if state_mtime < boot_time:
|
if state_mtime < boot_time:
|
||||||
print "unlinking"
|
|
||||||
os.unlink("/var/lib/nagios-okplugin/check_cpu")
|
os.unlink("/var/lib/nagios-okplugin/check_cpu")
|
||||||
except OSError:
|
except OSError:
|
||||||
return None
|
return None
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check CPU on Linux servers
|
Summary: A Nagios plugin to check CPU on Linux servers
|
||||||
Name: nagios-plugins-check_cpu
|
Name: nagios-plugins-check_cpu
|
||||||
Version: 1.0
|
Version: 2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -45,6 +45,11 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- Added nrpe reload to post section (tommi@tommi.org)
|
||||||
|
- Merge github.com:opinkerfi/misc (palli@opensource.is)
|
||||||
|
- Added dependency on bc (palli@opensource.is)
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
||||||
- Version number bumped
|
- Version number bumped
|
||||||
- Updates buildarch to noarch (tommi@tommi.org)
|
- Updates buildarch to noarch (tommi@tommi.org)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: Nagios Plugins to monitor HP Dataprotector
|
Summary: Nagios Plugins to monitor HP Dataprotector
|
||||||
Name: nagios-okplugin-check_dataprotector
|
Name: nagios-okplugin-check_dataprotector
|
||||||
Version: 1.0.1
|
Version: 2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -45,6 +45,10 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/check_dataprotector.cfg
|
/etc/nrpe.d/check_dataprotector.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- removed warning threshold of 60 (palli@opensource.is)
|
||||||
|
- contrib removed from plugin path (palli@opensource.is)
|
||||||
|
|
||||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
||||||
- new package built with tito
|
- new package built with tito
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check disks via NRPE
|
Summary: A Nagios plugin to check disks via NRPE
|
||||||
Name: nagios-okplugin-check_disks
|
Name: nagios-okplugin-check_disks
|
||||||
Version: 1.0.4
|
Version: 1.0.5
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -40,6 +40,9 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/nagios/plugins/check_disks.pl
|
%{_libdir}/nagios/plugins/check_disks.pl
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 25 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.5-1
|
||||||
|
- Added support for inodes (tryggvi@linux.is)
|
||||||
|
|
||||||
* Sat Mar 02 2013 Tryggvi Farestveit <tryggvi@linux.is> 1.0.4-1
|
* Sat Mar 02 2013 Tryggvi Farestveit <tryggvi@linux.is> 1.0.4-1
|
||||||
- Added support for inodes
|
- Added support for inodes
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ timeout = 0 # 0 means no timeout
|
|||||||
server_side_troubleshooting = False
|
server_side_troubleshooting = False
|
||||||
|
|
||||||
# No real need to change anything below here
|
# No real need to change anything below here
|
||||||
version = "1.0"
|
version = "1.0.1"
|
||||||
ok = 0
|
ok = 0
|
||||||
warning = 1
|
warning = 1
|
||||||
critical = 2
|
critical = 2
|
||||||
@@ -239,15 +239,15 @@ def run_sssu(system=None, command="ls system full"):
|
|||||||
if output.pop(0).strip() != '':
|
if output.pop(0).strip() != '':
|
||||||
error = 1
|
error = 1
|
||||||
if output.pop(0).strip() != '':
|
if output.pop(0).strip() != '':
|
||||||
error = 1
|
error = 2
|
||||||
if output.pop(0).strip() != 'SSSU for HP StorageWorks Command View EVA':
|
if output.pop(0).strip().find('SSSU for HP') != 0:
|
||||||
error = 1
|
error = 3
|
||||||
if output.pop(0).strip().find('Version:') != 0:
|
if output.pop(0).strip().find('Version:') != 0:
|
||||||
error = 1
|
error = 4
|
||||||
if output.pop(0).strip().find('Build:') != 0:
|
if output.pop(0).strip().find('Build:') != 0:
|
||||||
error = 1
|
error = 5
|
||||||
if output.pop(0).strip().find('NoSystemSelected> ') != 0:
|
if output.pop(0).strip().find('NoSystemSelected> ') != 0:
|
||||||
error = 1
|
error = 6
|
||||||
#if output.pop(0).strip() != '': error = 1
|
#if output.pop(0).strip() != '': error = 1
|
||||||
#if output.pop(0).strip().find('NoSystemSelected> ') != 0: error=1
|
#if output.pop(0).strip().find('NoSystemSelected> ') != 0: error=1
|
||||||
#if output.pop(0).strip() != '': error = 1
|
#if output.pop(0).strip() != '': error = 1
|
||||||
@@ -260,7 +260,7 @@ def run_sssu(system=None, command="ls system full"):
|
|||||||
if i.find('information:') > 0:
|
if i.find('information:') > 0:
|
||||||
break
|
break
|
||||||
if error > 0:
|
if error > 0:
|
||||||
print "Error running the sssu command"
|
print "Error running the sssu command: " + str(error)
|
||||||
print commandstring
|
print commandstring
|
||||||
print str_buffer
|
print str_buffer
|
||||||
exit(unknown)
|
exit(unknown)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check HP EVA Disk Systems
|
Summary: A Nagios plugin to check HP EVA Disk Systems
|
||||||
Name: nagios-okplugin-check_eva
|
Name: nagios-okplugin-check_eva
|
||||||
Version: 1.0.2
|
Version: 2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -40,6 +40,22 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/check_eva.cfg
|
/etc/nrpe.d/check_eva.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- Merge pull request #10 from gitmopp/patch-2 (palli-github@minor.is)
|
||||||
|
- bug in for loop. Looped only once (mopp@gmx.net)
|
||||||
|
- Fixed output to be more compatible (mopp@gmx.net)
|
||||||
|
- check_eva new Make sure --timeout is an integer (palli@opensource.is)
|
||||||
|
- check_eva new command line option --timeout (palli@opensource.is)
|
||||||
|
- check_eva Fix undefined fix typos (palli@opensource.is)
|
||||||
|
- PEP8 cleanup (palli@opensource.is)
|
||||||
|
- merged (palli@opensource.is)
|
||||||
|
- check_eva - minor bugfixes (palli@opensource.is)
|
||||||
|
- check_eva.py more code cleanup with pycharm inspections (palli@opensource.is)
|
||||||
|
- check_eva.py - Make code more readable (palli@opensource.is)
|
||||||
|
- convert from tabs to spaces (palli@opensource.is)
|
||||||
|
- check_eva - fix mixed tab/spaces (palli@opensource.is)
|
||||||
|
- Update check_eva.py (sander.grendelman@gmail.com)
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0.2-1
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0.2-1
|
||||||
- changed sssu subcommands from being singlequoted to doublequoted for windows
|
- changed sssu subcommands from being singlequoted to doublequoted for windows
|
||||||
compatibility (palli@opensource.is)
|
compatibility (palli@opensource.is)
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check HP Array with hpacucli
|
Summary: A Nagios plugin to check HP Array with hpacucli
|
||||||
Name: nagios-okplugin-check_hpacucli
|
Name: nagios-okplugin-check_hpacucli
|
||||||
Version: 1.2
|
Version: 2
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://opensource.is/trac/wiki/check_hpacucli
|
URL: http://opensource.is/trac/wiki/check_hpacucli
|
||||||
@@ -41,6 +41,17 @@ rm -rf %{buildroot}
|
|||||||
/etc/sudoers.d/check_hpacucli
|
/etc/sudoers.d/check_hpacucli
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- check_hpacucli.py - fix typo in hpacucli command (palli@opensource.is)
|
||||||
|
- check_hpacucli.py: pep8 cleanup (palli@opensource.is)
|
||||||
|
- check_hpacucli - fix tab indentation (palli@opensource.is)
|
||||||
|
- check_hpacucli: ignore hpacucli output that starts with "Note:"
|
||||||
|
(palli@opensource.is)
|
||||||
|
- sudoers.d added to install (you@example.com)
|
||||||
|
- dummy commit (you@example.com)
|
||||||
|
- dummy commit (you@example.com)
|
||||||
|
- Add sudoers support to check_hpacucli (palli@opensource.is)
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.2-2
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.2-2
|
||||||
- version number of scripts bumped (palli@opensource.is)
|
- version number of scripts bumped (palli@opensource.is)
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
# This script will check the status of a remote IBM Bladecenter via SNMP.
|
# This script will check the status of a remote IBM Bladecenter via SNMP.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# No real need to change anything below here
|
# No real need to change anything below here
|
||||||
version = "1.1.2"
|
version = "1.1.2"
|
||||||
ok = 0
|
ok = 0
|
||||||
@@ -31,7 +30,6 @@ not_present = -1
|
|||||||
exit_status = -1
|
exit_status = -1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
state = {}
|
state = {}
|
||||||
state[not_present] = "Not Present"
|
state[not_present] = "Not Present"
|
||||||
state[ok] = "OK"
|
state[ok] = "OK"
|
||||||
@@ -52,10 +50,6 @@ from os import getenv,putenv,environ
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Parse some Arguments
|
# Parse some Arguments
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
@@ -87,12 +81,14 @@ parser.add_option("-d","--debug", dest="debug",
|
|||||||
(opts, args) = parser.parse_args()
|
(opts, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
if opts.host == None:
|
if opts.host is None:
|
||||||
parser.error("Hostname (-H) is required.")
|
parser.error("Hostname (-H) is required.")
|
||||||
if opts.mode == None:
|
if opts.mode is None:
|
||||||
parser.error("Mode (--mode) is required.")
|
parser.error("Mode (--mode) is required.")
|
||||||
|
|
||||||
snmp_options = ""
|
snmp_options = ""
|
||||||
|
|
||||||
|
|
||||||
def set_snmp_options():
|
def set_snmp_options():
|
||||||
global snmp_options
|
global snmp_options
|
||||||
if opts.snmp_version is not None:
|
if opts.snmp_version is not None:
|
||||||
@@ -101,33 +97,41 @@ def set_snmp_options():
|
|||||||
if opts.snmp_username is None:
|
if opts.snmp_username is None:
|
||||||
parser.error("--snmp_username required with --snmp_version=3")
|
parser.error("--snmp_username required with --snmp_version=3")
|
||||||
if opts.snmp_seclevel is None:
|
if opts.snmp_seclevel is None:
|
||||||
parser.error("--snmp_security_level required with --snmp_version=3")
|
parser.error(
|
||||||
|
"--snmp_security_level required with --snmp_version=3")
|
||||||
if opts.snmp_password is None:
|
if opts.snmp_password is None:
|
||||||
parser.error("--snmp_password required with --snmp_version=3")
|
parser.error("--snmp_password required with --snmp_version=3")
|
||||||
snmp_options = snmp_options + " -u %s -l %s -A %s " % (opts.snmp_username, opts.snmp_seclevel,opts.snmp_password)
|
snmp_options = snmp_options + " -u %s -l %s -A %s " % (
|
||||||
|
opts.snmp_username, opts.snmp_seclevel, opts.snmp_password)
|
||||||
else:
|
else:
|
||||||
if opts.snmp_community is None:
|
if opts.snmp_community is None:
|
||||||
parser.error("--snmp_community is required with --snmp_version=1|2c")
|
parser.error(
|
||||||
|
"--snmp_community is required with --snmp_version=1|2c")
|
||||||
snmp_options = snmp_options + " -c %s " % opts.snmp_community
|
snmp_options = snmp_options + " -c %s " % opts.snmp_community
|
||||||
snmp_options += " -t %s " % (opts.snmp_timeout)
|
snmp_options += " -t %s " % (opts.snmp_timeout)
|
||||||
|
|
||||||
|
|
||||||
def error(errortext):
|
def error(errortext):
|
||||||
print "* Error: %s" % errortext
|
print "* Error: %s" % errortext
|
||||||
exit(unknown)
|
exit(unknown)
|
||||||
|
|
||||||
|
|
||||||
def debug(debugtext):
|
def debug(debugtext):
|
||||||
if opts.debug:
|
if opts.debug:
|
||||||
print debugtext
|
print debugtext
|
||||||
|
|
||||||
|
|
||||||
def nagios_status(newStatus):
|
def nagios_status(newStatus):
|
||||||
global exit_status
|
global exit_status
|
||||||
exit_status = max(exit_status, newStatus)
|
exit_status = max(exit_status, newStatus)
|
||||||
return exit_status
|
return exit_status
|
||||||
|
|
||||||
'''runCommand: Runs command from the shell prompt. Exit Nagios style if unsuccessful'''
|
|
||||||
def runCommand(command):
|
def runCommand(command):
|
||||||
|
'''runCommand: Runs command from the shell prompt. Exit Nagios style if unsuccessful'''
|
||||||
debug("Executing: %s" % command)
|
debug("Executing: %s" % command)
|
||||||
proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE,)
|
proc = subprocess.Popen(
|
||||||
|
command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,)
|
||||||
stdout, stderr = proc.communicate('through stdin to stdout')
|
stdout, stderr = proc.communicate('through stdin to stdout')
|
||||||
if proc.returncode > 0:
|
if proc.returncode > 0:
|
||||||
print "Error %s: %s\n command was: '%s'" % (proc.returncode, stderr.strip(), command)
|
print "Error %s: %s\n command was: '%s'" % (proc.returncode, stderr.strip(), command)
|
||||||
@@ -143,6 +147,7 @@ def runCommand(command):
|
|||||||
else:
|
else:
|
||||||
return stdout
|
return stdout
|
||||||
|
|
||||||
|
|
||||||
def end():
|
def end():
|
||||||
global summary
|
global summary
|
||||||
global longserviceoutput
|
global longserviceoutput
|
||||||
@@ -150,36 +155,43 @@ def end():
|
|||||||
global exit_status
|
global exit_status
|
||||||
print "%s - %s | %s" % (state[exit_status], summary, perfdata)
|
print "%s - %s | %s" % (state[exit_status], summary, perfdata)
|
||||||
print longserviceoutput
|
print longserviceoutput
|
||||||
if exit_status < 0: exit_status = unknown
|
if exit_status < 0:
|
||||||
|
exit_status = unknown
|
||||||
exit(exit_status)
|
exit(exit_status)
|
||||||
|
|
||||||
|
|
||||||
def add_perfdata(text):
|
def add_perfdata(text):
|
||||||
global perfdata
|
global perfdata
|
||||||
text = text.strip()
|
text = text.strip()
|
||||||
perfdata = perfdata + " %s " % (text)
|
perfdata = perfdata + " %s " % (text)
|
||||||
|
|
||||||
|
|
||||||
def add_long(text):
|
def add_long(text):
|
||||||
global longserviceoutput
|
global longserviceoutput
|
||||||
longserviceoutput = longserviceoutput + text + '\n'
|
longserviceoutput = longserviceoutput + text + '\n'
|
||||||
|
|
||||||
|
|
||||||
def add_summary(text):
|
def add_summary(text):
|
||||||
global summary
|
global summary
|
||||||
summary = summary + text
|
summary = summary + text
|
||||||
|
|
||||||
|
|
||||||
def set_path(path):
|
def set_path(path):
|
||||||
current_path = getenv('PATH')
|
current_path = getenv('PATH')
|
||||||
if current_path.find('C:\\') > -1: # We are on this platform
|
if current_path.find('C:\\') > -1: # We are on this platform
|
||||||
if path == '':
|
if path == '':
|
||||||
pass
|
pass
|
||||||
else: path = ';' + path
|
else:
|
||||||
|
path = ';' + path
|
||||||
else: # Unix/Linux, etc
|
else: # Unix/Linux, etc
|
||||||
if path == '': path = ":/usr/sbin"
|
if path == '':
|
||||||
else: path = ':' + path
|
path = ":/usr/sbin"
|
||||||
|
else:
|
||||||
|
path = ':' + path
|
||||||
current_path = "%s%s" % (current_path, path)
|
current_path = "%s%s" % (current_path, path)
|
||||||
environ['PATH'] = current_path
|
environ['PATH'] = current_path
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def snmpget(oid):
|
def snmpget(oid):
|
||||||
snmpgetcommand = "snmpget %s %s %s" % (snmp_options, opts.host, oid)
|
snmpgetcommand = "snmpget %s %s %s" % (snmp_options, opts.host, oid)
|
||||||
output = runCommand(snmpgetcommand)
|
output = runCommand(snmpgetcommand)
|
||||||
@@ -189,12 +201,16 @@ def snmpget(oid):
|
|||||||
resultValue = resultValue[1:-1]
|
resultValue = resultValue[1:-1]
|
||||||
return resultValue
|
return resultValue
|
||||||
|
|
||||||
# snmpwalk -v3 -u v3get mgmt-rek-proxy-p02 -A proxy2011 -l authNoPriv 1.3.6.1.4.1.15497
|
# snmpwalk -v3 -u v3get mgmt-rek-proxy-p02 -A proxy2011 -l authNoPriv
|
||||||
|
# 1.3.6.1.4.1.15497
|
||||||
|
|
||||||
|
|
||||||
def snmpwalk(base_oid):
|
def snmpwalk(base_oid):
|
||||||
snmpwalkcommand = "snmpwalk %s %s %s" % (snmp_options, opts.host, base_oid)
|
snmpwalkcommand = "snmpwalk %s %s %s" % (snmp_options, opts.host, base_oid)
|
||||||
output = runCommand(snmpwalkcommand + " " + base_oid)
|
output = runCommand(snmpwalkcommand + " " + base_oid)
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
||||||
def getTable(base_oid):
|
def getTable(base_oid):
|
||||||
myTable = {}
|
myTable = {}
|
||||||
output = snmpwalk(base_oid)
|
output = snmpwalk(base_oid)
|
||||||
@@ -215,10 +231,12 @@ def getTable(base_oid):
|
|||||||
index = oid.strip().split('.')
|
index = oid.strip().split('.')
|
||||||
column = int(index.pop())
|
column = int(index.pop())
|
||||||
row = int(index.pop())
|
row = int(index.pop())
|
||||||
if not myTable.has_key(column): myTable[column] = {}
|
if not myTable.has_key(column):
|
||||||
|
myTable[column] = {}
|
||||||
myTable[column][row] = resultValue
|
myTable[column][row] = resultValue
|
||||||
return myTable
|
return myTable
|
||||||
|
|
||||||
|
|
||||||
def check_powermodules():
|
def check_powermodules():
|
||||||
powermodules = getTable('1.3.6.1.4.1.2.3.51.2.2.4')
|
powermodules = getTable('1.3.6.1.4.1.2.3.51.2.2.4')
|
||||||
index = 1
|
index = 1
|
||||||
@@ -232,22 +250,27 @@ def check_powermodules():
|
|||||||
myStatus = i[status]
|
myStatus = i[status]
|
||||||
myDetails = i[details]
|
myDetails = i[details]
|
||||||
myExists = i[exists]
|
myExists = i[exists]
|
||||||
if myIndex == opts.exclude: continue
|
if myIndex == opts.exclude:
|
||||||
|
continue
|
||||||
if myExists == "0":
|
if myExists == "0":
|
||||||
num_no = num_no + 1
|
num_no = num_no + 1
|
||||||
else:
|
else:
|
||||||
if myStatus != "1":
|
if myStatus != "1":
|
||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
add_summary( 'Powermodule "%s" status "%s". %s. ' % (myIndex,myStatus,myDetails) )
|
add_summary('Powermodule "%s" status "%s". %s. ' %
|
||||||
|
(myIndex, myStatus, myDetails))
|
||||||
else:
|
else:
|
||||||
num_ok = num_ok + 1
|
num_ok = num_ok + 1
|
||||||
add_long('Powersupply "%s" status "%s". %s. ' % (myIndex,myStatus,myDetails) )
|
add_long('Powersupply "%s" status "%s". %s. ' %
|
||||||
add_summary( "%s out of %s powermodules are healthy" % (num_ok, len(powermodules) ) )
|
(myIndex, myStatus, myDetails))
|
||||||
add_perfdata( "'Number of powermodules'=%s" % (len(powermodules) - num_no ) )
|
add_summary("%s out of %s powermodules are healthy" %
|
||||||
|
(num_ok, len(powermodules)))
|
||||||
|
add_perfdata("'Number of powermodules'=%s" %
|
||||||
|
(len(powermodules) - num_no))
|
||||||
|
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
|
|
||||||
|
|
||||||
def check_switchmodules():
|
def check_switchmodules():
|
||||||
switchmodules = getTable("1.3.6.1.4.1.2.3.51.2.22.3.1.1")
|
switchmodules = getTable("1.3.6.1.4.1.2.3.51.2.22.3.1.1")
|
||||||
# The following oid is undocumented, but contains some useful extra info
|
# The following oid is undocumented, but contains some useful extra info
|
||||||
@@ -265,10 +288,12 @@ def check_switchmodules():
|
|||||||
'this module is installed'
|
'this module is installed'
|
||||||
if healthstate == "1":
|
if healthstate == "1":
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
add_long("Module%s health good.\n post=%s" % (myIndex,resultvalue))
|
add_long("Module%s health good.\n post=%s" %
|
||||||
|
(myIndex, resultvalue))
|
||||||
else:
|
else:
|
||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
add_long("Module%s health bad(%s).\n post=%s" % (myIndex, healthstate,resultvalue) )
|
add_long("Module%s health bad(%s).\n post=%s" %
|
||||||
|
(myIndex, healthstate, resultvalue))
|
||||||
add_summary("Problem with Module %s. " % (myIndex))
|
add_summary("Problem with Module %s. " % (myIndex))
|
||||||
if len(extrainfo) > int(myIndex):
|
if len(extrainfo) > int(myIndex):
|
||||||
try:
|
try:
|
||||||
@@ -276,7 +301,8 @@ def check_switchmodules():
|
|||||||
module_type = myExtraInfo[22]
|
module_type = myExtraInfo[22]
|
||||||
module_ip = myExtraInfo[6]
|
module_ip = myExtraInfo[6]
|
||||||
add_long(" type=%s ip=%s" % (module_type, module_ip))
|
add_long(" type=%s ip=%s" % (module_type, module_ip))
|
||||||
except: pass
|
except:
|
||||||
|
pass
|
||||||
if exit_status == ok:
|
if exit_status == ok:
|
||||||
add_summary("All switchmodules healthy")
|
add_summary("All switchmodules healthy")
|
||||||
|
|
||||||
@@ -408,14 +434,15 @@ def check_chassis_status():
|
|||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
add_summary("Media Trays NOT OK. ")
|
add_summary("Media Trays NOT OK. ")
|
||||||
|
|
||||||
|
|
||||||
# status_oids, oids that where 0 == ok
|
# status_oids, oids that where 0 == ok
|
||||||
status_oids = ( 2,3,5,7,8,9,10,11,14,18,19,20,21,22,23,24,25,26,27,28,29,30, )
|
status_oids = (2, 3, 5, 7, 8, 9, 10, 11, 14, 18,
|
||||||
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, )
|
||||||
|
|
||||||
add_long("Other Sensors: ")
|
add_long("Other Sensors: ")
|
||||||
sensor_status = ok
|
sensor_status = ok
|
||||||
for oid in status_oids:
|
for oid in status_oids:
|
||||||
if not chassis_oid.has_key(oid): continue
|
if not chassis_oid.has_key(oid):
|
||||||
|
continue
|
||||||
oidValue = oids[oid]
|
oidValue = oids[oid]
|
||||||
oidName = chassis_oid[oid]
|
oidName = chassis_oid[oid]
|
||||||
if oidValue == "0":
|
if oidValue == "0":
|
||||||
@@ -442,10 +469,14 @@ def check_bladehealth():
|
|||||||
myBladeid = row[bladeid]
|
myBladeid = row[bladeid]
|
||||||
mySeverity = row[severity]
|
mySeverity = row[severity]
|
||||||
myDescription = row[description]
|
myDescription = row[description]
|
||||||
try: myName = bladestate[i][6]
|
try:
|
||||||
except: myName = ""
|
myName = bladestate[i][6]
|
||||||
if mySeverity == "(No severity)": continue
|
except:
|
||||||
add_long( "blade%s (%s): %s %s" % (myBladeid,myName,mySeverity, myDescription) )
|
myName = ""
|
||||||
|
if mySeverity == "(No severity)":
|
||||||
|
continue
|
||||||
|
add_long("blade%s (%s): %s %s" %
|
||||||
|
(myBladeid, myName, mySeverity, myDescription))
|
||||||
if opts.exclude:
|
if opts.exclude:
|
||||||
if myDescription.find(opts.exclude) > -1:
|
if myDescription.find(opts.exclude) > -1:
|
||||||
continue
|
continue
|
||||||
@@ -455,27 +486,33 @@ def check_bladehealth():
|
|||||||
good_blades += 1
|
good_blades += 1
|
||||||
else:
|
else:
|
||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
add_summary( "blade%s (%s): %s %s. " % (myBladeid,myName,mySeverity, myDescription) )
|
add_summary("blade%s (%s): %s %s. " %
|
||||||
|
(myBladeid, myName, mySeverity, myDescription))
|
||||||
if good_blades == total_blades:
|
if good_blades == total_blades:
|
||||||
add_summary( "%s out of %s blades in Good health. " % (good_blades, total_blades))
|
add_summary("%s out of %s blades in Good health. " %
|
||||||
|
(good_blades, total_blades))
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
else:
|
else:
|
||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
|
|
||||||
|
|
||||||
def check_systemhealth():
|
def check_systemhealth():
|
||||||
systemhealthstat = snmpget('1.3.6.1.4.1.2.3.51.2.2.7.1.0')
|
systemhealthstat = snmpget('1.3.6.1.4.1.2.3.51.2.2.7.1.0')
|
||||||
summary = getTable('1.3.6.1.4.1.2.3.51.2.2.7.2.1')
|
summary = getTable('1.3.6.1.4.1.2.3.51.2.2.7.2.1')
|
||||||
index, severity, description, date = (1, 2, 3, 4)
|
index, severity, description, date = (1, 2, 3, 4)
|
||||||
# Sometimes chassis delivers warning when absolutely nothing is going on. Lets work around that
|
# Sometimes chassis delivers warning when absolutely nothing is going on.
|
||||||
|
# Lets work around that
|
||||||
workaround = [{1: '1', 2: 'Good', 3: 'No critical or warning events', 4: 'No timestamp'}]
|
workaround = [{1: '1', 2: 'Good', 3: 'No critical or warning events', 4: 'No timestamp'}]
|
||||||
# Check overall health
|
# Check overall health
|
||||||
if systemhealthstat == '255':
|
if systemhealthstat == '255':
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
add_summary("Bladecenter health: OK. ")
|
add_summary("Bladecenter health: OK. ")
|
||||||
elif systemhealthstat == "2":
|
elif summary.values() == workaround:
|
||||||
if summary.values() == workaround:
|
add_summary("Non-Critical Error (bug in firmware): '%s' " %
|
||||||
add_summary("Non-Critical Error: %s " % workaround[0][description] )
|
workaround[0][description])
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
return
|
return
|
||||||
|
elif systemhealthstat == "2":
|
||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
add_summary("Non-Critical Error. ")
|
add_summary("Non-Critical Error. ")
|
||||||
elif systemhealthstat == "4":
|
elif systemhealthstat == "4":
|
||||||
@@ -486,7 +523,9 @@ def check_systemhealth():
|
|||||||
add_summary("Critical. ")
|
add_summary("Critical. ")
|
||||||
else:
|
else:
|
||||||
nagios_status(unknown)
|
nagios_status(unknown)
|
||||||
add_summary("Bladecenter health unkown (oid 1.3.6.1.4.1.2.3.51.2.2.7.1.0 returns %s). " % systemhealthstat)
|
add_summary(
|
||||||
|
"Bladecenter health unkown (oid 1.3.6.1.4.1.2.3.51.2.2.7.1.0 returns %s). " %
|
||||||
|
systemhealthstat)
|
||||||
for row in summary.values():
|
for row in summary.values():
|
||||||
if row[severity] == 'Good':
|
if row[severity] == 'Good':
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
@@ -499,27 +538,34 @@ def check_systemhealth():
|
|||||||
add_summary("%s. " % (row[description]))
|
add_summary("%s. " % (row[description]))
|
||||||
add_long("* %s. " % (row[description]))
|
add_long("* %s. " % (row[description]))
|
||||||
|
|
||||||
|
|
||||||
def check_temperature():
|
def check_temperature():
|
||||||
# set some sensible defaults
|
# set some sensible defaults
|
||||||
if opts.warning_threshold is None: opts.warning_threshold = 28
|
if opts.warning_threshold is None:
|
||||||
if opts.critical_threshold is None: opts.critical_threshold = 35
|
opts.warning_threshold = 28
|
||||||
|
if opts.critical_threshold is None:
|
||||||
|
opts.critical_threshold = 35
|
||||||
str_temp = snmpget('1.3.6.1.4.1.2.3.51.2.2.1.5.1.0')
|
str_temp = snmpget('1.3.6.1.4.1.2.3.51.2.2.1.5.1.0')
|
||||||
float_temp, measurement = str_temp.split(None, 1)
|
float_temp, measurement = str_temp.split(None, 1)
|
||||||
float_temp = float(float_temp)
|
float_temp = float(float_temp)
|
||||||
if opts.critical_threshold is not None and float_temp > opts.critical_threshold:
|
if opts.critical_threshold is not None and float_temp > opts.critical_threshold:
|
||||||
nagios_status(critical)
|
nagios_status(critical)
|
||||||
add_summary( "ambient temperature (%s) is over critical thresholds (%s). " % (str_temp, opts.critical_threshold) )
|
add_summary(
|
||||||
|
"ambient temperature (%s) is over critical thresholds (%s). " %
|
||||||
|
(str_temp, opts.critical_threshold))
|
||||||
elif opts.warning_threshold is not None and float_temp > opts.warning_threshold:
|
elif opts.warning_threshold is not None and float_temp > opts.warning_threshold:
|
||||||
nagios_status(warning)
|
nagios_status(warning)
|
||||||
add_summary( "ambient temperature (%s) is over warning thresholds (%s). " % (str_temp, opts.warning_threshold) )
|
add_summary(
|
||||||
|
"ambient temperature (%s) is over warning thresholds (%s). " %
|
||||||
|
(str_temp, opts.warning_threshold))
|
||||||
else:
|
else:
|
||||||
add_summary("Ambient temperature = %s. " % (str_temp))
|
add_summary("Ambient temperature = %s. " % (str_temp))
|
||||||
add_perfdata( "'ambient_temp'=%s;%s;%s " % (float_temp,opts.warning_threshold,opts.critical_threshold) )
|
add_perfdata("'ambient_temp'=%s;%s;%s " %
|
||||||
|
(float_temp, opts.warning_threshold, opts.critical_threshold))
|
||||||
#add_long( "Ambient Temperature = %s" % (str_temp) )
|
#add_long( "Ambient Temperature = %s" % (str_temp) )
|
||||||
nagios_status(ok)
|
nagios_status(ok)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
set_snmp_options()
|
set_snmp_options()
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check IBM Bladecenters
|
Summary: A Nagios plugin to check IBM Bladecenters
|
||||||
Name: nagios-okplugin-check_ibm_bladecenter
|
Name: nagios-okplugin-check_ibm_bladecenter
|
||||||
Version: 1.1.2
|
Version: 4
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-check_ibm_bladecenter
|
URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-check_ibm_bladecenter
|
||||||
@@ -40,6 +40,21 @@ rm -rf %{buildroot}
|
|||||||
#%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg
|
#%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 21 2014 Pall Sigurdsson <palli@opensource.is> 4-1
|
||||||
|
-
|
||||||
|
|
||||||
|
* Fri Feb 21 2014 Unknown name 3-1
|
||||||
|
- Merge branch 'master' of github.com:opinkerfi/nagios-plugins
|
||||||
|
(palli@opensource.is)
|
||||||
|
- ibm_bladecenter - another firmware bug workaround (palli@opensource.is)
|
||||||
|
- pep8 fixes (palli@opensource.is)
|
||||||
|
- Fix workaround for firmware bug (palli@opensource.is)
|
||||||
|
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- Merge branch 'master' of github.com:opinkerfi/misc (palli@opensource.is)
|
||||||
|
- --exclude option added. Added workaround around false positives
|
||||||
|
(palli@opensource.is)
|
||||||
|
|
||||||
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.1.2-3
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.1.2-3
|
||||||
- version number of scripts bumped (palli@opensource.is)
|
- version number of scripts bumped (palli@opensource.is)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check Cisco Ironport
|
Summary: A Nagios plugin to check Cisco Ironport
|
||||||
Name: nagios-okplugin-check_ironport
|
Name: nagios-okplugin-check_ironport
|
||||||
Version: 1.1.4
|
Version: 2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -37,6 +37,10 @@ rm -rf %{buildroot}
|
|||||||
#%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg
|
#%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- Merge branch 'master' of https://opensource.ok.is/git/misc
|
||||||
|
(palli@opensource.is)
|
||||||
|
|
||||||
* Tue Jul 31 2012 Pall Sigurdsson <palli@opensource.is> 1.1.4-1
|
* Tue Jul 31 2012 Pall Sigurdsson <palli@opensource.is> 1.1.4-1
|
||||||
- initial packaging for nagios-okplugin-check_ironport (palli@opensource.is)
|
- initial packaging for nagios-okplugin-check_ironport (palli@opensource.is)
|
||||||
|
|
||||||
|
|||||||
1
check_msa_hardware-pl/README.md
Normal file
1
check_msa_hardware-pl/README.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Checks hardware status of MSA disk arrays also known as HP P2000
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check status of an MSA (HP P2000) disk array
|
Summary: A Nagios plugin to check status of an MSA (HP P2000) disk array
|
||||||
Name: nagios-okplugin-%{plugin}
|
Name: nagios-okplugin-%{plugin}
|
||||||
Version: 1.0.3
|
Version: 1.0.5
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -46,6 +46,14 @@ rm -rf %{buildroot}
|
|||||||
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.5-1
|
||||||
|
-
|
||||||
|
|
||||||
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.4-1
|
||||||
|
- README.md added (you@example.com)
|
||||||
|
- nrpe.d added to check_msa (you@example.com)
|
||||||
|
- rename check_msa_hardware-pl (you@example.com)
|
||||||
|
|
||||||
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.3-1
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.3-1
|
||||||
- new package built with tito
|
- new package built with tito
|
||||||
|
|
||||||
|
|||||||
1
check_msa_hardware-pl/nrpe.d/check_msa_hardware.cfg
Normal file
1
check_msa_hardware-pl/nrpe.d/check_msa_hardware.cfg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
command[check_msa_hardware]=/usr/lib64/nagios/plugins/check_msa_hardware
|
||||||
@@ -72,12 +72,11 @@ def getLocalNodeState(dom):
|
|||||||
"""
|
"""
|
||||||
Get the state of the local node
|
Get the state of the local node
|
||||||
"""
|
"""
|
||||||
hostname = socket.gethostname()
|
|
||||||
nodesList = dom.getElementsByTagName('node')
|
nodesList = dom.getElementsByTagName('node')
|
||||||
nodeState = {}
|
nodeState = {}
|
||||||
|
|
||||||
for node in nodesList:
|
for node in nodesList:
|
||||||
if node.attributes['name'].value == hostname:
|
if node.attributes['local'].value == "1":
|
||||||
nodeState['name'] = node.attributes['name'].value
|
nodeState['name'] = node.attributes['name'].value
|
||||||
nodeState['state'] = node.attributes['state'].value
|
nodeState['state'] = node.attributes['state'].value
|
||||||
nodeState['rgmanager'] = node.attributes['rgmanager'].value
|
nodeState['rgmanager'] = node.attributes['rgmanager'].value
|
||||||
@@ -95,7 +94,6 @@ def getServiceState(dom, service):
|
|||||||
Get the state of the named service
|
Get the state of the named service
|
||||||
"""
|
"""
|
||||||
groupList = dom.getElementsByTagName('group')
|
groupList = dom.getElementsByTagName('group')
|
||||||
hostname = socket.gethostname()
|
|
||||||
serviceState = {}
|
serviceState = {}
|
||||||
for group in groupList:
|
for group in groupList:
|
||||||
if group.attributes['name'].value in (service,"service:"+service,"vm:"+service):
|
if group.attributes['name'].value in (service,"service:"+service,"vm:"+service):
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check Red Hat Cluster suite (rhel5 and rhel6)
|
Summary: A Nagios plugin to check Red Hat Cluster suite (rhel5 and rhel6)
|
||||||
Name: nagios-okplugin-%{plugin_name}
|
Name: nagios-okplugin-%{plugin_name}
|
||||||
Version: %{version}
|
Version: 1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -45,6 +45,11 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/%{plugin_name}.cfg
|
/etc/nrpe.d/%{plugin_name}.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 1-1
|
||||||
|
- Updated rhcs nrpe config as well (tommi@tommi.org)
|
||||||
|
- Added check for suspended services -Z (tommi@tommi.org)
|
||||||
|
- Fix broken libdir on 64-bit platforms (palli@opensource.is)
|
||||||
|
|
||||||
* Thu May 24 2012 Pall Sigurdsson <palli@opensource.is> 0.0.4-1
|
* Thu May 24 2012 Pall Sigurdsson <palli@opensource.is> 0.0.4-1
|
||||||
- version bump of check_rhcs (palli@opensource.is)
|
- version bump of check_rhcs (palli@opensource.is)
|
||||||
- check_rhcs_fence added for rhel6 compatibility (palli@opensource.is)
|
- check_rhcs_fence added for rhel6 compatibility (palli@opensource.is)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check SELinux status on Linux servers
|
Summary: A Nagios plugin to check SELinux status on Linux servers
|
||||||
Name: nagios-plugins-check_selinux
|
Name: nagios-plugins-check_selinux
|
||||||
Version: 1.1
|
Version: 1.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -35,6 +35,12 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 1.3-1
|
||||||
|
-
|
||||||
|
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson
|
||||||
|
-
|
||||||
|
|
||||||
* Wed May 22 2013 Tomas Edwardsson <tommi@tommi.org> 1.1-1
|
* Wed May 22 2013 Tomas Edwardsson <tommi@tommi.org> 1.1-1
|
||||||
- new package built with tito
|
- new package built with tito
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: Various nagios plugins to check cpu,memory,interfaces via SNMP
|
Summary: Various nagios plugins to check cpu,memory,interfaces via SNMP
|
||||||
Name: nagios-okplugin-check_snmp
|
Name: nagios-okplugin-check_snmp
|
||||||
Version: 1.0.1
|
Version: 2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -45,6 +45,9 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/nagios/plugins/*
|
%{_libdir}/nagios/plugins/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 2-1
|
||||||
|
- make sure nagios does not run us in embedded perl (palli@opensource.is)
|
||||||
|
|
||||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
||||||
- new package built with tito
|
- new package built with tito
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to compare time on remote host with localhost
|
Summary: A Nagios plugin to compare time on remote host with localhost
|
||||||
Name: nagios-okplugin-check_time
|
Name: nagios-okplugin-check_time
|
||||||
Version: 1.0.1
|
Version: 1.0.2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -40,6 +40,9 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/check_time.cfg
|
/etc/nrpe.d/check_time.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 25 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.2-1
|
||||||
|
- Bump version
|
||||||
|
|
||||||
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
||||||
- new package built with tito
|
- new package built with tito
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check yum updates via NRPE
|
Summary: A Nagios plugin to check yum updates via NRPE
|
||||||
Name: nagios-okplugin-check_yum
|
Name: nagios-okplugin-check_yum
|
||||||
Version: 0.8.2
|
Version: 1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -45,6 +45,10 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/check_yum.cfg
|
/etc/nrpe.d/check_yum.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 20 2014 Pall Sigurdsson <palli@opensource.is> 1-1
|
||||||
|
- Merge branch 'master' of github.com:opinkerfi/nagios-plugins
|
||||||
|
(palli@opensource.is)
|
||||||
|
|
||||||
* Mon May 27 2013 Tomas Edwardsson <tommi@tommi.org> 0.8.2-1
|
* Mon May 27 2013 Tomas Edwardsson <tommi@tommi.org> 0.8.2-1
|
||||||
- Fixed nrpe with invalid libdir (tommi@tommi.org)
|
- Fixed nrpe with invalid libdir (tommi@tommi.org)
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2.1.0-1 check_apcext.pl/
|
2.1.1-1 check_apcext.pl/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.0.3-1 check_bond/
|
0.0.4-1 check_bond/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.0.4-1 check_brocade/
|
0.0.5-1 check_brocade/
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1.1-1 check_cpu.py/
|
|
||||||
@@ -1 +1 @@
|
|||||||
1.0.1-1 check_dataprotector/
|
2-1 check_dataprotector/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.3-1 check_disks.pl/
|
1.0.5-1 check_disks.pl/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.2-1 check_eva/
|
2-1 check_eva/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.2-2 check_hpacucli/
|
2-1 check_hpacucli/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.1.2-3 check_ibm_bladecenter/
|
4-1 check_ibm_bladecenter/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.1.4-1 check_ironport/
|
2-1 check_ironport/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.3-1 check_msa_hardware-pl/
|
1.0.5-1 check_msa_hardware-pl/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.0.4-1 check_rhcs/
|
1-1 check_rhcs/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.1-1 check_snmp/
|
2-1 check_snmp/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.1-1 check_time/
|
1.0.2-1 check_time/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.8.2-1 check_yum/
|
1-1 check_yum/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0-1 check_cifs/
|
1.1-1 check_cifs/
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1.2-1 nagios-okplugin-common/
|
|
||||||
@@ -1 +1 @@
|
|||||||
1.0-1 check_bl/
|
1.1-1 check_bl/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0-1 check_cpu.sh/
|
2-1 check_cpu.sh/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.1-1 check_selinux/
|
1.3-1 check_selinux/
|
||||||
|
|||||||
@@ -6,61 +6,7 @@ builder.mock = fedora-20-x86_64
|
|||||||
builder.test = 1
|
builder.test = 1
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/testing/fedora20/x86_64/
|
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/testing/fedora20/x86_64/
|
||||||
|
|
||||||
|
# RHEL 6 Production
|
||||||
[production-fc20-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-20-x86_64
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/fedora20/x86_64/
|
|
||||||
|
|
||||||
# Fedora FC19
|
|
||||||
[test-fc19-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-19-x86_64
|
|
||||||
builder.test = 1
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/testing/fedora19/x86_64/
|
|
||||||
|
|
||||||
|
|
||||||
[production-fc19-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-19-x86_64
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/fedora19/x86_64/
|
|
||||||
|
|
||||||
# Fedora FC18
|
|
||||||
[test-fc18-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-18-x86_64
|
|
||||||
builder.test = 1
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/testing/fedora18/x86_64/
|
|
||||||
|
|
||||||
|
|
||||||
[production-fc18-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-18-x86_64
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/fedora18/x86_64/
|
|
||||||
|
|
||||||
# Fedora FC17
|
|
||||||
[test-fc17-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-17-x86_64
|
|
||||||
builder.test = 1
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/testing/fedora17/x86_64/
|
|
||||||
|
|
||||||
|
|
||||||
[production-fc17-x86_64]
|
|
||||||
releaser = tito.release.YumRepoReleaser
|
|
||||||
builder = tito.builder.MockBuilder
|
|
||||||
builder.mock = fedora-17-x86_64
|
|
||||||
rsync = tito@opensource.is:/var/www/sites/opensource.ok.is/repo/fedora17/x86_64/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# RHEL 6
|
|
||||||
[production-el6-x86_64]
|
[production-el6-x86_64]
|
||||||
releaser = tito.release.YumRepoReleaser
|
releaser = tito.release.YumRepoReleaser
|
||||||
builder = tito.builder.MockBuilder
|
builder = tito.builder.MockBuilder
|
||||||
|
|||||||
Reference in New Issue
Block a user