From 580c3ea338f94af2857433e6d1365f1cd7cc44f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Mon, 6 Sep 2010 12:53:48 +0000 Subject: [PATCH] --- .../trunk/scripts/check_eva/check_eva.exe | Bin 30720 -> 30720 bytes nsclient/trunk/scripts/check_eva/check_eva.py | 24 +++++++++++++++--- nsclient/trunk/scripts/check_eva/library.zip | Bin 1343570 -> 1343570 bytes 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/nsclient/trunk/scripts/check_eva/check_eva.exe b/nsclient/trunk/scripts/check_eva/check_eva.exe index 4c1c7052c664a1caf8a73d25fe87494831811a97..29afb05d38c090b7dea5cf140bc55a2f68984d98 100644 GIT binary patch delta 2753 zcmah~ZA_b06n<_?Tc8x!fDV`f8*Fqs=3qE=V{Q&NnA52R-FUY-O7F`Cw0#+UL1WO) zf!o~X{J3s@ZR+A@G$zhQfA|p-e;5-@{D?n{iTcMx|LG57VvNRfPN9&w#84idd(OG% zp7Y#u%c0-Yq2JV7Cza=kPIKO~&U~ugBAUI|^L4AIzSHbzZ}X_m?BVv`3p3k%fDOcy zpa-@Wu>xqo@-Xg$=xYqDBPU@w8b48tBc1yBbI$xnvM*)SS{Eb7EtL5ul2eV7fd zpC6oQxMZ|HAH8IL^wLWP2lBy<^MjitxR{inD_WY5StjO1Gv#GwI@8Osh;DYa#^(8n zBC@0HqJ|1#)29N%0XPfEN1Co+b;6{RIvDci#kpdBt}7)M6~!}GfP4S*42E3wH7v|-36PLeX!R;Td*l$H|#aEu|TDMBF!o10?8Sq#cE7t=ps^|=Nt?3 zhwYK1dpW7TYu;h|W;tES{~UHtE+@?=Jyo7|iDxe7@xH~%Tro&=SIhSx1i)+*#8`Lp3mJZEE&RVk9cmM5C&t^Ne z{}oVgm}`4J$ZVk)7Z~N|uW+A2ipHG2$z6p>FKQ-%Nrgc#H{y~&MNpF-baiu->*WxB z7W7}BC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HwX@)zUtqjst1aNU2PdytJSSjX9q%RbYOGJxAs4Wo)jnm diff --git a/nsclient/trunk/scripts/check_eva/check_eva.py b/nsclient/trunk/scripts/check_eva/check_eva.py index ae9a6fe..e6fa04d 100644 --- a/nsclient/trunk/scripts/check_eva/check_eva.py +++ b/nsclient/trunk/scripts/check_eva/check_eva.py @@ -27,14 +27,18 @@ +# Some Defaults +show_perfdata = True +show_longserviceoutput = True +debugging = False -# First some defaults + +# check_eva defaults hostname="localhost" username="eva" password="eva1234" mode="check_systems" -debugging = False path='' # No real need to change anything below here @@ -119,6 +123,14 @@ while len(arguments) > 0: error("Invalid --mode %s" % arg) elif arg == '-d' or arg == '--debug': debugging=True + elif arg == '--longserviceoutput': + show_longserviceoutput = True + elif arg == '--no-longserviceoutput': + show_longserviceoutput = False + elif arg == '--perfdata': + show_perfdata = True + elif arg == '--no-perfdata': + show_perfdata = False elif arg == '-h' or '--help': print_help() exit(ok) @@ -257,8 +269,12 @@ def run_sssu(system=None, command="ls system full"): return objects def end(summary,perfdata,longserviceoutput,nagios_state): + global show_longserviceoutput + global show_perfdata + if not show_perfdata: perfdata = "" print "%s - %s | %s" % (state[nagios_state], summary,perfdata) - print longserviceoutput + if show_longserviceoutput: + print longserviceoutput exit(nagios_state) def check_systems(): @@ -523,7 +539,7 @@ def set_path(): current_path = getenv('PATH') if path == '': if current_path.find('C:\\') > -1: # We are on this platform - path = "C:\Program Files\Hewlett-Packard\Sanworks\Element Manager for StorageWorks HSV" + path = "C:\\Program Files\\Hewlett-Packard\\Sanworks\\Element Manager for StorageWorks HSV" else: path = "/usr/local/bin" current_path = "%s:%s" % (current_path,path) diff --git a/nsclient/trunk/scripts/check_eva/library.zip b/nsclient/trunk/scripts/check_eva/library.zip index 7055589daa5f4e8076da765e4cb94f583f060bc1..a2d7c197639da2ac29a33e2d83b93835f344d22d 100644 GIT binary patch delta 225 zcmccA5Ok>_NGHIXnMH&F1U{y!+1}V_mnXr*zyQMRK(VAMBfWyk32*{CDU z!~s%vHf8UT$^J}I%s|1-IZP@L(T!H-%O=lYkq3!R)Vb3_NGHIXnMH&F1TF}u*k(+Y|0%)5zyQMRK(VAMBfWyk