From 90e08625f9c0ea0e7a53fd68045af41984bf96bb Mon Sep 17 00:00:00 2001 From: cnst <> Date: Wed, 30 May 2007 07:49:37 +0000 Subject: [PATCH] Major update to sensorsd. Improves support for both 'smart' (those providing sensor status) and 'old-style' sensors. Due to re-design, the following improvements are now present and many flaws are now gone: == for smart sensors == * automatically monitor all sensors that provide status by themselves, with the possibility to ignore certain individual sensors or sensors of certain type (appropriate template for sensorsd.conf is included) * report actual sensor status as provided by the driver. Previously, WARN, CRITICAL and UNKNOWN statuses were considered the same, but now they are different and will be reported separately. This also improves readability of the log-files and consistency with sysctl output. * ability to ignore status provided by the driver with the 'istatus' keyword ("ignore automatic status" or "I set the status"), with the possibility to set your own settings for acceptable limits. Previously, it was not possible to set any kind of user limits for those sensors that had their own status facilities. == for old-style sensors == * previously, lm(4)-style fans that were flagged SENSOR_FINVALID during sensorsd startup were completely ignored, but now their invalid status is appropriately reported, and they are monitored again when they come out of their invalid mode * previously, a sensor that had an empty entry in the configuration file was reported to be "within limits", but now it will not be monitored at all (unless, of cause, it provides its own status) As a bonus, sensorsd syslog entries should now be shorter, and the majority of them will fit on one line on 80-column terminals. ok beck@, henning@, deraadt@ --- src/etc/sensorsd.conf | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/etc/sensorsd.conf b/src/etc/sensorsd.conf index 2fe1f255..e4eb6c36 100644 --- a/src/etc/sensorsd.conf +++ b/src/etc/sensorsd.conf @@ -1,4 +1,4 @@ -# $OpenBSD: sensorsd.conf,v 1.6 2007/05/29 06:04:41 jmc Exp $ +# $OpenBSD: sensorsd.conf,v 1.7 2007/05/30 07:49:37 cnst Exp $ # # Sample sensorsd.conf file. See sensorsd.conf(5) for details. @@ -19,14 +19,31 @@ # CPU fan (RPM) #hw.sensors.lm0.fan1:low=3000 -# Warn if indicator status changes, -# e.g. intrusion detection on ipmi. -#indicator: +# ignore certain indicators on ipmi(4) +#hw.sensors.ipmi0.indicator1:istatus # Warn if any temperature sensor is over 70 degC. # This entry will match only those temperature sensors # that don't have their own entry and don't keep state. #temp:high=70C -# RAID drive status changes -#drive: + +# By default, sensorsd(8) reports status changes of all sensors that +# keep their state. Uncomment the following lines if you want to +# suppress reports about status changes of specific sensor types. + +#temp:istatus +#fan:istatus +#volt:istatus +#acvolt:istatus +#resistance:istatus +#power:istatus +#current:istatus +#watthour:istatus +#amphour:istatus +#indicator:istatus +#raw:istatus +#percentage:istatus +#illuminance:istatus +#drive:istatus +#timedelta:istatus