mykolq / zabbix_lsi_template

Template is for discovering and monitoring LSI (Avago, Broadcom) storage controllers
12 stars 11 forks source link

Case-sensetive in postprocessing JavaScript in lsi.pd.state.["{#PDID}"] key #2

Closed xraynor closed 5 years ago

xraynor commented 5 years ago

Trigger LSI physical disk "{#PDID}" is "{ITEM.LASTVALUE}" not work because case-sensetive in postprocessing JavaScript switch(value) in lsi.pd.state.["{#PDID}"] key: case 'UGood': case 'UBad':

You can also add: case 'GHS': value='Global Hot Spare';

case 'DHS': value='Dedicated Hot Spare';

case 'Rbld': value='Rebuild';

mykolq commented 5 years ago

Hello! Thank you, I will fix it. Strange, that I have no notification about issue by mail.

mykolq commented 5 years ago

fixed. thanks