summaryrefslogtreecommitdiff
path: root/usr.sbin/sensorsd
AgeCommit message (Collapse)Author
2008-03-16s/273.16/273.15/g, then refactor the formulae to ensure that theConstantine A. Murenin
double to int64_t conversions happen sooner rather than later discussed with / ok by kettenis
2008-03-16text simplification;Jason McIntyre
2008-03-16Reduce the number of unnecessary time(3)/gettimeofday(2) calls, and make sureConstantine A. Murenin
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
2008-03-15explicitly report whether the lower or upper limit is exceeded; ok sthen@ ↵Constantine A. Murenin
ckuethe@
2008-03-14- punctuate and order the tokens list, to stop it looking scrappyJason McIntyre
- it doesn;t make sense to list esm(4) in SEE ALSO
2008-03-14Add a "%l" token to signal whether a sensor value is in or out of bounds,Chris Kuethe
without regard for the specific value. It's a big heavy binary hammer... ok & style feedback from cnst
2008-03-13document the just-committed %s token.Chris Kuethe
ok mbalmer
2008-03-13Allow a program invoked on state change to receive sensor status. PerhapsChris Kuethe
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
2007-12-05log positive events ('OK', 'within') with LOG_INFO instead of LOG_ALERT;Constantine A. Murenin
partly spotted by bluhm@ grunk@; ok grunk@
2007-11-28sort options list;Jason McIntyre
2007-11-28add options to specify the check and report intervals. ok deraadtTed Unangst
2007-08-14sync printing w/ sysctl(8) and add missing sensor types to conf parser;Constantine A. Murenin
document how values are parsed in sensorsd.conf(5). ok deraadt@; man-page ok/help jmc@
2007-08-14Commentary in the examples section was wrong from the start, because it gaveConstantine A. Murenin
the impression that alerts are only issued when things go wrong, not when they come back to specification -- but this was never the case with sensorsd. Whilst here, also zip some useless examples, as we now have so many. Discussed with jmc@
2007-08-11add caveats section, documenting previously undocumented state dumping ↵Constantine A. Murenin
mechanism; ok jmc@ henning@
2007-08-11s/ and alerter// against previous: 'alerter' is not a standard word (yet),Constantine A. Murenin
even if it is present in certain dictionaries (it is). Also, it doesn't add that much to .Nd anyhow. Requested by jmc@
2007-08-10sync sensorsd.8: add my copyright; change NAME summary; fix some grammar;Constantine A. Murenin
fix description of when the command is executed (it was wrong from the start); say a few more words about automatic monitoring of all sensors that keep state. ok henning@
2007-08-10sync sensorsd.conf.5 with reality, including:Constantine A. Murenin
* add myself to the copyright; remove unneeded synopsis * invalid sensors can now be monitored as such (since c2k7) * manual boundaries for smart sensors are no longer ignored (since c2k7) * populate history with 4.1 and 4.2 additions * add caveats section documenting a long-standing misconception and a workaround some help jmc@; ok jmc@
2007-07-31something went wrong w/ previous;Jason McIntyre
2007-07-31document the -d option of sensorsd; input and ok from jmc@, deraadt@Robert Nagy
2007-06-05various grammar/text improvements;Jason McIntyre
2007-06-01Convert sensorsd to use two-level data-structures. This makes sensorsd beConstantine A. Murenin
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@.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30Major update to sensorsd.Constantine A. Murenin
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@
2007-05-29Remove watch_cnt in preparation for my bigger patch that makes sensorsdConstantine A. Murenin
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@
2007-05-29tweaks; help/ok cnstJason McIntyre
2007-05-29for sensorsd.conf entries, let's do matching by sensor type if maching by ↵Constantine A. Murenin
complete sysctl name does not yield anything; ok henning, otto
2007-02-28do status dampening for OK status as well, i. e.Henning Brauer
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
2007-02-23add missing copyright; ConstantineTheo de Raadt
2007-01-06increase buffer size; ie. for hw.sensors.ipmi0.indicator0Theo de Raadt
from cnst+openbsd@bugmail.mojo.ru
2006-12-28tweak;Jason McIntyre
2006-12-23adapt to new two-level sensor sysctl framework; by Constantine A. MureninTheo de Raadt
2006-12-18it appears some sensors flip duen to bugs or erroneous readings.Michael Shalayeff
provide dampenning for negative events and simultaneously increase polling frequency accordingly to provide same rate of reporting. mbalmer@ beck@ deraadt@ ok
2006-09-16sync printing w/ sysctl and also add missing sensor types to the conf ↵Michael Shalayeff
parser; deraadt@ ok
2006-08-23wording;Jason McIntyre
2006-08-23esm(4) also gives status (sometimes ;)Michael Shalayeff
2006-08-23allow monitoring sensors with their own status reporting such as ipmi or ↵Michael Shalayeff
raid controllers; marco@ ok
2006-04-21ami sysctl diff; from michael knudsenJason McIntyre
ok dlg
2006-04-01when I initially hacked sensorsd, sensors started at hw.sensors.0 andHenning Brauer
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
2006-03-20add two missing function declarationsDavid Hill
change sensor_status to sensorsd_status ok deraadt@
2006-03-07beef up this file a little; ok grangeJason McIntyre
2006-02-06don't error out but give a warning when sysctl()Moritz Jodeit
fails with something else than ENOENT. suggested by tedu@ ok henning@
2006-01-31When sysctl(3) fails, check for ENOENT instead of ENXIO to findMoritz Jodeit
the last sensor and don't monitor sensors, which are marked invalid. ok henning@
2005-08-10remove drivers from here.Alexandre Anriot
ok jsg@ deraadt@
2005-08-10add lmtemp(4) and viasio(4).Alexandre Anriot
ok grange@
2005-08-04Support for SENSOR_INTEGER.Jonathan Gray
ok grange@, dlg@, henning@
2005-08-03dlg did not test what he affects; enum clashTheo de Raadt
2005-06-03print negative values correctly; From: serge rasnikov <747500@gmail.com>Henning Brauer
2005-05-11document conf file reload w/ SIGHUP;Jason McIntyre
from michael knudsen; ok henning@
2005-04-21spacingTheo de Raadt
2005-04-20fix buffer overrun introduced with my previous commit. Found and fixed byHans-Joerg Hoexer
moritz@; while around take care of snprintf return values help and ok moritz@, henning@