[ZBX-13470] IPMI: allow searching sensors by full name as well as id Created: 2018 Feb 14  Updated: 2024 Apr 10  Resolved: 2018 Mar 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.4.6
Fix Version/s: 4.0.0alpha5, 4.0 (plan)

Type: Problem report Priority: Major
Reporter: Alexey Asemov Assignee: Michael Veksler
Resolution: Fixed Votes: 0
Labels: IPMI, patch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, OpenIPMI


Attachments: Text File zabbix-ipmi-fullname.patch    
Team: Team C
Sprint: Sprint 28, Sprint 29, Sprint 30
Story Points: 1

 Description   

Some BMC cards provide multiple sensors belonging to different entities but with the same ID. Only full name differs for these sensors. A good example is Dell iDRAC 6 card. Zabbix sensor debug output looks like the following:

7395:20180213:131244.993 Added sensor: host:'10.0.4.74:623' id_type:0 id_sz:5 id:'Temp' reading_type:0x1 ('threshold') type:0x1 ('temperature') full_name:'1(10.1).Temp'
7395:20180213:131244.994 Added sensor: host:'10.0.4.74:623' id_type:0 id_sz:5 id:'Temp' reading_type:0x1 ('threshold') type:0x1 ('temperature') full_name:'1(3.2).Temp'
7395:20180213:131244.995 Added sensor: host:'10.0.4.74:623' id_type:0 id_sz:5 id:'Temp' reading_type:0x1 ('threshold') type:0x1 ('temperature') full_name:'1(3.1).Temp'

Here you can see three 'Temp' readings which cannot be distinguished one from other easily.

Proposed and included patch stores sensors full name in the sensors list and adds a search function that finds sensor by full name, allowing to use full_name field values as IPMI sensor IDs.



 Comments   
Comment by Alexey Asemov [ 2018 Feb 14 ]

Worth mentioning that OpenIPMI library prefixes full name with ever changing domain name. This patch does remove one so full names are consistent.

Generated at Fri Apr 26 16:13:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.