OpenBSD CVS

CVS log for src/usr.sbin/sensorsd/sensorsd.c


[BACK] Up to [local] / src / usr.sbin / sensorsd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:15 2023 UTC (15 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:21 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jul 22 15:33:49 2020 UTC (3 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.66: +11 -7 lines
Diff to previous 1.66 (colored)

sensorsd(8) reported an unveil failure due to chdir / .  Call
chdir(2) before unveil(2).  Use absolute config path after chdir,
also necessary for SIGHUP.  /etc/sensorsd.conf.db must be unveiled,
cgetent(3) tries to open it.
OK beck@

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:50 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.65 / (download) - annotate - [select for diffs], Fri May 31 15:55:50 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Fix previous: create() got inadvertently moved after parse_config(),
which effectively caused the config file to be ignored.  So move
parse_config() back after create().
OK deraadt@

Revision 1.64 / (download) - annotate - [select for diffs], Thu May 16 14:36:58 2019 UTC (5 years ago) by deraadt
Branch: MAIN
Changes since 1.63: +14 -13 lines
Diff to previous 1.63 (colored)

unveil code was unaware of -f option.
From Anton Borowka.
ok sthen

Revision 1.63 / (download) - annotate - [select for diffs], Mon Dec 10 13:35:54 2018 UTC (5 years, 6 months ago) by landry
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.62: +7 -3 lines
Diff to previous 1.62 (colored)

Add a velocity sensor type (displayed as m/s)

Change distance sensor type to be displayed as meters with 3 decimals
instead of millimeters.

ok mpi@ kettenis@

Revision 1.62 / (download) - annotate - [select for diffs], Mon Oct 22 16:20:09 2018 UTC (5 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.61: +6 -1 lines
Diff to previous 1.61 (colored)

unveil support is a bit amusing.  /etc/sensorsd.conf with "r", and
"/" for 'x' so that scripts can be run anywhere in the filesystem
(intended behaviour).  The latter may seem very permissive, but it is
less permissive than "rwxc" ....
ok mestre, a while back

Revision 1.61 / (download) - annotate - [select for diffs], Mon Mar 20 15:31:23 2017 UTC (7 years, 2 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.60: +10 -3 lines
Diff to previous 1.60 (colored)

Add command line option -f to specify alternative config file.
from Matthias Pitzl

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 27 01:50:07 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)

Pull in <sys/time.h> for struct timespec, timeval, or clockrate

ok deraadt@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Dec 12 20:04:23 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.58: +2 -3 lines
Diff to previous 1.58 (colored)

Remove NULL-checks before free().

Revision 1.58 / (download) - annotate - [select for diffs], Thu Nov 19 06:08:06 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.57: +3 -0 lines
Diff to previous 1.57 (colored)

pledge "stdio rpath proc exec"

Revision 1.57 / (download) - annotate - [select for diffs], Thu Nov 19 06:06:30 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.56: +12 -9 lines
Diff to previous 1.56 (colored)

KNF

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jun 15 14:29:52 2015 UTC (8 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.55: +1 -3 lines
Diff to previous 1.55 (colored)

get_val() already frees the buffer passed to it so we don't need to
do it in the caller.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jun 2 23:05:05 2015 UTC (9 years ago) by millert
Branch: MAIN
Changes since 1.54: +7 -3 lines
Diff to previous 1.54 (colored)

Don't leak value returned by cgetstr().  OK deraadt@

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:20 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.53: +3 -2 lines
Diff to previous 1.53 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jun 29 00:58:45 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

If you want <sys/queue.h>, you need to include it.  Don't assume that
<sys/sysctl.h> will pull in the universe (I am working on breaking that
assumption in a gentle fashion)

Revision 1.52 / (download) - annotate - [select for diffs], Thu Sep 20 20:11:58 2012 UTC (11 years, 8 months ago) by yuo
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.51: +13 -1 lines
Diff to previous 1.51 (colored)

add more sensor types to sensor framework.
 - Pressure (10^-3 Pa)
 - distance (10^-6 m)
 - acceleration (10^-6 m/s^2)

ok deraadt@ reyk@

Revision 1.51 / (download) - annotate - [select for diffs], Fri Sep 16 17:45:06 2011 UTC (12 years, 8 months ago) by yuo
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.50: +14 -6 lines
Diff to previous 1.50 (colored)

add lacked cases of sensors value, and fix orders.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Sep 16 15:44:31 2011 UTC (12 years, 8 months ago) by yuo
Branch: MAIN
Changes since 1.49: +7 -1 lines
Diff to previous 1.49 (colored)

apply following changes to sensor framework:
- change accuracy of SENSOR_FREQ from Hz to muHz
- add SENSOR_VOLTS_AC entry to userland programs

ok deraadt@

Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 21 04:07:13 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.48: +5 -1 lines
Diff to previous 1.48 (colored)

Add the "angle" sensor, measured in degrees; from Luis Pinto

Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 20 20:49:36 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.47: +7 -5 lines
Diff to previous 1.47 (colored)

Get rid of MAXSENSORDEVICES.  Gaps in sensordev lists are now handled
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away.  Accessing beyond the end of the sensordev
list still returns ENOENT, so that you can see there are no further devices.
ok kettenis oga

Revision 1.47 / (download) - annotate - [select for diffs], Fri Aug 14 15:29:19 2009 UTC (14 years, 9 months ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.46: +5 -1 lines
Diff to previous 1.46 (colored)

SENSOR_WATTS;  ok canacar deraadt kettenis henning

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 14 00:16:10 2008 UTC (16 years ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored)

When there are no sensors, don't run the hotplugging consistency check,
the logic of which assumes that there is at least one sdlim.
ok henning

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jun 11 21:21:50 2008 UTC (16 years ago) by cnst
Branch: MAIN
Changes since 1.44: +9 -13 lines
Diff to previous 1.44 (colored)

When a hotplugged sensordev appears, load its configuration individually,
instead of reloading the configuration for all sensordevs.
ok henning

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 11 18:40:52 2008 UTC (16 years ago) by cnst
Branch: MAIN
Changes since 1.43: +31 -27 lines
Diff to previous 1.43 (colored)

* Remove the exit condition on no sensors at start-up, since we now support
  hotplugging.
* Factor out some code from main() into a new create() procedure, to save
  some memory and make the code tidier.
ok henning

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jun 11 05:54:22 2008 UTC (16 years ago) by cnst
Branch: MAIN
Changes since 1.42: +85 -4 lines
Diff to previous 1.42 (colored)

Support hotpluggable sensors (e.g. the post-4.2 ipmi0 created by the
deferred thread, as well as some timedelta sensors).

ok henning, ckuethe

Revision 1.42 / (download) - annotate - [select for diffs], Mon May 12 19:15:02 2008 UTC (16 years, 1 month ago) by pyr
Branch: MAIN
Changes since 1.41: +6 -1 lines
Diff to previous 1.41 (colored)

Error out with usage line if additional arguments are given after the
option parsing. Found out the hard way by jdixon on ifstated.

ok sobrado@, jdixon@, millert@

Revision 1.41 / (download) - annotate - [select for diffs], Sun Mar 16 23:54:01 2008 UTC (16 years, 2 months ago) by cnst
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

s/273.16/273.15/g, then refactor the formulae to ensure that the
double to int64_t conversions happen sooner rather than later

discussed with / ok by kettenis

Revision 1.40 / (download) - annotate - [select for diffs], Sun Mar 16 03:07:03 2008 UTC (16 years, 2 months ago) by cnst
Branch: MAIN
Changes since 1.39: +19 -36 lines
Diff to previous 1.39 (colored)

Reduce the number of unnecessary time(3)/gettimeofday(2) calls, and make sure
that the time always goes forward, so reports are neither duplicated nor lost.

Report state changes stabilised through dampening immediately, instead of delay-
ing them until the next reporting window; previously, it was common for check()
to lag one second behind report(), hence the initial report was delayed one
extra minute (this then reduces the number of sleep(3)/nanosleep(2) calls, too).

ok ckuethe;  some man-page suggestions jmc

Revision 1.39 / (download) - annotate - [select for diffs], Sat Mar 15 01:08:08 2008 UTC (16 years, 3 months ago) by cnst
Branch: MAIN
Changes since 1.38: +21 -10 lines
Diff to previous 1.38 (colored)

explicitly report whether the lower or upper limit is exceeded; ok sthen@ ckuethe@

Revision 1.38 / (download) - annotate - [select for diffs], Fri Mar 14 00:06:18 2008 UTC (16 years, 3 months ago) by ckuethe
Branch: MAIN
Changes since 1.37: +23 -2 lines
Diff to previous 1.37 (colored)

Add a "%l" token to signal whether a sensor value is in or out of bounds,
without regard for the specific value. It's a big heavy binary hammer...
ok & style feedback from cnst

Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 13 21:24:45 2008 UTC (16 years, 3 months ago) by ckuethe
Branch: MAIN
Changes since 1.36: +28 -5 lines
Diff to previous 1.36 (colored)

Allow a program invoked on state change to receive sensor status. Perhaps
you might want to toggle an error light when a sensor is not OK. Perhaps
you might want to schedule a shutdown if a sensor is reporting bad news.
Now you can do this, and cancel that pending shutdown (or turn off the error
light) if the sensor decides all is well.

ok mbalmer (who came up with an almost identical diff months ago)
useful feedback and generally positive responses from deraadt, henning, msf

Revision 1.36 / (download) - annotate - [select for diffs], Wed Dec 5 17:28:06 2007 UTC (16 years, 6 months ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.35: +5 -3 lines
Diff to previous 1.35 (colored)

log positive events ('OK', 'within') with LOG_INFO instead of LOG_ALERT;
partly spotted by bluhm@ grunk@;  ok grunk@

Revision 1.35 / (download) - annotate - [select for diffs], Wed Nov 28 17:03:59 2007 UTC (16 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.34: +18 -5 lines
Diff to previous 1.34 (colored)

add options to specify the check and report intervals. ok deraadt

Revision 1.34 / (download) - annotate - [select for diffs], Tue Aug 14 17:10:02 2007 UTC (16 years, 10 months ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.33: +21 -6 lines
Diff to previous 1.33 (colored)

sync printing w/ sysctl(8) and add missing sensor types to conf parser;
document how values are parsed in sensorsd.conf(5).

ok deraadt@; man-page ok/help jmc@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 1 22:41:12 2007 UTC (17 years ago) by cnst
Branch: MAIN
Changes since 1.32: +115 -60 lines
Diff to previous 1.32 (colored)

Convert sensorsd to use two-level data-structures. This makes sensorsd be
more consistent with the current sensors framework, conserves some memory,
and will make it easier to implement hotplugging and other nifty features
in the future. This does not change any other functionality ATM.

OK henning@, beck@.

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 30 07:49:37 2007 UTC (17 years ago) by cnst
Branch: MAIN
Changes since 1.31: +124 -46 lines
Diff to previous 1.31 (colored)

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@

Revision 1.31 / (download) - annotate - [select for diffs], Tue May 29 20:30:40 2007 UTC (17 years ago) by cnst
Branch: MAIN
Changes since 1.30: +8 -21 lines
Diff to previous 1.30 (colored)

Remove watch_cnt in preparation for my bigger patch that makes sensorsd
usable by default, where we will monitor all sensors that automatically
provide status, and this watch_cnt won't make much sense. Besides, upon
startup, sensorsd already shows all sensors that it is going to monitor,
making this watch_cnt rather unimportant.

ok henning@

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 29 02:02:12 2007 UTC (17 years ago) by cnst
Branch: MAIN
Changes since 1.29: +19 -18 lines
Diff to previous 1.29 (colored)

for sensorsd.conf entries, let's do matching by sensor type if maching by complete sysctl name does not yield anything;  ok henning, otto

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 28 15:28:22 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.28: +3 -7 lines
Diff to previous 1.28 (colored)

do status dampening for OK status as well, i. e.
if a sensor is always bad, but sometimes goes OK for only a few seconds,
we want to ignore that bogus change as well
also fix setting if last_val.
from Constantine, ok mickey

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 23 22:55:40 2007 UTC (17 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

add missing copyright; Constantine

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jan 6 18:17:06 2007 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +4 -3 lines
Diff to previous 1.26 (colored)

increase buffer size; ie. for hw.sensors.ipmi0.indicator0
from cnst+openbsd@bugmail.mojo.ru

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 23 17:49:53 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +57 -25 lines
Diff to previous 1.25 (colored)

adapt to new two-level sensor sysctl framework; by Constantine A. Murenin

Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 18 14:13:15 2006 UTC (17 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.24: +24 -12 lines
Diff to previous 1.24 (colored)

it appears some sensors flip duen to bugs or erroneous readings.
provide dampenning for negative events and simultaneously increase
polling frequency accordingly to provide same rate of reporting.
mbalmer@ beck@ deraadt@ ok

Revision 1.24 / (download) - annotate - [select for diffs], Sat Sep 16 10:46:26 2006 UTC (17 years, 8 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.23: +25 -6 lines
Diff to previous 1.23 (colored)

sync printing w/ sysctl and also add missing sensor types to the conf parser; deraadt@ ok

Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 23 11:18:00 2006 UTC (17 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.22: +27 -14 lines
Diff to previous 1.22 (colored)

allow monitoring sensors with their own status reporting such as ipmi or raid controllers; marco@ ok

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 1 20:09:13 2006 UTC (18 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

when I initially hacked sensorsd, sensors started at hw.sensors.0 and
there were no gaps ever. these days, we can have holes or start later.
so on start scan 0..255 and do not abort if there's no entry, probe 'em
all.
found and analyzed by Sam Chill <samchill@gmail.com>, ok theo

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 20 15:19:03 2006 UTC (18 years, 2 months ago) by dhill
Branch: MAIN
Changes since 1.20: +9 -8 lines
Diff to previous 1.20 (colored)

add two missing function declarations
change sensor_status to sensorsd_status

ok deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 6 21:32:20 2006 UTC (18 years, 4 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.19: +4 -5 lines
Diff to previous 1.19 (colored)

don't error out but give a warning when sysctl()
fails with something else than ENOENT.

suggested by tedu@ ok henning@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 31 18:13:39 2006 UTC (18 years, 4 months ago) by moritz
Branch: MAIN
Changes since 1.18: +10 -5 lines
Diff to previous 1.18 (colored)

When sysctl(3) fails, check for ENOENT instead of ENXIO to find
the last sensor and don't monitor sensors, which are marked invalid.

ok henning@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 4 13:01:43 2005 UTC (18 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.17: +7 -1 lines
Diff to previous 1.17 (colored)

Support for SENSOR_INTEGER.
ok grange@, dlg@, henning@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 3 17:30:05 2005 UTC (18 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

dlg did not test what he affects; enum clash

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 3 12:31:28 2005 UTC (19 years ago) by henning
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

print negative values correctly; From: serge rasnikov <747500@gmail.com>

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 21 00:22:28 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

spacing

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 20 21:08:45 2005 UTC (19 years, 1 month ago) by hshoexer
Branch: MAIN
Changes since 1.13: +11 -12 lines
Diff to previous 1.13 (colored)

fix buffer overrun introduced with my previous commit.  Found and fixed by
moritz@; while around take care of snprintf return values

help and ok moritz@, henning@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 1 22:15:40 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +5 -8 lines
Diff to previous 1.12 (colored)

spacing

Revision 1.12 / (download) - annotate - [select for diffs], Fri Apr 1 22:10:23 2005 UTC (19 years, 2 months ago) by hshoexer
Branch: MAIN
Changes since 1.11: +114 -16 lines
Diff to previous 1.11 (colored)

sensorsd(8) execute command on exceeding limits
from matthew.gream@pobox.com, thanks!

cleaning and ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 14 23:24:41 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

ARGSUSED before signal handler with unused signo

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 11 20:02:00 2004 UTC (20 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

Fix accidental busy loop waiting for a second to pass. Also, rename
constants that defined a period of time.

ok deraadt@ henning@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 15 15:53:19 2004 UTC (20 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

add a default: case to the switch (sensor type) in the config file parser
that just errs out if someone tries to configure limits for a sensor type we
do not support, deraadt ok

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 7 16:50:04 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored)

knf; jjy2+@pitt.edu

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 8 09:18:00 2004 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

sync with sysctl/drivers + 0K == -273.15C; report grange; ok henning

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 22 12:59:45 2003 UTC (20 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

reload is used in signal handler, make it volatile sig_atomic_t

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 1 02:43:17 2003 UTC (20 years, 8 months ago) by kevlo
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

sys/types.h is not really needed with sys/param.h.
ok henning@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 30 15:06:29 2003 UTC (20 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.3: +14 -7 lines
Diff to previous 1.3 (colored)

o err out on start if no watches are defined
o log how many watches are defined
o on configuration reload also log how many watches we have

Revision 1.3 / (download) - annotate - [select for diffs], Tue Sep 30 00:18:40 2003 UTC (20 years, 8 months ago) by jose
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)


set the log message ident with openlog(), ok henning@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Sep 29 16:05:34 2003 UTC (20 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

uncomment daemon() call; spotted by jose@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 24 20:32:49 2003 UTC (20 years, 8 months ago) by henning
Branch: MAIN

sensorsd monitors the hardware sensors as reported by sysctl in hw.sensors.
limits can be configured, out of range notifications through syslog.
config file parsing based on bob's hints, lots of hints from theo
feedback from grange, otto, mickey as well

ok deraadt@; grange@ on an earlier version

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.