mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
7 Commits
nagios-okp
...
nagios-plu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d94c9d3a2 | ||
|
|
22e4293db7 | ||
|
|
9b89a3d998 | ||
|
|
553a182dd1 | ||
|
|
9501bef37b | ||
|
|
b672f6f508 | ||
|
|
04d25281e3 |
@@ -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)
|
||||||
@@ -572,7 +572,7 @@ def check_generic(command="ls disk full", namefield="objectname", perfdata_field
|
|||||||
if i.has_key(x):
|
if i.has_key(x):
|
||||||
longoutput("- %s = %s\n" % (x, i[x]))
|
longoutput("- %s = %s\n" % (x, i[x]))
|
||||||
|
|
||||||
end(summary, perfdata, longserviceoutput, nagios_state)
|
end(summary, perfdata, longserviceoutput, nagios_state)
|
||||||
|
|
||||||
|
|
||||||
def check_multiple_objects(my_object, name):
|
def check_multiple_objects(my_object, name):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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