[email protected] (Friedrich Locke), 2017.10.23 (Mon) 20:08 (CEST):
> When i wrote nobreak, i really meant UPS.
> I don't have a model; may some one  suggest a model that power off
> openbsd ?

https://man.openbsd.org/upd.4

DESCRIPTION
The upd driver provides support for monitoring various sensors provided
by USB Power Devices (such as a UPS). Supported sensor values are made
available via the sysctl(8) interface.

++++++++++++

$ sysctl hw.sensors.upd0
hw.sensors.upd0.indicator0=On (BatteryPresent), OK
hw.sensors.upd0.indicator1=Off (Charging), OK
hw.sensors.upd0.indicator2=Off (Discharging), OK
hw.sensors.upd0.indicator3=Off (NeedReplacement), OK
hw.sensors.upd0.indicator4=Off (ShutdownImminent), OK
hw.sensors.upd0.indicator5=On (ACPresent), OK
hw.sensors.upd0.indicator6=Off (Overload), OK
hw.sensors.upd0.percent0=100.00% (RemainingCapacity), OK
hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK
hw.sensors.upd0.timedelta0=2055.000000 secs (RunTimeToEmpty), OK

++++++++++

And see sensorsd(8) if you want it to act upon changes reported by your
UPS.

Marcus

> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Livre
> de v??rus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>.
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> 
> On Mon, Oct 23, 2017 at 11:45 AM, Sol??ne Rapenne <[email protected]> wrote:
> 
> > Je 2017-10-23 15:40, Friedrich Locke skribis:
> >
> >> Hi folks!
> >>
> >> I would like to have my openbsd server to be shutdown when my nobreak
> >> power
> >> becomes lower than 20% of its capacity; is that possible ?
> >> Any one with experience in this regard ?
> >>
> >> Thanks a lot.
> >>
> >> <https://www.avast.com/sig-email?utm_medium=email&utm_source
> >> =link&utm_campaign=sig-email&utm_content=webmail>
> >> Livre
> >> de v??rus. www.avast.com
> >> <https://www.avast.com/sig-email?utm_medium=email&utm_source
> >> =link&utm_campaign=sig-email&utm_content=webmail>.
> >> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >>
> >
> > hello,
> >
> > Is a "nobreak" an UPS ? If so, what model is it ?
> >
> > Is it connected to your server or your LAN ? If no, no chance to know the
> > current state of the battery.
> >

Reply via email to