-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME
71 lines (62 loc) · 2.55 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
usage: storcli_wrapper.py [-h]
[--pd-list | --vd-list | --pd-count | --vd-count | --missing-count | --sample-config]
[--file FILE] [--storcli-version]
Parser for LSI Storage Command Line Tool
optional arguments:
-h, --help show this help message and exit
--pd-list Get status of Physical Drives (default mode)
--vd-list Get status of Virtual Drives
--pd-count Get number of Physical Drives
--vd-count Get number of Virtual Drives
--missing-count Get number of Missing(failed) drives
--sample-config Show example config for Telegraf
--file FILE JSON file to get data from file instead of getting it
from controller. Usually you don't need this option
--storcli-version Get version and location of storcli tool
The tool is simple wrapper around Storage Command Line Tool.
It is intended to be run by Telegraf `exec` input module
to collect metrics for Physical Drives (PD) and
Virtual Drives (VD/RAID arrays) connected to LSI controllers
known to Storage Command Line Tool (StorCLI). Actually it works
as simple filter to normalize data it gets from StorCLI.
It run StorCLI utility to get data from controller.
The tool looks for StorCLI binary in the following directories:
current directory
/opt/MegaRAID/storcli
$PATH
Tested with folowing RAID controllers:
LSI 3108 MegaRAID
Cisco 12G SAS Modular Raid Controller
and
Storage Command Line Tool Ver 1.03.11 Jan 30, 2013
Storage Command Line Tool Ver 007.0205.0000.0000 March 27, 2017
Links:
Telegraf https://docs.influxdata.com/telegraf/
StorCLI https://www.broadcom.com/support/download-search
(search by `storcli`)
Limitations:
only one controller is supported at the time
--sample-config is broken
must be run via `sudo`
If you receive 65534 as disk state please open bug and provide
example of storcli output
Known issues:
with some combination of storcli version and controller you may get
an error as shown below or similar. Try to use another version
of storcli and feel free to open bug for storcli-wrapper.
Got error from controller:
{
"Status": "Failure",
"Detailed Status": [
{
"Status": "Failed",
"ErrCd": 255,
"ErrMsg": "Failed to get Controller information",
"Ctrl": 0
}
],
"Controller": 0,
"Description": "None"
}
Credits:
https://medium.com/@lcx_at for storcli `J` option