Fix HP raid controller parsing #131

Merged
cyrinux merged 2 commits from fix_hp_raid_inventory into master 2020-06-10 15:24:44 +02:00
cyrinux commented 2020-06-10 14:21:58 +02:00 (Migrated from github.com)

Some messages about the cache for example, with indentation level 0 break the parsing.
I ignore line indentation if indentation level and line dont match REGEXP_CONTROLLER_HP.


DC1|server-01:~# hpacucli ctrl all show detail

Smart Array P244br in Slot 0 (Embedded)
A cache backup failure has occurred. Please execute the "reenablecache" command
to enable the cache. Your controller may require a reboot after the operation
to complete the cache recovery process.

   Bus Interface: PCI
   Slot: 0
   Serial Number: PDZVU0VLM241FP
   Cache Serial Number: PDZVU0VLM241FP
   RAID 6 (ADG) Status: Enabled
   Controller Status: OK
   Hardware Revision: B
   Firmware Version: 7.00-0
   ...
Some messages about the cache for example, with indentation level 0 break the parsing. I ignore line indentation if indentation level and line dont match REGEXP_CONTROLLER_HP. ```bash DC1|server-01:~# hpacucli ctrl all show detail Smart Array P244br in Slot 0 (Embedded) A cache backup failure has occurred. Please execute the "reenablecache" command to enable the cache. Your controller may require a reboot after the operation to complete the cache recovery process. Bus Interface: PCI Slot: 0 Serial Number: PDZVU0VLM241FP Cache Serial Number: PDZVU0VLM241FP RAID 6 (ADG) Status: Enabled Controller Status: OK Hardware Revision: B Firmware Version: 7.00-0 ... ```
Sign in to join this conversation.
No description provided.