sensor reaction
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
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*