Re: sensorsd and UPS monitoring - no event triggered when ACPresent transitions from On to Off

2025-04-05 Thread Jon Higgs
onfiguration is very similar to your own and worked a few months ago when I set it up. /etc/sensorsd.conf: hw.sensors.upd0.indicator1:command=/etc/sensorsd/ups-replacing %2 hw.sensors.upd0.indicator4:command=/etc/sensorsd/ups-acpresent %2 hw.sensors.upd0.indicator5:command=/etc/sensorsd/ups-overlo

sensorsd and UPS monitoring - no event triggered when ACPresent transitions from On to Off

2025-04-04 Thread Steve Williams
Hi, I was originally investigating apcupsd to monitor my UPS. However, it's not working "out of the box", requiring a custom kernel / or disabling my usb keyboard (which I use). So I thought I would investigate sensorsd framework to see what it could do. It's working t

Re: sensorsd and UPS monitoring - no event triggered when ACPresent transitions from On to Off

2025-03-26 Thread Steve Williams
Steve, It's because sensord polls. I've decreased the check interval from 20 to 5, but it will still miss short outages. See sensorsd(8). An SNMP trap is probably what you really want, but your UPS will need to support that. I hope that helps. Cheers, Jon

Re: sensorsd and UPS monitoring - no event triggered when ACPresent transitions from On to Off

2025-03-26 Thread Jon Higgs
Hi Steve, It's because sensord polls. I've decreased the check interval from 20 to 5, but it will still miss short outages. See sensorsd(8). An SNMP trap is probably what you really want, but your UPS will need to support that. I hope that helps. Cheers, Jon

Re: Sensorsd not executing commands

2019-07-25 Thread cheddar-cheeze
> I am working on setting up sensorsd so that i can automatically turn on > > my display when docking my laptop, but on doing so sensorsd does not > > execute my shell script. In syslogd sensord shows the sensors being > > tripped so i am confused on why the shell script wil

Re: Sensorsd not executing commands

2019-07-25 Thread Stuart Henderson
On 2019-07-25, cheddar-cheeze wrote: > I am working on setting up sensorsd so that i can automatically turn on > my display when docking my laptop, but on doing so sensorsd does not > execute my shell script. In syslogd sensord shows the sensors being > tripped so i am confused on w

Sensorsd not executing commands

2019-07-25 Thread cheddar-cheeze
I am working on setting up sensorsd so that i can automatically turn on my display when docking my laptop, but on doing so sensorsd does not execute my shell script. In syslogd sensord shows the sensors being tripped so i am confused on why the shell script will no execute. #/etc/sensorsd.conf

Re: sensorsd and acpiac0.indicator0?

2017-11-30 Thread Job Snijders
; > welcome. This is my config: /etc/sensorsd.conf: > > > > acpiac0.indicator0:command=/etc/sensorsd/ac_power %2 > > I am using: > > hw.sensors.acpiac0.indicator0:low=1:command=/etc/sensorsd/acpiac %2 %3 %4 > > The "%3 %4" is just useful for debuggi

Re: sensorsd and acpiac0.indicator0?

2017-11-28 Thread Ingo Schwarze
acpiac0.indicator0:command=/etc/sensorsd/ac_power %2 I am using: hw.sensors.acpiac0.indicator0:low=1:command=/etc/sensorsd/acpiac %2 %3 %4 The "%3 %4" is just useful for debugging, you don't need it. But are you sure you can omit "hw.sensors."? The sensorsd.conf(5)

sensorsd and acpiac0.indicator0?

2017-11-27 Thread Job Snijders
Hi all, I'm tweaking how my laptop behaves depending on whether it is pluggde into AC or not. Any hints or alternative suggestions are welcome. This is my config: /etc/sensorsd.conf: acpiac0.indicator0:command=/etc/sensorsd/ac_power %2 and this is the script: #!/bin/sh ec

Re: sensorsd, upd, and state changes

