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:
Alexis Letessier 2015-07-25 16:45:45 +02:00
commit 0028abc077
4 changed files with 41 additions and 9 deletions

3
collector/fixtures/megacli Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
cat fixtures/megacli_disks.txt

View file

@ -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