LSI MegaCli
Description
This connector provides information about physical disks and array status.
Enterprise Connector
This connector requires the Enterprise edition of MetricsHub.
Superseded Connector
This connector is superseded by:
Target
Typical platforms: Microsoft Windows, LSI
Operating system: Microsoft Windows
Prerequisites
Leverages: Windows system commands (MegaCli / CmdTool2)
Technology and protocols: Commands
Examples
CLI
metricshub HOSTNAME -t win -c +LSIMegaCliWindows --wmi -u USER
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: win
connectors: [ +LSIMegaCliWindows ] # Optional, to load only this connector
protocols:
wmi:
username: <USERNAME> # Change with actual credentials
password: <PASSWORD> # Encrypted using metricshub-encrypt
Connector Activation Criteria
The LSI MegaCli connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:
- The device type must be one of: NT
- The command below succeeds on the monitored host:
- Command:
MegaCli -v -NoLog - Output contains:
Exit Code: 0x00(regex)
- Command:
- The command below succeeds on the monitored host:
- Command:
MegaCli -PDList -aALL -NoLog - Output contains:
[Pp][Dd] [Tt]ype(regex)
- Command:
Metrics
| Type | Collected Metrics | Specific Attributes |
|---|---|---|
| battery | hw.status{hw.type="battery", state="present"} | hw.parent.idhw.parent.typeidnametype |
| disk_controller | hw.status{hw.type="disk_controller", state="present"} | bios_versioncontroller_numberfirmware_versionhw.parent.typeidmodelnameserial_number |
| logical_disk | hw.logical_disk.limithw.status{hw.type="logical_disk", state="degraded|failed|ok"} | hw.parent.idhw.parent.typeidnameraid_level |
| physical_disk | hw.physical_disk.sizehw.status{hw.type="physical_disk", state="degraded|failed|ok"}hw.status{hw.type="physical_disk", state="present"} | hw.parent.idhw.parent.typeidinfomodelname |