2016-02-26 Thread Constantine Aleksandrovich Murenin
een On/Off with a user limit of `low=0:high=0` should definitely be triggered as reported by the prior users (http://marc.info/?l=openbsd-misc&m=144526769005460&w=2). http://BXR.SU/OpenBSD/usr.sbin/sensorsd/sensorsd.c#check_sdlim 370if (sensor.flags & SENSOR_FINVALID) 371

Re: sensorsd, upd, and state changes

2016-02-26 Thread lilit-aibolit
I've tried to change low=1:high=2 to low=0:high=0 but I haven't got *Off* current state for this sensor from sensord: - hw.sensors.upd0.indicator2=On (ACPresent), OK Even for AC disconnected sensord repors that ACPresent is *On*, however when I look for - sysctl hw.sensors.upd0.indicator2 it r

Re: sensorsd, upd, and state changes

2016-02-25 Thread lilit-aibolit
25 12:59:27 gw sensorsd[2261]: upd0.percent1: 0.00%, UNKNOWN Feb 25 13:45:43 gw sensorsd[13167]: upd0.percent1: 0.00%, UNKNOWN

Re: APC UPS & sensorsd - how?

2016-02-24 Thread Maxim Khitrov
On Wed, Feb 24, 2016 at 3:38 AM, lilit-aibolit wrote: > On 03/22/2015 05:44 PM, T. Ribbrock wrote: >> >> Then, I re-applied power, but that, too, was never flagged by sensorsd. >> For some reason, it looks like sensorsd only ever detects a status change >> (for these

Re: APC UPS & sensorsd - how?

2016-02-24 Thread lilit-aibolit
On 03/22/2015 05:44 PM, T. Ribbrock wrote: Then, I re-applied power, but that, too, was never flagged by sensorsd. For some reason, it looks like sensorsd only ever detects a status change (for these rules) when it gets started - but not afterwards. Regards, Thomas Have you succeed with

Re: sensorsd, upd, and state changes

2015-10-19 Thread Constantine Aleksandrovich Murenin
On 19 October 2015 at 11:31, David Higgs wrote: > On Mon, Oct 19, 2015 at 11:11 AM, Maxim Khitrov wrote: >> Also, upd always sets sensor status to "OK," so sensorsd never >> triggers commands for status changes; we have to use low/high limits >> until this is fixe

Re: sensorsd, upd, and state changes

2015-10-19 Thread Maxim Khitrov
t; hasn't yet been taught how to map specific indicator values to OK / >> > WARN / CRITICAL status. Currently any value successfully read is >> > marked OK. >> > >> > I'm working with tech@ and slowly writing diffs to improve these things. >> > >

Re: sensorsd, upd, and state changes

2015-10-19 Thread David Higgs
perating parameters (and the output of %l). The upd(4) code > > hasn't yet been taught how to map specific indicator values to OK / > > WARN / CRITICAL status. Currently any value successfully read is > > marked OK. > > > > I'm working with tech@ and slowly w

Re: sensorsd, upd, and state changes

2015-10-19 Thread Maxim Khitrov
lly read is > marked OK. > > I'm working with tech@ and slowly writing diffs to improve these things. > > --david Resurrecting an old thread since I just ran into the same problem in 5.8. To summarize, upd(4) exposes some SENSOR_INDICATOR-type sensors for attached UPSes, such as AC

Re: APC UPS & sensorsd - how?

2015-03-22 Thread T. Ribbrock
On Sun, Mar 22, 2015 at 03:26:30PM +, Stuart Henderson wrote: > On 2015-03-22, T. Ribbrock wrote: > > What I cannot seem to get to work is that sensorsd *reacts* to these > > changes. Based on the examples in the thread mentioned above, I've > > created a small sc

Re: APC UPS & sensorsd - how?

2015-03-22 Thread Stuart Henderson
On 2015-03-22, T. Ribbrock wrote: > What I cannot seem to get to work is that sensorsd *reacts* to these > changes. Based on the examples in the thread mentioned above, I've > created a small script "/etc/sensorsd/upd.sh" that looks as follows: > > # ca

APC UPS & sensorsd - how?

2015-03-22 Thread T. Ribbrock
Hi all, one of the remaining "kinks in the cable" that still need working out after me updating to OpenBSD 5.6 is the fact that I can no longer use apcupsd to monitor the "APC Back-UPS CS 500" that is connected to the server via USB. From what I have gathered so far, one

Re: sensorsd, upd, and state changes

2014-12-08 Thread trondd
On Mon, Dec 8, 2014 at 3:45 PM, David Higgs wrote: > I'm working with tech@ and slowly writing diffs to improve these things. > > --david > I saw that. Thanks! Tim.

Re: sensorsd, upd, and state changes

2014-12-08 Thread David Higgs
On Mon, Dec 8, 2014 at 3:37 PM, trondd wrote: > On Mon, Dec 8, 2014 at 3:23 PM, trondd wrote: >> On Mon, Dec 8, 2014 at 11:47 AM, David Higgs wrote: >>> >>> >>> sysctl(8) will display Off if the value is zero, and On for nonzero. >>> So, using the "closed interval" rule above, you should use "hi

Re: sensorsd, upd, and state changes

2014-12-08 Thread trondd
On Mon, Dec 8, 2014 at 3:23 PM, trondd wrote: > On Mon, Dec 8, 2014 at 11:47 AM, David Higgs wrote: > >> >> sysctl(8) will display Off if the value is zero, and On for nonzero. >> So, using the "closed interval" rule above, you should use "high=0" >> for indicators that you consider in "good" st

Re: sensorsd, upd, and state changes

2014-12-08 Thread trondd
On Mon, Dec 8, 2014 at 11:47 AM, David Higgs wrote: > > sysctl(8) will display Off if the value is zero, and On for nonzero. > So, using the "closed interval" rule above, you should use "high=0" > for indicators that you consider in "good" state when Off (i.e. > ShutdownImminent), and "low=1" for

Re: sensorsd, upd, and state changes

2014-12-08 Thread David Higgs
quot;Off is below On" > - Although I use "low=1:high=2", I get "On" for %3 (low limit) as well > as for %4 (high limit) > - Reading sensorsd.conf(5): > "If the limits are crossed or if the status provided by the driver > changes, sensorsd(8)'s al

Re: sensorsd, upd, and state changes

2014-11-30 Thread Marcus MERIGHI
ot;On" for %3 (low limit) as well as for %4 (high limit) - Reading sensorsd.conf(5): "If the limits are crossed or if the status provided by the driver changes, sensorsd(8)'s alert functionality is triggered and a command, if specified, is executed" If limits are crosse

Re: sensorsd, upd, and state changes

2014-11-30 Thread Marcus MERIGHI
hig...@gmail.com (David Higgs), 2014.11.28 (Fri) 15:43 (CET): > On Fri, Nov 28, 2014 at 2:45 AM, Marcus MERIGHI wrote: > > What I have now: > > > > $ getcap -a -f /etc/sensorsd.conf > > hw.sensors.upd0.indicator0:low=1:high=2:command=/etc/sensorsd/upd.sh \

Re: sensorsd, upd, and state changes

2014-11-28 Thread Joe Gidi
On Fri, November 28, 2014 9:43 am, David Higgs wrote: > On Fri, Nov 28, 2014 at 2:45 AM, Marcus MERIGHI > wrote: >> What I have now: >> >> $ getcap -a -f /etc/sensorsd.conf >> hw.sensors.upd0.indicator0:low=1:high=2:command=/etc/sensorsd/upd.sh \ >> %l %n

Re: sensorsd, upd, and state changes

2014-11-28 Thread Joe Gidi
On Fri, November 28, 2014 2:45 am, Marcus MERIGHI wrote: > j...@entropicblur.com (Joe Gidi), 2014.11.27 (Thu) 16:41 (CET): >> I just spent some more time poking at this and I'm still unable to get > > So did I... > >> sensorsd to recognize upd state changes. T

Re: sensorsd, upd, and state changes

2014-11-28 Thread Steven Surdock
nal Message- > From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of > David Higgs > Sent: Friday, November 28, 2014 9:43 AM > To: misc@openbsd.org > Subject: Re: sensorsd, upd, and state changes > > Do you mind saying what type of USB you have, and wh

Re: sensorsd, upd, and state changes

2014-11-28 Thread David Higgs
On Fri, Nov 28, 2014 at 2:45 AM, Marcus MERIGHI wrote: > What I have now: > > $ getcap -a -f /etc/sensorsd.conf > hw.sensors.upd0.indicator0:low=1:high=2:command=/etc/sensorsd/upd.sh \ > %l %n %s %x %t %2 %3 %4 > hw.sensors.upd0.indicator1:low=1:high=2:command=/etc/sensorsd/upd.

Re: sensorsd, upd, and state changes

2014-11-27 Thread Marcus MERIGHI
j...@entropicblur.com (Joe Gidi), 2014.11.27 (Thu) 16:41 (CET): > I just spent some more time poking at this and I'm still unable to get So did I... > sensorsd to recognize upd state changes. This is a bit of a frustrating > regression from my point of view, since I can no long

Re: sensorsd, upd, and state changes

2014-11-27 Thread Joe Gidi
I just spent some more time poking at this and I'm still unable to get sensorsd to recognize upd state changes. This is a bit of a frustrating regression from my point of view, since I can no longer use apcupsd unless I disable uhidev in the kernel. Does anyone have a working ex

Re: sensorsd, upd, and state changes

2014-11-23 Thread Joe Gidi
ibutes set in sensorsd.conf per the Undeadly example. >> >> Nov 23 10:58:08 microserver sensorsd[6250]: upd0.indicator2: exceeds >> limits: On is below On >> Nov 23 10:59:54 microserver sensorsd[12047]: upd0.indicator2: exceeds >> limits: On is below On >> No

Re: sensorsd, upd, and state changes

2014-11-23 Thread Marcus MERIGHI
j...@entropicblur.com (Joe Gidi), 2014.11.23 (Sun) 17:19 (CET): > Just after I sent this, I happened to notice these lines in > /var/log/messages. These came from the tests with the "low=1:high=2" > attributes set in sensorsd.conf per the Undeadly example. > > Nov 23 10:5

Re: sensorsd, upd, and state changes

2014-11-23 Thread Joe Gidi
Just after I sent this, I happened to notice these lines in /var/log/messages. These came from the tests with the "low=1:high=2" attributes set in sensorsd.conf per the Undeadly example. Nov 23 10:58:08 microserver sensorsd[6250]: upd0.indicator2: exceeds limits: On is below On Nov 2

Re: sensorsd, upd, and state changes

2014-11-23 Thread Joe Gidi
Hi Marcus, Thanks for the reply. Unfortunately, the "low=1:high=2" doesn't seem to work for indicator2. When I start sensorsd I see an initial event logged as the status goes from undefined to OK, but no further events as I unplug/plug the UPS. I tried monitoring indicator0 as

Re: sensorsd, upd, and state changes

2014-11-23 Thread Marcus MERIGHI
city), OK > hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK > > So far, so good. Now, I'd like to configure sensorsd to monitor the device > and invoke a script when the power goes out. I have this line in > sensorsd.conf: > > hw.sensors.upd0.indicator2:comman

sensorsd, upd, and state changes

2014-11-22 Thread Joe Gidi
(ACPresent), OK hw.sensors.upd0.indicator3=On (BatteryPresent), OK hw.sensors.upd0.indicator4=Off (ShutdownImminent), OK hw.sensors.upd0.percent0=79.00% (RemainingCapacity), OK hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK So far, so good. Now, I'd like to configure sensorsd to monitor the

Re: Shutdown on low battery with sensorsd

2014-01-19 Thread Sergey Bronnikov
Delay can be due to a limitations of sensorsd(8): CAVEATS Certain sensors may flip status from time to time. To guard against false reports, sensorsd implements a state dumping mechanism. However, this inevitably introduces an additional delay in status reporting and command

Re: Shutdown on low battery with sensorsd

2014-01-19 Thread Laurence Rochfort
wrote: > Hello, > > I'm trying to use sensorsd to shutdown my Thinkpad T410 laptop when > the battery reaches the "low capacity" level. However, when I add the > line shown below to sensorsd.conf the laptop always shutdown within a > couple of minutes of booting regardles

Shutdown on low battery with sensorsd

2014-01-19 Thread Laurence Rochfort
Hello, I'm trying to use sensorsd to shutdown my Thinkpad T410 laptop when the battery reaches the "low capacity" level. However, when I add the line shown below to sensorsd.conf the laptop always shutdown within a couple of minutes of booting regardless of the current battery leve

Temperature script for sensorsd(8)

2012-06-19 Thread Robert Connolly
Hello. I'm not a proficient shell script writer, so I would like advice and criticism for my sensorsd(8) temperature script. In particular, I would like the "above" email to root to include helpful information that would help explain why the temperature went to critical. Anything

Re: acpiac(4) manual page and sensorsd(8)

2012-06-18 Thread Jason McIntyre
On Sat, Jun 16, 2012 at 10:24:02PM -0700, Robert Connolly wrote: > Hello. > > The acpiac(4) man page mentions that the AC power source status can be > monitored by sensorsd(8), but sensorsd(8) does not monitor this sensor as > far as I know. apmd(8) does however. > > Could t

acpiac(4) manual page and sensorsd(8)

2012-06-16 Thread Robert Connolly
Hello. The acpiac(4) man page mentions that the AC power source status can be monitored by sensorsd(8), but sensorsd(8) does not monitor this sensor as far as I know. apmd(8) does however. Could the acpiac(4) man page be reworded to reflect this? Thanks

Re: sensorsd config tokens

2012-06-08 Thread Stuart Henderson
On 2012-06-08, Robert Connolly wrote: > 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 Looks like a shell problem not a sensorsd one; I guess you probably want some " ar

sensorsd config tokens

2012-06-08 Thread Robert Connolly
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

Re: 4.8 sensorsd blind spot, failure to trigger command on any state changes after initialisation

2010-11-14 Thread mark hellewell
I think I was expecting the wrong thing from sensorsd -- thanks for shedding light on what's going on. I'll use a shell script command on watthour3 to check the other vals through sysctl directly, as you suggest. I wish that hw.sensors.acpibat0.raw0 changed state from OK to something else

Re: 4.8 sensorsd blind spot, failure to trigger command on any state changes after initialisation

2010-11-13 Thread mark hellewell
On 14 November 2010 13:03, mark hellewell wrote: > Hi, > > I'm configuring sensorsd to conditionally shutdown -- based on Wh of charge > left in laptop battery and whether or not the computer is plugged in -- and > it seems that sensorsd might have a bit of a blind s

4.8 sensorsd blind spot, failure to trigger command on any state changes after initialisation

2010-11-13 Thread mark hellewell
Hi, I'm configuring sensorsd to conditionally shutdown -- based on Wh of charge left in laptop battery and whether or not the computer is plugged in -- and it seems that sensorsd might have a bit of a blind spot when it comes my available sensors. After reporting the initial states, no

Re: Bad behavior of sensorsd on laptop

2010-03-06 Thread Constantine A. Murenin
On 6 March 2010 08:26, Tomas Bodzar wrote: > Hi all, > > I set sensorsd and sensorsd.conf this way : > > # $OpenBSD: sensorsd.conf,v 1.8 2007/08/14 19:02:02 cnst Exp $ > > # > # Sample sensorsd.conf file. See sensorsd.conf(5) for details. > # > > # +5 voltage (v

Re: Bad behavior of sensorsd on laptop

2010-03-06 Thread Tomas Bodzar
Thx. I will prepare some more complicated "creatures" :-) On Sat, Mar 6, 2010 at 5:09 PM, Joachim Schipper wrote: > On Sat, Mar 06, 2010 at 02:26:28PM +0100, Tomas Bodzar wrote: >> Hi all, >> >> I set sensorsd and sensorsd.conf this way : >> >> # $OpenB

