mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
Minor typos fixed
This commit is contained in:
parent
0d0d4b408f
commit
5f628114bc
@ -17,10 +17,9 @@
|
|||||||
|
|
||||||
# About this script
|
# About this script
|
||||||
#
|
#
|
||||||
# This script will check the status of all EVA arrays via the sssu binary.
|
# This script will check the status of Smart Array Raid Controller
|
||||||
# You will need the sssu binary in path (/usr/bin/sssu is a good place)
|
# You will need the hpacucli binary in path (/usr/sbin/hpacucli is a good place)
|
||||||
# If you do not have sssu, check your commandview CD, it should have both
|
# hpacucli comes with the Proliant Support Pack (PSP) from HP
|
||||||
# binaries for Windows and Linux
|
|
||||||
|
|
||||||
debugging = False
|
debugging = False
|
||||||
|
|
||||||
@ -201,7 +200,7 @@ def check_controllers():
|
|||||||
global nagios_state
|
global nagios_state
|
||||||
nagios_state = unknown
|
nagios_state = unknown
|
||||||
end()
|
end()
|
||||||
add_summary( "Found: %s controllers" % ( len(controllers) ) )
|
add_summary( "Found %s controllers" % ( len(controllers) ) )
|
||||||
for i in controllers:
|
for i in controllers:
|
||||||
controller_status = check(i, 'Controller Status', 'OK' )
|
controller_status = check(i, 'Controller Status', 'OK' )
|
||||||
status = max(status, controller_status)
|
status = max(status, controller_status)
|
||||||
@ -297,6 +296,9 @@ def parse_arguments():
|
|||||||
elif arg == '--path':
|
elif arg == '--path':
|
||||||
path = arguments.pop(0)
|
path = arguments.pop(0)
|
||||||
set_path(path)
|
set_path(path)
|
||||||
|
elif arg == '--debug':
|
||||||
|
global debugging
|
||||||
|
debugging = True
|
||||||
else:
|
else:
|
||||||
print_help()
|
print_help()
|
||||||
exit(unknown)
|
exit(unknown)
|
||||||
@ -310,7 +312,6 @@ def main():
|
|||||||
check_controllers()
|
check_controllers()
|
||||||
check_logicaldisks()
|
check_logicaldisks()
|
||||||
check_physicaldisks()
|
check_physicaldisks()
|
||||||
for i in environ['PATH'].split(':'): print i
|
|
||||||
end()
|
end()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user