1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2026-02-13 02:20:57 +01:00

Compare commits

..

6 Commits

Author SHA1 Message Date
Pall Sigurdsson
22e4293db7 Merge branch 'master' of github.com:opinkerfi/nagios-plugins 2014-02-18 15:57:42 +00:00
Pall Sigurdsson
9b89a3d998 update rel-eng for fedora20 repos 2014-02-18 15:57:09 +00:00
Pall Sigurdsson
553a182dd1 Merge pull request #10 from gitmopp/patch-2
bug in for loop. Looped only once
2014-02-04 05:14:39 -08:00
Pall Sigurdsson
9501bef37b Merge pull request #9 from gitmopp/patch-1
Fixed output to be more compatible
2014-02-04 05:14:24 -08:00
gitmopp
b672f6f508 bug in for loop. Looped only once 2014-01-31 15:06:04 +01:00
gitmopp
04d25281e3 Fixed output to be more compatible
My SSSU 10.1.0 reports "SSSU for HP P6000 Command View" instead of "SSSU for HP StorageWorks Command View EVA". I fixed the output to just check for SSSU for HP
2014-01-30 17:36:33 +01:00
2 changed files with 10 additions and 64 deletions

View File

@@ -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):

View File

@@ -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