Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
NKsupport
byNKsupport, November 10, 2014
Added socket support.
http://pastebin.com/QMHxc43X
http://pastebin.com/QMHxc43X
byNKsupport, June 28, 2012
Recently, our command was faced with the new controllers of the company 3ware.
And we had to redo the script because in new version of the TW_?LI output changed.
Version of TW_CLI:
Copyright (c) 2011 LSI
LSI/3ware CLI (version 2.00.11.020)
# lspci | grep RAID
05:00.0 RAID bus controller: 3ware Inc 9750 SAS2/SATA-II RAID PCIe (rev 05)
And the result of command DIFF with old 1.1 version:
239c239,244
#print "test_drives result: [
%s
]" % lines
> controllers = []
> for line in lines:
> if line.split() == "":
> controlers.append(line.split()[0])
>
And we had to redo the script because in new version of the TW_?LI output changed.
Version of TW_CLI:
Copyright (c) 2011 LSI
LSI/3ware CLI (version 2.00.11.020)
# lspci | grep RAID
05:00.0 RAID bus controller: 3ware Inc 9750 SAS2/SATA-II RAID PCIe (rev 05)
And the result of command DIFF with old 1.1 version:
239c239,244
#print "test_drives result: [
%s
]" % lines
> controllers = []
> for line in lines:
> if line.split() == "":
> controlers.append(line.split()[0])
>