thomas-krenn / check_adaptec_raid

Monitoring plugin to check Adaptec RAID controllers
GNU General Public License v3.0
15 stars 10 forks source link

Logical device not detected #8

Open ewiesmann opened 4 years ago

ewiesmann commented 4 years ago

Hi,

on a Windows Server 2019 an existing Logicat Device is not detected.

In line 293 of check_adaptec_raid we search for "^Logical device number ([0-9]+)$"

arcconf (Version 3.03.00 (23668) ) outputs:

    ----------------------------------------------------------------------
    Logical device information
    ----------------------------------------------------------------------
    Logical Device number 0
    ...

Caused by case sensitive pattern matching no "Logical device number" is found

May be a better attempt would be to search case insensitive: if($line =~ /^Logical device number ([0-9]+)$/**i**){

Best regards, Edgar

ewiesmann commented 4 years ago

code line shoud look like this: if($line =~ /^Logical device number ([0-9]+)$/i){