定制化门限类传感器的轻微告警下门限值为0,严重告警上门限读值反转

1.我目前正在配置门限传感器的告警门限,在我配置轻微告警门限值后,在web界面中查询门限值为0,使用busctl查资源树也为0,我在定制化仓中的配置,
“ThresholdSensor_Bcu12v1”: {
“AssertMask”: 12933,
“DeassertMask”: 12933,
“ReadingMask”: 6939,
“UpperNoncritical”: 198,
“LowerNonCritical”: 198
}
原配置文件中的配置为:
“ThresholdSensor_Bcu12v1”: {
“AssertMask”: 516,
“DeassertMask”: 516,
“ReadingMask”: 4626,
“M”: 6,
“RBExp”: 224,
“UpperCritical”: 220,
“LowerCritical”: 180,
“PositiveHysteresis”: 4,
“NegativeHysteresis”: 4
}
我用bustcl查询资源树上的属性,发现LowerNonCritical为0
bmc.kepler.Object.Properties interface - - -
.GetAllWithContext method a{ss}s a{sv} -
.GetOptions method a{ss}ss a{ss} -
.GetPrivateProperties method a{ss} s -
.GetPropertiesByNames method a{ss}sas a{sv}a{sv} -
.GetPropertiesByOptions method a{ss}sa{ss} as -
.GetPropertyDetail method a{ss}ss s -
.GetWithContext method a{ss}ss v -
.SetWithContext method a{ss}ssv - -
.ClassName property s “ThresholdSensor” emits-change
.ObjectIdentifier property (ysss) 1 “1” “1” “010101” emits-change
.ObjectName property s “ThresholdSensor_Bcu12v1_010101” emits-change
bmc.kepler.Systems.ThresholdSensor interface - - -
.Capabilities property y 232 const
.EntityId property y 7 -
.EntityInstance property y 100 -
.LowerCritical property y 180 emits-change
.LowerNoncritical property y 0 emits-change
.LowerNonrecoverable property y 0 emits-change
.NegativeHysteresis property y 4 emits-change
.OriginalReading property d 0 -
.OwnerLun property y 0 emits-change
.PositiveHysteresis property y 4 emits-change
.Reading property y 205 emits-change
.ReadingMask property q 6939 const
.ReadingStatus property y 0 -
.SensorIdentifier property s “” const
.SensorName property s “BCU1 VCC_12V0_1” emits-change
.SensorNumber property y 86 -
.SensorType property y 2 const
.UpperCritical property y 220 emits-change
.UpperNoncritical property y 198 emits-change
.UpperNonrecoverable property y 0 emits-change
bmc.kepler.Systems.ThresholdSensorDisplay interface - - -
.AssertStatus property q 128 -
.Health property s “Minor” emits-change
.LowerCriticalDisplay property s “10.800” -
.LowerNoncriticalDisplay property s “0.000” -
.LowerNonrecoverableDisplay property s “0.000” -
.NegativeHysteresisDisplay property s “0.240” -
.PositiveHysteresisDisplay property s “0.240” -
.ReadingDisplay property s “12.300” writable
.Status property s “Enabled” -
.UnitDisplay property s “Volts” const
.UpperCriticalDisplay property s “13.200” -
.UpperNoncriticalDisplay property s “11.880” -
.UpperNonrecoverableDisplay property s “0.000” -
麻烦问下还需要配置什么其他属性么

2.也是在配置传感器中UpperCritical属性我定制成130后,web界面读值为-126,为什么会进行反转呢,有什么方法可以避免呢,感谢
“ThresholdSensor_Cpu1NaDvddTemp”: {
“AssertMask”: 640,
“DeassertMask”: 12928,
“ReadingMask”: 6168,
“UpperNoncritical”: 125,
“UpperCritical”: 130
}

2 个赞
  1. 配置了csr属性实际资源协作接口查询结果不符合预期
    这个单纯csr属性配置问题,如本问题误将LowerNoncritical配置为LowerNonCritical,以后此类问题仔细检查配置是否有问题即可
  2. 此为温度传感器,温度是有负数值的,因此一般温度传感器都会将Unit属性的该部分配置为10b表征该传感器值为有符号数。

    若有符号数,那么传感器值(包括读值和门限值)由原始值转换为最终值时都会做转换,该传感器配置的值范围应该是为-128 ~ 127,因此配置为130时,最终值为-126。
    避免方式为更新传感器的表达式参数配置(M、RBExp等),这个需要了解传感器的计算公式,详细参考IPMI标准规范的36.3章节。针对您的单点配置问题,请提供更详细的原配置,以便进行针对性的指导。
1 个赞

好的,感谢,我去跟配置这个门限值的人沟通一下