From fd83e788bc6e256fcf38cc2718caeabb2cbe2884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Thu, 2 Sep 2010 23:42:54 +0000 Subject: [PATCH] --- check_hparray/trunk/check_hpacucli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_hparray/trunk/check_hpacucli.py b/check_hparray/trunk/check_hpacucli.py index 055fa92..a895a4a 100644 --- a/check_hparray/trunk/check_hpacucli.py +++ b/check_hparray/trunk/check_hpacucli.py @@ -122,6 +122,7 @@ def set_path(path): path = ";C:\Program Files\Hewlett-Packard\Sanworks\Element Manager for StorageWorks HSV" path = path + ";C:\Program Files (x86)\Compaq\Hpacucli\Bin\hpacucli.exe" path = path + ";C:\Program Files\Compaq\Hpacucli\Bin\hpacucli.exe" + print "Tons of path added" else: path = ":/usr/local/bin" current_path = "%s%s" % (current_path,path) @@ -261,12 +262,12 @@ def check(object, field, valid_states = ['OK']): return state def main(): - set_path('') if __name__ == '__main__': main() + set_path('') check_controllers() check_logicaldisks() check_physicaldisks()