Apcupsd: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
Tag: wikieditor
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Links=
=Links=
*[http://www.apcupsd.org/ apcupsd homepage]
*[http://www.apcupsd.org/ apcupsd homepage]
==Documentation==
*[https://help.ubuntu.com/community/apcupsd apcupsd at Ubuntu site]
*https://wiki.debian.org/apcupsd
*https://wiki.alpinelinux.org/wiki/Apcupsd
=Scripts=
==apcaccess==
[https://man.archlinux.org/man/apcaccess.8.en man(8) apcaccess[
===Values===
====MBATTCHG====
When battery charge drops below this value, shutdown is initiated.
====STATUS====
====TIMELEFT====
The UPS battery run time remaining before battery
exhaustion.
====LOADPCT====
The current UPS load expressed in percent
of rated capacity.


=HOWTO=
=HOWTO=
Line 6: Line 28:
  apctest
  apctest


==Shutdown when communication with UPS is lost==
Look for 'commfailure' and apccontrol script, but looks like a bad plan.


=Apcupsd using SNMP=
=Apcupsd using SNMP=
Line 28: Line 53:
=FAQ=
=FAQ=
==COMMLOST==
==COMMLOST==
TODO finish this
If connecting via USB:  
If connecting via USB:  
in apcupsd.conf:
in apcupsd.conf:
  DEVICE
  DEVICE
==snmplite Missing hostname==
You probably forgot the DEVICE line

Latest revision as of 14:15, 23 April 2026

Links

Documentation

Scripts

apcaccess

[https://man.archlinux.org/man/apcaccess.8.en man(8) apcaccess[

Values

MBATTCHG

When battery charge drops below this value, shutdown is initiated.

STATUS

TIMELEFT

The UPS battery run time remaining before battery exhaustion.

LOADPCT

The current UPS load expressed in percent of rated capacity.

HOWTO

Test configuration

apctest


Shutdown when communication with UPS is lost

Look for 'commfailure' and apccontrol script, but looks like a bad plan.

Apcupsd using SNMP

On the UPS enable SNMP and have a community (for example public) with read access.

In /etc/apcupsd/apcupsd.conf:

UPSCABLE ether
UPSTYPE snmp
DEVICE 192.168.188.12:161:APC:public


After starting apcupsd check it with

apcaccess

(this can be run as non-root) This only works with

NETSERVER on

FAQ

acpaccess does not provide info like TIMELEFT

apt install snmp

FAQ

COMMLOST

TODO finish this If connecting via USB: in apcupsd.conf:

DEVICE


snmplite Missing hostname

You probably forgot the DEVICE line