119 Commits

Author SHA1 Message Date
Adam Cecile
da4f474012 Re-run black after 2to3 2021-08-17 09:42:50 +02:00
Adam Cecile
8e78deda38 Run 2to3 on all Python wrappers 2021-08-17 09:42:37 +02:00
Adam Cecile
e0d3be643a Reformat all files with black (target=py27, line-length=160) 2021-08-17 09:42:18 +02:00
Adam Cecile
2c4bb4b531 [megaclisas_status] No need to make --nagios/--debug/--notemp exclusives 2021-08-17 09:40:52 +02:00
nega0
fddb6a970d
expand drive id column so it doesnt break (#109)
[megaclisas_status] expand drive id column so it doesnt break (#109)
2021-08-17 09:24:32 +02:00
nega0
571c894a01
handle options with argparse (#110)
[megaclisas_status] Handle options with argparse
2021-08-17 09:21:08 +02:00
Alexey Bednyakov
717f64e837
Numeration in format string and spaces to tab
Old python versions can fall in `ValueError` exception with current string format:
```
$ python
Python 2.6.6 (r266:84292, Jun 14 2019, 09:43:27)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> model = 'Z1Z3XMHGST4000NM0033-9ZM170 GA0A'
>>> m = re.match(r'(\w{8})(ST\w+)(?:-(\w{6}))?(?:\s+(\w+))', model)
>>> '{}-{} {} {}'.format(m.group(2), m.group(3), m.group(4), m.group(1))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: zero length field name in format
>>> m.group(2)
'ST4000NM0033'
>>> m.group(3)
'9ZM170'
>>> m.group(4)
'GA0A'
>>> m.group(1)
'Z1Z3XMHG'
```
Also corrected spaces to tabs.
2021-03-22 12:43:27 +03:00
Adam Cécile
a9a5b06bca
Merge pull request #105 from nega0/feature/seagate
[megaclisas-status] reformat "drive model" in disk info blocks
2019-08-19 23:24:17 +02:00
nega
c9fd701e89 do the same for unconfigured disk info block 2019-07-10 13:11:32 -04:00
nega
3963401717 reformat "Drive Model" in the disk info block 2019-07-10 13:00:19 -04:00
Adam Cecile
316a80089c Revert output so daemon script works again (Refs: #99) 2019-07-03 13:35:17 +02:00
Vincent S. Cojot
b1976c289b Update rev number 2018-09-30 23:53:16 -04:00
Vincent S. Cojot
4dffa3cbbd Make output consistent 2018-09-30 15:30:57 -04:00
Vincent S. Cojot
c7a75f48d1 Try to determine JBOD device path... 2018-09-30 14:26:05 -04:00
Vincent S. Cojot
2a8d11d88e Attempt to fix Channel exploration 2018-09-30 13:33:58 -04:00
Vincent S. Cojot
b2d7f60baa Update build 2018-03-17 18:44:45 -04:00
Vincent S. Cojot
563cd2a3a7 Minor bugfixes for drives that are currently reconstructing 2018-03-17 18:44:00 -04:00
Vincent S. Cojot
7262d9be81 Rev 1.76 2018-02-28 18:14:15 -05:00
Vincent S. Cojot
be7e6a0211 More debugging hooks, fixed improper pattern matching and drive enumeration.. 2018-02-28 18:09:57 -05:00
Vincent S. Cojot
67372fa585 Update revision 2018-02-28 18:09:57 -05:00
Vincent S. Cojot
5952d939dc Some more typos 2018-02-28 18:09:57 -05:00
Vincent S. Cojot
660371fbd5 Add update 2018-02-28 18:09:57 -05:00
Vincent S. Cojot
49be830f6d Fix a few typos, improve debugging output 2018-02-28 18:09:57 -05:00
Vincent S. Cojot
548d321240 Initial support for perccli64 too... 2018-02-28 18:09:57 -05:00
Vincent S. Cojot
5ec3ffd077 Handle typo in LSI storcli : postion instead of position 2018-02-28 18:09:56 -05:00
Vincent S. Cojot
563709c1e3 Add more debug output, initial support for storcli, investigating R60 bug.. 2018-02-28 18:08:34 -05:00
Vincent S. Cojot
7aa8bb4a27 Add debugging hooks 2018-02-28 18:08:33 -05:00
Vincent S. Cojot
684adff3ca Patch by David Cole: Add notemp to unconfigured drives... 2018-02-28 18:08:33 -05:00
Vincent S. Cojot
d0800e4b94 Minor bugfix for Hot Spares display... 2017-04-04 14:46:30 -04:00
Vincent S. Cojot
5e9b42143f Fix for some Infortrend enclosures.. 2017-03-28 12:02:50 -04:00
Vincent S. Cojot
5a4beff9d8 Updated build rev. 2017-01-11 12:13:18 -05:00
Vincent S. Cojot
89a7eb0982 Minor bugfix to get NestedLDTable properly laid out.. 2017-01-11 12:04:55 -05:00
Vincent S. Cojot
05a482a95e Update internal versions... 2016-11-01 16:47:11 +01:00
Vincent S. Cojot
2b47e20115 Make ROC and drive temp printouts selectable.. 2016-11-01 16:47:11 +01:00
Vincent S. Cojot
a6a07a154c Consolidated changes. Fixes for CacheCade, Max LD support, etc.. 2016-11-01 16:47:11 +01:00
Adam Cecile
6d4db8a294 megaclisas-status: Handle MegaCli.exe bin name for Windows 2016-09-19 10:02:01 +02:00
Adam Cecile
a87f5a9d18 megaclisas-status: Handle Windows when checking permissions 2016-09-19 10:01:36 +02:00
Vincent S. Cojot
1a567e2812 [megaclisas-status] Unconfigured+Good+Spun+Down should not be considered a bad disk either.. 2016-03-10 21:20:16 -05:00
Vincent S. Cojot
d2bf380ca5 [megaclisas-status] ID update... 2016-03-09 09:23:40 -05:00
Vincent S. Cojot
c0c1bccf07 [megaclisas-status] Update for CacheCade LDs.. 2016-03-09 09:21:11 -05:00
Vincent S. Cojot
0b9a311213 [megaclisas-status] ID update... 2016-03-09 09:04:38 -05:00
Vincent S. Cojot
2561f0cb8d [megaclisas-status] Do not use un-initialized arrays 2016-03-09 08:50:01 -05:00
Vincent S. Cojot
34abdc9132 [megaclisas-status] Minor Fix for CacheCade 2016-03-09 08:32:07 -05:00
Vincent S. Cojot
e2735c4466 Merge branch 'master' of github.com:ElCoyote27/hwraid 2016-03-09 08:21:27 -05:00
Vincent S. Cojot
7f69bcd897 [megaclisas-status] Typo fix 2016-03-09 08:21:15 -05:00
Vincent S. Cojot
c2dd157145 [megaclisas-status] Make "Cache Cade" "CacheCade" 2016-03-02 18:55:26 -05:00
Vincent S. Cojot
1f77418edc Merge branch 'master' of github.com:ElCoyote27/hwraid 2016-03-02 18:53:27 -05:00
Vincent S. Cojot
dfc3726e36 [megaclisas-status] Minor typo.. 2016-02-19 10:10:24 -05:00
Vincent S. Cojot
8bde9b05f6 [megaclisas-status] Initial attempt at supporting Cache Cade drives... 2016-02-18 23:52:38 -05:00
Vincent S. Cojot
26094a11b3 [megaclisas-status] Minor fix when MegaCli* is not found in the PATH... 2016-02-18 16:01:50 -05:00