APC UPS support seems to have been removed as an application from the webUI. Could it please be put back in?
https://github.com/librenms/librenms-agent/blob/master/snmp/ups-apcups.sh is there and yet the application doesn't appear to be an option in the librenms webUI.
DO NOT DELETE THIS INFORMATION.
Please read this information carefully.
GitHub issues is for feature requests or bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our irc channel ##librenms on freenode to ask questions or our community site.
Is your install up to date? Updating your install
Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.
Please include all of the information between the ==================================== section of ./validate.php.
If you would like us to add a new device or your device is listed as Generic then please provide the information asked for here
Please provide as much detail as possible.
I don't think it's ever been in the list to select from:
Seems to indicate it's not been removed in the last 12 months.
@laf That's correct. As explained in #4818, there is an agent script for it. The documentation instructs you to enable the ups-apcups application in the web interface, but it is not there.
fix: Add missing ups-apcups application poller #5428
Thanks, seems to work (over SNMP too)!
EDIT: Except for one small thing: the string returned from snmp_get is wrapped in quotes. This causes the first and last field (current line voltage and nominal battery voltage) not to be parsed correctly.
This can be fixed by trimming the quotes from the string:
$ups_apcups = trim(snmp_get($device, $oid, '-Oqv'), '"');