Re: Bad behavior of sensorsd on laptop

2010-03-06 Thread Joachim Schipper
On Sat, Mar 06, 2010 at 02:26:28PM +0100, Tomas Bodzar wrote: > Hi all, > > I set sensorsd and sensorsd.conf this way : > > # $OpenBSD: sensorsd.conf,v 1.8 2007/08/14 19:02:02 cnst Exp $ > # Monitor laptop battery for remaining capacity > hw.sensors.acpibat0.watthour3:lo

Bad behavior of sensorsd on laptop

2010-03-06 Thread Tomas Bodzar
Hi all, I set sensorsd and sensorsd.conf this way : # $OpenBSD: sensorsd.conf,v 1.8 2007/08/14 19:02:02 cnst Exp $ # # Sample sensorsd.conf file. See sensorsd.conf(5) for details. # # +5 voltage (volts) #hw.sensors.lm0.volt3:low=4.8V:high=5.2V # +12 voltage (volts) #hw.sensors.lm0.volt4:low

Re: Sensorsd

2010-01-06 Thread Morris, Roy
-Original Message- From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Alexander Polakov Sent: Wednesday, January 06, 2010 4:11 PM To: misc@openbsd.org Subject: Re: Sensorsd 2010/1/6, Morris, Roy : > Ok, figured that might be what it was! Thanks. Too bad

