tree: 196f1d80d2c21b0d0afcb5f41857d3fa27013cd5 [path history] [tgz]
  1. service_files/
  2. alarm_timestamps.hpp
  3. main.cpp
  4. Makefile.am
  5. README.md
  6. shutdown_alarm_monitor.cpp
  7. shutdown_alarm_monitor.hpp
  8. threshold_alarm_logger.cpp
  9. threshold_alarm_logger.hpp
  10. types.hpp
sensor-monitor/README.md

Sensor Monitor

This application can take action based on sensor thresholds and values.

Available Monitors

ShutdownAlarmMonitor

This monitor will watch all instances of the xyz.openbmc_project.Sensor.Threshold.HardShutdown and xyz.openbmc_project.Sensor.Threshold.SoftShutdown D-Bus interfaces for the alarm properties to trip. When this happens, a configurable timer is started at the end of which a power off is executed if the alarms haven't reset by that time. Event logs will also be created.

The configuration options SHUTDOWN_ALARM_HARD_SHUTDOWN_DELAY_MS and SHUTDOWN_ALARM_SOFT_SHUTDOWN_DELAY_MS can be used to change the delays.

ThresholdAlarmLogger

This monitor will watch the alarm properties on the following threshold D-Bus interfaces:

  • xyz.openbmc_project.Sensor.Threshold.Warning
  • xyz.openbmc_project.Sensor.Threshold.Critical
  • xyz.openbmc_project.Sensor.Threshold.PerformanceLoss

When the alarm properties are asserted, event logs are created. When they are deasserted, informational event logs are created.