Skip to content

Commit

Permalink
1. Resolved issue #11
Browse files Browse the repository at this point in the history
2. Renamed main PS script to lowercase to follow consistency with my other scripts.
  • Loading branch information
asand3r committed Jun 11, 2019
1 parent a4aad03 commit 538c860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Also you can contact me with Telegram: @asand3r
zbx-hpsmartarray provides possibility to make Low Level Discovery of HP Smart Array components, such as controllers, logical and physical drives. Also you can request health status of each discovered component.
The script wrote with PowerShell and works from version 3.0. To communicate with Smart Array it's using HP Array Configuration Utility or HP Smart Storage Administrator toolkit which you must install yourself.

**Latest stable version:** 0.4.7
**Latest stable version:** 0.4.8

__Please, read [Requirements and Installation](https://github.com/asand3r/zbx-hpsmartarray/wiki/Requirements-and-Installation) section in Wiki before use. Need to edit zabbix_agentd.conf file.__

Expand Down
2 changes: 1 addition & 1 deletion Zbx-HPSmartArray.ps1 → zbx-hpsmartarray.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Make-LLD() {
$all_pd = & "$ssacli" "ctrl slot=$($ctrl_slot) pd all show status".Split() | Where-Object {$_ -match "physicaldrive"}

foreach ($pd in $all_pd) {
if ($pd -match "physicaldrive (?<Num>\d{1,}\w(:\d{1,2}){1,2}) \(.+ (?<Capacity>\d{1,} [KGT]B?)\)") {
if ($pd -match "physicaldrive (?<Num>\d{1,}\w(:\d{1,2}){1,2}) \(.+ (?<Capacity>\d{1,} [KGT]B?)(, \w+)?\)") {
[array]$lld_obj_list += [psobject]@{"{#PD.NUM}" = $Matches.Num;
"{#PD.CAPACITY}" = $Matches.Capacity;
"{#CTRL.SLOT}" = $ctrl_slot;
Expand Down

0 comments on commit 538c860

Please sign in to comment.