YSmetana / raid_arcconf_zabbix_lld

Zabbix LLD and monitoring script for Adaptec RAID controllers
GNU General Public License v3.0
8 stars 12 forks source link

Bug with the logical disks discovery #4

Closed idokaplan closed 7 years ago

idokaplan commented 7 years ago

Logical disk not must to be listed continuously (0,1,2...).

For example, Logical disk number 0 could be deleted, so the logical disk list starts with logical disk number 1, but #OBJ_ID value will be still 0 (but it should be number 1).

Is there a way to save "Logical device number" as a variable and not to use "ld_num"?

Please advise. Thanks! Ido

idokaplan commented 7 years ago

Yuriy? :(

YSmetana commented 7 years ago

You are right. I missed that out. Would you be so kind to pull the changes or redownload the script and check again?

Tnx.

idokaplan commented 7 years ago

Thanks – much appreciated. I'm not sure why, but #OBJ_ALIAS is missing in the last array - #OBJ_ID is 4 Do you know why?

python c:\temp\raid_arcconf_zabbix_lld.py ld -1 lld {"data": [{"{#OBJ_ALIAS}": "RAID1", "{#OBJ_TYPE}": "ld", "{#OBJ_ID}": 0}, {"{#OBJ_ALIAS}": "RAID1", "{#OBJ_TYPE}": "ld", "{#OBJ_ID}": 1}, {"{#OBJ_ALIAS}":"RAID1","{#OBJ_TYPE}":"ld", "{#OBJ_ID}": 2}, {"{#OBJ_TYPE}": "ld", "{#OBJ_ID}": 4}]}

idokaplan commented 7 years ago

Yuriy? :(