FS#70637 - [apcupsd] event command is not supported

Attached to Project: Community Packages
Opened by Aleš Ferlan (Alko89) - Thursday, 29 April 2021, 09:22 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 02 May 2021, 08:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

From the documentation it should be possible to read logs using apcaccess events command, however in the package it seems its not available. Help only lists the status command to be supported.
http://www.apcupsd.org/manual/manual.html#nis-network-server-protocol

A workaround is to just read the logs from /var/log/apcupsd.status

Additional info:
* 3.14.14-6

$ apcaccess events
Unknown command events
Usage: apcaccess [-f <config-file>] [-h <host>[:<port>]] [-p <parameter-name>] [-u] [<command>] [<host>[:<port>]]

-f Load default host,port from given conf file (default: /etc/apcupsd/apcupsd.conf)
-h Connect to host and port (supercedes conf file)
-p Return only the value of the named parameter rather than all parameters and values
-u Strip unit labels

Supported commands: 'status' (default)
This task depends upon

Closed by  Florian Pritz (bluewind)
Sunday, 02 May 2021, 08:44 GMT
Reason for closing:  Not a bug
Comment by Florian Pritz (bluewind) - Sunday, 02 May 2021, 08:44 GMT
The documentation you linked sounds like this might be just a possible command via the network socket, but it does not say that the apcaccess client would support this command. This does not sound like a packaging issue to me so I'd suggest that you contact the apcupsd developers about this. I don't see anything I could do here, sorry.

Loading...