From 5f628114bc14885c3da679fe1555528c9d118aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Fri, 3 Sep 2010 19:51:50 +0000 Subject: [PATCH] Minor typos fixed --- check_hpacucli/trunk/check_hpacucli.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/check_hpacucli/trunk/check_hpacucli.py b/check_hpacucli/trunk/check_hpacucli.py index 18be18d..b8dff8e 100644 --- a/check_hpacucli/trunk/check_hpacucli.py +++ b/check_hpacucli/trunk/check_hpacucli.py @@ -17,10 +17,9 @@ # About this script # -# This script will check the status of all EVA arrays via the sssu binary. -# You will need the sssu binary in path (/usr/bin/sssu is a good place) -# If you do not have sssu, check your commandview CD, it should have both -# binaries for Windows and Linux +# This script will check the status of Smart Array Raid Controller +# You will need the hpacucli binary in path (/usr/sbin/hpacucli is a good place) +# hpacucli comes with the Proliant Support Pack (PSP) from HP debugging = False @@ -201,7 +200,7 @@ def check_controllers(): global nagios_state nagios_state = unknown end() - add_summary( "Found: %s controllers" % ( len(controllers) ) ) + add_summary( "Found %s controllers" % ( len(controllers) ) ) for i in controllers: controller_status = check(i, 'Controller Status', 'OK' ) status = max(status, controller_status) @@ -297,6 +296,9 @@ def parse_arguments(): elif arg == '--path': path = arguments.pop(0) set_path(path) + elif arg == '--debug': + global debugging + debugging = True else: print_help() exit(unknown) @@ -310,7 +312,6 @@ def main(): check_controllers() check_logicaldisks() check_physicaldisks() - for i in environ['PATH'].split(':'): print i end()