Hello. I have some problems with the tokens used in sensorsd.conf.
>From /etc/sensorsd.conf (it's set to 51C for testing purposes): hw.sensors.km0.temp0:high=51C:command=/etc/sensorsd/cpu-temp.sh %l %x %t %2 %3 %4 hw.sensors.acpitz0.temp0:high=75C:command=/etc/sensorsd/cpu-temp.sh %l %x %t %2 %3 %4 And /etc/sensorsd/cpu-temp.sh: #!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin # Adapted from http://blas.phemo.us/2006/11/12/setting-up-system-vitals-monitoring-on-openbsd # Posted by Tres 12/11/2006 at 01h41 notify="root@`hostname`" sensor_limits=$1 sensor_xname=$2 sensor_type=$3 sensor_value=$4 sensor_low_limit=$5 sensor_high_limit=$6 mailNotification() { message=" This is an automatic message sent because sensorsd found the system temperature is high. The system will be shut down immedietly. Sensor xname: $sensor_xname Sensor type: $sensor_type Sensor value: $sensor_value Sensor low limit: $sensor_low_limit Sensor high limit: $sensor_high_limit " echo "$message" | mail -s "System shut down due to critical CPU temperature" $notify } if [ $sensor_limits = "above" ] then mailNotification fi And the output from mail: Sensor xname: km0 Sensor type: temp Sensor value: 56.50 Sensor low limit: degC Sensor high limit: 9223372036581.62 And so the problem is the sensor low and high limits are wrong. Everything else works fine. Just to complicate things, if I use: hw.sensors.km0.temp0:high=51C:command=/etc/sensorsd/cpu-temp.sh %l %x %t %2 %4 %3 ... reversing the positions of the %3 and %4, then $sensor_low_limit (%3) reports "51.00", which is the expected value of %4, and $sensor_high_limit (%4) remains "degC". I have no idea what "9223372036581.62" is. Thanks