mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 18:33:45 +01:00
This commit is contained in:
parent
b118e2c9e9
commit
fd83e788bc
@ -122,6 +122,7 @@ def set_path(path):
|
|||||||
path = ";C:\Program Files\Hewlett-Packard\Sanworks\Element Manager for StorageWorks HSV"
|
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 (x86)\Compaq\Hpacucli\Bin\hpacucli.exe"
|
||||||
path = path + ";C:\Program Files\Compaq\Hpacucli\Bin\hpacucli.exe"
|
path = path + ";C:\Program Files\Compaq\Hpacucli\Bin\hpacucli.exe"
|
||||||
|
print "Tons of path added"
|
||||||
else:
|
else:
|
||||||
path = ":/usr/local/bin"
|
path = ":/usr/local/bin"
|
||||||
current_path = "%s%s" % (current_path,path)
|
current_path = "%s%s" % (current_path,path)
|
||||||
@ -261,12 +262,12 @@ def check(object, field, valid_states = ['OK']):
|
|||||||
return state
|
return state
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
set_path('')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
set_path('')
|
||||||
check_controllers()
|
check_controllers()
|
||||||
check_logicaldisks()
|
check_logicaldisks()
|
||||||
check_physicaldisks()
|
check_physicaldisks()
|
||||||
|
Loading…
Reference in New Issue
Block a user