Skip to contentSkip to conversation

sensor reaction

DISCUSSION Jeff9 Chan(陳松儉_ASRockRack) 2 participants 2 messages Feb 10, 2025

lore
Share & tools
lore
#0 lore raw

Hi all,
With entity manager, dbus-sensors, we can have event log for sensor threshold, how to add more action for it? For example we should shutdown host if a leak sensor reached critical state, can we start another service according to sensor status? phosphor-dbus-monitor? Any better solution?

best regards

Jeff Chan
ASRock Inc.
Tel: +886-2-55599600 ext.38670

#1 lore raw
Quoted 7 lines · On 2/10/2025 1:25 AM, Jeff9 Chan(陳松儉_ASRockRack) wrote:

Hi all, With entity manager, dbus-sensors, we can have event log for sensor threshold, how to add more action for it? For example we should shutdown host if a leak sensor reached critical state, can we start another service according to sensor

Hi all,

        With entity manager, dbus-sensors, we can have event log for sensor threshold, how to add more action for it? For example we should shutdown host if a leak sensor reached critical state, can we start another service according to sensor status? phosphor-dbus-monitor? Any better solution?

Hi,

https://github.com/openbmc/phosphor-fan-presence/tree/master/docs/sensor-monitor
will do shutdowns by looking for assertions on the SoftShutdown or HardShutdown threshold interfaces.

You're welcome to add anything else there.  In the past I've used phosphor-dbus-monitor to do things like that, though I've found it can be tough to debug when it doesn't work.

Quoted 10 lines

best regards

**

*Jeff Chan*

*ASRock Inc. *

*Tel: +886-2-55599600 ext.38670*