Re: Sensorsd

2010-01-06 Thread Alexander Polakov
2010/1/6, Morris, Roy : > Ok, figured that might be what it was! Thanks. Too bad it > would be nice to know if the disk count changed ie. someone > plugged in a USB key. You can use hotplugd(8) for that.

Re: Sensorsd

2010-01-06 Thread Morris, Roy
-Original Message- From: Theo de Raadt [mailto:dera...@cvs.openbsd.org] Sent: Wednesday, January 06, 2010 3:45 PM To: Morris, Roy Cc: misc@openbsd.org Subject: Re: Sensorsd > I decided to use sensorsd for the first time and am a little confused as > to why it thinks I only have

Re: Sensorsd

2010-01-06 Thread Theo de Raadt
> I decided to use sensorsd for the first time and am a little confused as > to why it thinks I only have two (2) sensors when I have asked it to > watch > four (4) items. Any ideas would be great. > > The output from sysctl hw is the following > hw.disknames=sd0

Sensorsd

2010-01-06 Thread Morris, Roy
I decided to use sensorsd for the first time and am a little confused as to why it thinks I only have two (2) sensors when I have asked it to watch four (4) items. Any ideas would be great. The output from sysctl hw is the following hw.disknames=sd0,cd0 hw.diskcount=2 hw.sensors.cpu0.temp0=34.00

Re: sensorsd strange tokens values

2009-07-28 Thread Federico Giannici
Constantine A. Murenin wrote: On 27/07/2009, Federico Giannici wrote: I'm using for the first time sensorsd to monitor RAID controller status and motherboard temperature. A script of mine is called that sends me an email. System is OpenBSD 4.4 amd64. The problem is the value of the %2 %

Re: sensorsd strange tokens values

2009-07-27 Thread Constantine A. Murenin
On 27/07/2009, Federico Giannici wrote: > I'm using for the first time sensorsd to monitor RAID controller status and > motherboard temperature. A script of mine is called that sends me an email. > System is OpenBSD 4.4 amd64. > > The problem is the value of the %2 %3 and

sensorsd strange tokens values

2009-07-27 Thread Federico Giannici
I'm using for the first time sensorsd to monitor RAID controller status and motherboard temperature. A script of mine is called that sends me an email. System is OpenBSD 4.4 amd64. The problem is the value of the %2 %3 and %4 tokens passed as arguments to the command. I thought that

Sensorsd behavior

2009-05-22 Thread João Salvatti
Hi Misc, I put the following line in my sensorsd.conf file: hw.sensors.acpibat0.raw0:command=/etc/sensorsd/bat_status %2 When the battery's laptop status change, bat_status program is executed using param %2 (sensor's value can be: 0 when battery is idle, 1 when battery is dischar

Re: sensorsd says the sensor is within limit, but it's not...

2007-07-05 Thread Per-Olov Sjöholm
r words, for those sensors that provide the status themselves, > > > the keywords "high" and "low" in sensorsd.conf have no effect. This > > > limitation was removed at c2k7 [1], and the newest sensorsd in OpenBSD > > > 4.1-current allows you to s

Re: sensorsd says the sensor is within limit, but it's not...

2007-07-04 Thread Constantine A. Murenin
> limitation was removed at c2k7 [1], and the newest sensorsd in OpenBSD > 4.1-current allows you to set your own limits for any sensor, and > ignore the status that the sensor device itself provides. > > So if you need this functionality, you may wish to upgrade to OpenBSD > 4.1-current

Re: sensorsd says the sensor is within limit, but it's not...

2007-07-04 Thread Per-Olov Sjöholm
On Wednesdayen den 4 July 2007 04.17.30 you wrote: > On 03/07/07, Per-Olov Sjvholm <[EMAIL PROTECTED]> wrote: > > Hi Misc > > > > > > I am probably missing something, but what.. > > > > > > sensorsd says in the syslog that the sensor is "

Re: sensorsd says the sensor is within limit, but it's not...

2007-07-03 Thread Constantine A. Murenin
On 03/07/07, Per-Olov Sjvholm <[EMAIL PROTECTED]> wrote: Hi Misc I am probably missing something, but what.. sensorsd says in the syslog that the sensor is "within limits" even though a "sysctl -a|grep sensor" shows that it is not. Are there any known bugs? I

sensorsd says the sensor is within limit, but it's not...

2007-07-03 Thread Per-Olov Sjöholm
Hi Misc I am probably missing something, but what.. sensorsd says in the syslog that the sensor is "within limits" even though a "sysctl -a|grep sensor" shows that it is not. Are there any known bugs? I have checked the list and cannot find anything related to this... I

Re: sensorsd shutting computer down

2007-05-27 Thread Constantine A. Murenin
On 27/05/07, Steven <[EMAIL PROTECTED]> wrote: Hello, Last update (~2 weeks ago) and the one from last night result in sensorsd shutting down my PC within 2 to 4 minutes after booting up. Now /etc/sensorsd.conf has an entry in it that I added to safely shut the computer down if the CPU ge

sensorsd shutting computer down

2007-05-27 Thread Steven
Hello, Last update (~2 weeks ago) and the one from last night result in sensorsd shutting down my PC within 2 to 4 minutes after booting up. Now /etc/sensorsd.conf has an entry in it that I added to safely shut the computer down if the CPU gets too hot. The only problem is that sensorsd keeps

Re: sensorsd

2007-03-24 Thread djgoku
On Mar 24, 2007, at 5:27 PM, Constantine A. Murenin wrote: You do not have a command specified on hw.sensors.4, so you should not be expecting any emails to be sent when this sensor undergoes transitions from one state to another. I think the syntax of sensorsd.conf is rather obvious here -- yo

Re: sensorsd

2007-03-24 Thread Constantine A. Murenin
t; claim you are monitoring in sensorsd.conf (hw.sensors.3 in conf, > hw.sensors.4 on log). Sorry I didn't post the whole sensorsd.conf hw.sensors.3:low=4.8V:high=5.2V:command=/bin/sh /etc/sensorsd/notify # +12 voltage (volts) hw.sensors.4:low=11.5V:high=12.55V You do not have a command specif

Re: sensorsd

2007-03-24 Thread djgoku
log). Sorry I didn't post the whole sensorsd.conf hw.sensors.3:low=4.8V:high=5.2V:command=/bin/sh /etc/sensorsd/notify # +12 voltage (volts) hw.sensors.4:low=11.5V:high=12.55V # Chipset temperature (degrees Celsius) hw.sensors.7:high=35C hw.sensors.9:low=3000 hw.sensors.10:low=3000

Re: sensorsd

2007-03-24 Thread Constantine A. Murenin
On 24/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: In /etc/sensorsd.conf hw.sensors.3:low=4.8V:high=5.2V:command=/bin/sh /etc/sensorsd/notify In /etc/sensorsd/notify #!/bin/sh /usr/bin/tail -n 25 /var/log/daemon | /usr/bin/grep sensorsd | /usr/ bin/grep exceed > /etc/senso

sensorsd

2007-03-24 Thread djgoku
In /etc/sensorsd.conf hw.sensors.3:low=4.8V:high=5.2V:command=/bin/sh /etc/sensorsd/notify In /etc/sensorsd/notify #!/bin/sh /usr/bin/tail -n 25 /var/log/daemon | /usr/bin/grep sensorsd | /usr/ bin/grep exceed > /etc/sensorsd/`date +%m%d%y_%H%M`.log /usr/bin/mail -s "Hardware Sensors

Re: -current sensorsd doesn't work for me

2007-01-13 Thread andrew fresh
, the limits don't seems to work: > > > >$ sysctl hw.sensors.acpibat0.volt1 > >hw.sensors.acpibat0.volt1=7.96 VDC (current voltage), OK > >$ tail -3 /etc/sensorsd.conf > >hw.sensors.acpibat0.volt1:low=8V:high=9V no matter what I set, sensorsd always says "within

Re: -current sensorsd doesn't work for me

2007-01-13 Thread Constantine A. Murenin
not require boundary values specified (that otherwise will be ignored) and simply trigger on status transitions. However, volt0 and volt1 on acpibat never change status from an "OK", so they will never be triggered in sensorsd, which may or may not be desirable behaviour. The followi

-current sensorsd doesn't work for me

2007-01-12 Thread andrew fresh
s.acpibat0.volt1=7.96 VDC (current voltage), OK $ tail -3 /etc/sensorsd.conf hw.sensors.acpibat0.volt1:low=8V:high=9V #:command=/etc/sensorsd/shutdown "%2" "%3" $ sudo sensorsd -d ^C $ tail -1 /var/log/messages Jan 12 18:25:24 trin sensorsd[15369]: hw.sensors.acpibat0.volt1: wi

Re: sensorsd bug on macppc

2006-09-26 Thread mickey
ot;unknown" > >or "invalid". that's why you are getting your mail. > > Allright, I see. > The weird thing though is that: > - it used to work it used to accept invalid value as a valid temperature. so it did not work (: > - it _only_ happens once on sensorsd start

Re: sensorsd bug on macppc

2006-09-26 Thread mickey
On Tue, Sep 26, 2006 at 03:08:52PM +0200, Antoine Jacoutot wrote: > Hi. re > I have sensorsd running on a 4.0-current macppc. > It always worked fine and when min/max values of a sensor are > reached, a mail is sent to me. > Recently, a problem happened: each time I start the

Re: sensorsd bug on macppc

2006-09-26 Thread Antoine Jacoutot
The weird thing though is that: - it used to work - it _only_ happens once on sensorsd startup, after that it works fine as we can see 28c is not really even a valid temperature. Indeed. Thanks for the explanation. -- Antoine

