megacli: prevent crash when drive temperature is N/A
Intel SSD do not report their temperature in MegaCLI output Drive Temperature : N/A
This commit is contained in:
parent
aca4688dc3
commit
0028abc077
4 changed files with 41 additions and 9 deletions
3
collector/fixtures/megacli
Executable file
3
collector/fixtures/megacli
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cat fixtures/megacli_disks.txt
|
||||
|
|
@ -83,7 +83,7 @@ Foreign State: None
|
|||
Device Speed: Unknown
|
||||
Link Speed: Unknown
|
||||
Media Type: Hard Disk Device
|
||||
Drive Temperature :37C (98.60 F)
|
||||
Drive Temperature : N/A
|
||||
PI Eligibility: No
|
||||
Drive is formatted for PI information: No
|
||||
PI: No PI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue