Skip to content

Commit 353ae5d

Browse files
committed
Added a bunch of health checks
1 parent d472c44 commit 353ae5d

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

Src/Private/Get-AbrOntapEfficiencyVolSisStatus.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyVolSisStatus {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -45,6 +45,9 @@ function Get-AbrOntapEfficiencyVolSisStatus {
4545
}
4646
$OutObj += [pscustomobject]$inobj
4747
}
48+
if ($Healthcheck.Storage.Efficiency) {
49+
$OutObj | Where-Object { $_.'State' -like 'Disabled' } | Set-Style -Style Warning -Property 'State'
50+
}
4851

4952
$TableParams = @{
5053
Name = "Volume Deduplication Information - $($Vserver)"

Src/Private/Get-AbrOntapVserverLunIgroup.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ function Get-AbrOntapVserverLunIgroup {
4848
}
4949
$VserverObj += [pscustomobject]$inobj
5050
}
51+
if ($Healthcheck.Vserver.Status) {
52+
$VserverObj | Where-Object { ($_.'Reporting Nodes').count -gt 2 } | Set-Style -Style Warning -Property 'Reporting Nodes'
53+
}
5154

5255
$TableParams = @{
5356
Name = "Vserver Igroup Information - $($ClusterInfo.ClusterName)"

Src/Private/Get-AbrOntapVserverLunStorage.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapVserverLunStorage {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -70,6 +70,7 @@ function Get-AbrOntapVserverLunStorage {
7070
if ($Healthcheck.Vserver.Status) {
7171
$VserverObj | Where-Object { $_.'Status' -like 'Down' } | Set-Style -Style Warning -Property 'Status'
7272
$VserverObj | Where-Object { $_.'Used' -ge 90 } | Set-Style -Style Critical -Property 'Used'
73+
$VserverObj | Where-Object { $_.'Is Mapped' -eq 'No' } | Set-Style -Style Warning -Property 'Is Mapped'
7374
}
7475

7576
$TableParams = @{

Src/Private/Get-AbrOntapVserverSummary.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapVserverSummary {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -73,6 +73,7 @@ function Get-AbrOntapVserverSummary {
7373
$VserverObj += [pscustomobject]$inobj
7474
}
7575
if ($Healthcheck.Vserver.Status) {
76+
$VserverObj | Where-Object { $_.'Used' -ge 75 } | Set-Style -Style Warning -Property 'Used'
7677
$VserverObj | Where-Object { $_.'Status' -like 'offline' } | Set-Style -Style Warning -Property 'Status'
7778
}
7879

Src/Private/Get-AbrOntapVserverVolumes.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapVserverVolume {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -43,6 +43,7 @@ function Get-AbrOntapVserverVolume {
4343
}
4444
if ($Healthcheck.Vserver.Status) {
4545
$VserverObj | Where-Object { $_.'Status' -like 'offline' } | Set-Style -Style Warning -Property 'Status'
46+
$VserverObj | Where-Object { $_.'Used' -ge 75 } | Set-Style -Style Warning -Property 'Used'
4647
}
4748

4849
$TableParams = @{

0 commit comments

Comments
 (0)