sensorsd bug on macppc

2006-09-26 Thread Antoine Jacoutot
Hi. I have sensorsd running on a 4.0-current macppc. It always worked fine and when min/max values of a sensor are reached, a mail is sent to me. Recently, a problem happened: each time I start the sensorsd daemon (either on boot up or manually), I get the following warning mail: 28.00 degC

Re: sensorsd

2006-07-18 Thread Mark Zimmerman
On Mon, Jul 17, 2006 at 11:42:01PM -0300, Gustavo Rios wrote: > Hey folks, > > I am running a Dell Precision Workstation, is it possible to have > sensors working with such hardware? Any special consideration? > First, try 'sysctl hw.sensors'. If you get nothing (like on the Dell I am using right

sensorsd

2006-07-17 Thread Gustavo Rios
Hey folks, I am running a Dell Precision Workstation, is it possible to have sensors working with such hardware? Any special consideration? Thanks in advance.

Re: sensorsd configuration

2006-07-13 Thread Daniel A. Ramaley
Thank you to those who responded! I can figure out sensorsd.conf now. Also thank you to the developers who created such a simple way to monitor the sensors. I've configured sensors on other operating systems that have been a much greater hassle. -

Re: sensorsd configuration

2006-07-13 Thread Weldon Goree
again. If CPU temp is hw.sensors.4, then sysctl hw.sensors.4 will tell you. Sensorsd is more for watching for threshholds and boundary readings, rather than a real-time display of the current reading. If you're programming, you can also use sysctl(3); it would be something like sysctl({CTL

Re: sensorsd configuration

2006-07-13 Thread Antoine Jacoutot
onitor your CPU temperature, in your /etc/sensorsd.conf file, you could put something like: hw.sensors.0:high=60C:\ :command=echo "%2 \(high=%4\)" | mail -s "[`hostname`] sensorsd WARNING \(CPU Temp.\)" root Regards, -- Antoine

sensorsd configuration

2006-07-13 Thread Daniel A. Ramaley
Hello. I have not used sensorsd on OpenBSD before, but am trying to learn. I have read sensorsd(8) and sensorsd.conf(5) from OpenBSD 3.9 and the configuration looks very simple. However, i have a couple quick questions: The lines in sensorsd.conf start with "hw.sensors.N" (where N

Re: (3.9beta/i386) sensorsd can not start?

2006-01-31 Thread Moritz Jodeit
On Mon, Jan 30, 2006 at 12:57:24PM +0800, John Wong wrote: > after upgrade to 3.9beta/i386, sensorsd can not start > when i start the sensorsd, it show the error message > > shell$: /usr/sbin/sensorsd > sensorsd: sysctl: No such file or directory Just fixed that in -current.

Re: (3.9beta/i386) sensorsd can not start?

2006-01-30 Thread viq
On Monday 30 January 2006 05:57, John Wong wrote: > after upgrade to 3.9beta/i386, sensorsd can not start > when i start the sensorsd, it show the error message > > shell$: /usr/sbin/sensorsd > sensorsd: sysctl: No such file or directory I see the same behaviour on snapshot fr

(3.9beta/i386) sensorsd can not start?

2006-01-29 Thread John Wong
after upgrade to 3.9beta/i386, sensorsd can not start when i start the sensorsd, it show the error message shell$: /usr/sbin/sensorsd sensorsd: sysctl: No such file or directory what file or directory should i need? shell$: cat /etc/sensorsd.conf hw.sensors.0

Re: sensorsd and mail alert

2005-08-27 Thread kami petersen
Antoine Jacoutot skrev: How can I make sensorsd or syslog to mail me this, without running a parser every minute on /var/log/messages which looks overkill. man 5 sensorsd.conf /kami

Re: sensorsd and mail alert

2005-08-27 Thread Antoine Jacoutot
Antoine Jacoutot wrote: How can I make sensorsd or syslog to mail me this, without running a parser every minute on /var/log/messages which looks overkill. Answering to myself... Allright, I had a check on sensorsd under current and it looks like in 3.8 I will be able to give a command to

sensorsd and mail alert

2005-08-27 Thread Antoine Jacoutot
Hi... One quick stupid question. I'm looking for a way to get a mail when sensorsd logs something to syslog. Is there an easy way to do this ? For instance, today sensorsd reported the following : Aug 27 15:27:21 mcp sensorsd[6314]: failure for hw.sensors.0: 46.40C/115.52F not within l