mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
30 Commits
nagios-okp
...
nagios-okp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b481aadbd5 | ||
|
|
2049fbd692 | ||
|
|
5f604b852f | ||
|
|
e5772ab336 | ||
|
|
e5498e1554 | ||
|
|
7d9ba339bc | ||
|
|
37d504a039 | ||
|
|
e7af0e4098 | ||
|
|
6c126130cc | ||
|
|
f0968997e4 | ||
|
|
95693e3c73 | ||
|
|
55daf8f4c9 | ||
|
|
d11d29185a | ||
|
|
06194c84cc | ||
|
|
184d7d3b4a | ||
|
|
1574cd13d3 | ||
|
|
b0b55dcd3e | ||
|
|
b96e973e60 | ||
|
|
51b75943cf | ||
|
|
8ff1cf84d0 | ||
|
|
5cb19c072e | ||
|
|
6db73d28d6 | ||
|
|
5ba61f91b2 | ||
|
|
8f6faa8b59 | ||
|
|
574538883c | ||
|
|
245ad9ba21 | ||
|
|
854b08c601 | ||
|
|
55ea04bd73 | ||
|
|
09dcc39f94 | ||
|
|
48d0a92707 |
@@ -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 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.6
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -40,6 +40,12 @@ 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.6-1
|
||||||
|
- Bumped version
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check IPA server status
|
Summary: A Nagios plugin to check IPA server status
|
||||||
Name: nagios-okplugin-%{plugin}
|
Name: nagios-okplugin-%{plugin}
|
||||||
Version: 0.0.3
|
Version: 0.0.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -42,6 +42,12 @@ rm -rf %{buildroot}
|
|||||||
%config(noreplace) %{_sysconfdir}/nrpe.d/check_ipa.cfg
|
%config(noreplace) %{_sysconfdir}/nrpe.d/check_ipa.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 04 2014 Tomas Edwardsson <tommi@tommi.org> 0.0.4-1
|
||||||
|
- Renamed to markdown (tommi@tommi.org)
|
||||||
|
- Added examples and documentation (tommi@tommi.org)
|
||||||
|
- Missing colon (tommi@tommi.org)
|
||||||
|
- Added missing OK when things worked out (tommi@tommi.org)
|
||||||
|
|
||||||
* Thu Apr 25 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.3-1
|
* Thu Apr 25 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.3-1
|
||||||
- Preliminary testing done, released
|
- Preliminary testing done, released
|
||||||
- Various errors in syntax fixed (tommi@tommi.org)
|
- Various errors in syntax fixed (tommi@tommi.org)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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: 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,13 +2,14 @@
|
|||||||
|
|
||||||
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.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://opensource.is/trac/wiki/check_time
|
URL: http://opensource.is/trac/wiki/check_time
|
||||||
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_time/releases/nagios-okplugin-check_time-%{version}.tar.gz
|
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_time/releases/nagios-okplugin-check_time-%{version}.tar.gz
|
||||||
Requires: nagios-nrpe
|
Requires: nagios-nrpe
|
||||||
|
Requires: bc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Packager: Pall Sigurdsson <palli@opensource.is>
|
Packager: Pall Sigurdsson <palli@opensource.is>
|
||||||
|
|
||||||
@@ -40,6 +41,12 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/check_time.cfg
|
/etc/nrpe.d/check_time.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 04 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.3-1
|
||||||
|
- check_time - Added requirement for bc (tommi@tommi.org)
|
||||||
|
|
||||||
|
* 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 uptime of a remote host via NRPE
|
Summary: A Nagios plugin to check uptime of a remote host via NRPE
|
||||||
Name: nagios-okplugin-check_uptime
|
Name: nagios-okplugin-check_uptime
|
||||||
Version: 1.0.2
|
Version: 1.0.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -41,6 +41,9 @@ rm -rf %{buildroot}
|
|||||||
/etc/nrpe.d/check_uptime.cfg
|
/etc/nrpe.d/check_uptime.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 13 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.3-1
|
||||||
|
- Update tag
|
||||||
|
|
||||||
* Mon Dec 30 2013 Tomas Edwardsson <tommi@tommi.org> 1.0.2-1
|
* Mon Dec 30 2013 Tomas Edwardsson <tommi@tommi.org> 1.0.2-1
|
||||||
- Updated tag for build with newer tito
|
- Updated tag for build with newer 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)
|
||||||
|
|
||||||
|
|||||||
46
okc-get_network_stat/nagios-okplugin-get_network_stat.spec
Normal file
46
okc-get_network_stat/nagios-okplugin-get_network_stat.spec
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
Summary: A Nagios plugin to get network statistics over NRPE
|
||||||
|
Name: nagios-okplugin-get_network_stat
|
||||||
|
Version: 1.0.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
License: GPLv2+
|
||||||
|
Group: Applications/System
|
||||||
|
URL: https://github.com/opinkerfi/nagios-plugins/okc-get_network_stat
|
||||||
|
Source0: https://github.com/opinkerfi/nagios-plugins/okc-get_network_stat/%{name}-%{version}.tar.gz
|
||||||
|
Requires: nagios-plugins-nrpe
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
Packager: Tomas Edwardsson <tommi@tommi.org>
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
A Nagios plugin to get network statistics over NRPE
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
install -D -p -m 0755 okc-get_network_stat %{buildroot}%{_libdir}/nagios/plugins/okc-get_network_stat
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
#%doc README LICENSE
|
||||||
|
#%{_libdir}/nagios/plugins/*
|
||||||
|
%{_libdir}/nagios/plugins/okc-get_network_stat
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Apr 02 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.1-1
|
||||||
|
- new package built with tito
|
||||||
|
|
||||||
|
* Wed Apr 2 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.0-1
|
||||||
|
- Initial release
|
||||||
65
okc-get_network_stat/okc-get_network_stat
Normal file
65
okc-get_network_stat/okc-get_network_stat
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
from pynag.Plugins import PluginHelper, ok, warning, critical, unknown
|
||||||
|
from pynag.Utils import runCommand
|
||||||
|
import re
|
||||||
|
|
||||||
|
helper = PluginHelper()
|
||||||
|
|
||||||
|
helper.parser.add_option("-H", help="Host to connect to", dest="host", default='localhost')
|
||||||
|
|
||||||
|
helper.parse_arguments()
|
||||||
|
|
||||||
|
if helper.options.host == "localhost":
|
||||||
|
command="cat /proc/net/dev|sed 's/ */ /g'"
|
||||||
|
else:
|
||||||
|
command="/usr/lib64/nagios/plugins/check_nrpe -H '%s' -c get_network_interfaces_stat" % helper.options.host
|
||||||
|
|
||||||
|
return_code, stdout, stderr = runCommand(command)
|
||||||
|
|
||||||
|
try:
|
||||||
|
receive, transmit = stdout.split("\n")[1].split("|")[1:]
|
||||||
|
receive = receive.split()
|
||||||
|
transmit = transmit.split()
|
||||||
|
|
||||||
|
interfaces = []
|
||||||
|
|
||||||
|
for int_line in stdout.split("\n")[2:]:
|
||||||
|
int_line = int_line.strip()
|
||||||
|
if not int_line:
|
||||||
|
continue
|
||||||
|
|
||||||
|
int_arr = re.split("[: ]+", int_line.strip())
|
||||||
|
|
||||||
|
interface = int_arr.pop(0)
|
||||||
|
|
||||||
|
if interface == "lo" or interface.startswith('sit'):
|
||||||
|
continue
|
||||||
|
|
||||||
|
interfaces.append(interface)
|
||||||
|
for i in range(0, len(receive)):
|
||||||
|
helper.add_metric(
|
||||||
|
label="%s_rx_%s" % (interface, receive[i]),
|
||||||
|
value=int_arr.pop(0),
|
||||||
|
uom="c")
|
||||||
|
for i in range(0, len(transmit)):
|
||||||
|
helper.add_metric(
|
||||||
|
label="%s_tx_%s" % (interface, transmit[i]),
|
||||||
|
value=int_arr.pop(0),
|
||||||
|
uom="c")
|
||||||
|
|
||||||
|
helper.add_summary("Network interfaces %s" % ", ".join(interfaces))
|
||||||
|
|
||||||
|
# Here all metrics will be checked against thresholds that are either
|
||||||
|
# built-in or added via --threshold from the command-line
|
||||||
|
helper.check_all_metrics()
|
||||||
|
|
||||||
|
# Print out plugin information and exit nagios-style
|
||||||
|
helper.exit(ok)
|
||||||
|
except Exception, error:
|
||||||
|
helper.status(unknown)
|
||||||
|
helper.add_summary(stdout + stderr)
|
||||||
|
helper.exit(unknown)
|
||||||
|
|
||||||
|
# vim: sts=4 expandtab autoindent
|
||||||
|
|
||||||
@@ -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 +1 @@
|
|||||||
1.0.1-1 check_dataprotector/
|
2-1 check_dataprotector/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.3-1 check_disks.pl/
|
1.0.6-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 @@
|
|||||||
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.3-1 check_time/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.2-1 check_uptime/
|
1.0.3-1 check_uptime/
|
||||||
|
|||||||
@@ -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
rel-eng/packages/nagios-okplugin-get_network_stat
Normal file
1
rel-eng/packages/nagios-okplugin-get_network_stat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
1.0.1-1 okc-get_network_stat/
|
||||||
@@ -1 +1 @@
|
|||||||
0.0.3-1 check_ipa/
|
0.0.4-1 check_ipa/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0-1 check_cpu.sh/
|
2-1 check_cpu.sh/
|
||||||
|
|||||||
Reference in New Issue
Block a user