UPS Test Feature

Got a feature request? Great! Post your ideas here!
MadPup
Posts: 24
youtube meble na wymiar Warszawa
Joined: Wed Oct 02, 2019 11:50 pm

UPS Test Feature

Post by MadPup »

I don't see any way to automate a regular test of an attached UPS. That is pretty important. Any chance?

What I am looking for is something similar to what the APC PowerChute utility does in Windows. Once a week it tells the UPS to disconnect from AC power and run on battery for a few seconds. This is really the only way to test the health of the battery. Last week I had several power outages and the UPS failed completely even though ADM said it had 40 minutes of runtime. Only when the power went off did the UPS LEDs indicate that the battery needed replaced. If the UPS was monitored by a Windows machine with PowerChute, I would have known well in advance that the battery was degraded.
Last edited by MadPup on Sat Aug 26, 2023 11:26 pm, edited 1 time in total.
User avatar
father.mande
Posts: 2219
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: UPS Test Feature

Post by father.mande »

Hi,

As I know, but never tested on Asustor NAS (or equivalent command)
Asustor provide upsdrvctl command line tools (in a terminal with root/your_admin_password or using sudo) ... perhaps it's enough to be an administrator ... I don't know if it's your need but command have a test mode.

Code: Select all

 # /usr/bin/upsdrvctl --help
Network UPS Tools - UPS driver controller 2.7.2
/usr/bin/upsdrvctl: invalid option -- '-'
Starts and stops UPS drivers via ups.conf.

usage: /usr/bin/upsdrvctl [OPTIONS] (start | stop | shutdown) [<ups>]

  -h                    display this help
  -r <path>             drivers will chroot to <path>
  -t                    testing mode - prints actions without doing them
  -u <user>             drivers started will switch from root to <user>
  -D                    raise debugging level
  start                 start all UPS drivers in ups.conf
  start <ups>           only start driver for UPS <ups>
  stop                  stop all UPS drivers in ups.conf
  stop <ups>            only stop driver for UPS <ups>
  shutdown              shutdown all UPS drivers in ups.conf
  shutdown <ups>        only shutdown UPS <ups>
I have only run test out Asustor direct delivery with apcups from Entware APKG (but it's old ... )

Code: Select all

 # opkg list | grep apc
apcupsd - 3.14.14-4 - UPS control software
apcupsd-cgi - 3.14.14-4 - UPS control software CGI module
collectd-mod-apcups - 5.12.0-42 - apcups status input plugin
nut-driver-apcsmart - 2.8.0-3 - Driver for American Power Conversion Smart Protocol UPS equipment
nut-driver-apcsmart-old - 2.8.0-3 - Driver for American Power Conversion Smart Protocol UPS equipment
nut-driver-apcupsd-ups - 2.8.0-3 - Driver for apcupsd client access
php8-pecl-apcu - 5.1.22-1 - APCu - APC User Cache
Philippe.
Asustor updated :D to ADM 5.0
FS6706T / AS3302Tv2 / AS5202T / AS6602T
Asustor E.O.L. at A.D.M. 4.0 :(
AS5002T / AS1002T
Asustor past :mrgreen:
AS202T
MadPup
Posts: 24
Joined: Wed Oct 02, 2019 11:50 pm

Re: UPS Test Feature

Post by MadPup »

father.mande wrote:Hi,

As I know, but never tested on Asustor NAS (or equivalent command)
Asustor provide upsdrvctl command line tools (in a terminal with root/your_admin_password or using sudo) ... perhaps it's enough to be an administrator ... I don't know if it's your need but command have a test mode.
Thanks but I don't think this does what I'm asking for. I could be wrong, but this is more about controlling the UPS drivers than controlling the UPS itself.
User avatar
Nazar78
Posts: 2235
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: UPS Test Feature

Post by Nazar78 »

Those test feature (i.e. app for Linux/Windows/Mac or built-in for enterprise UPS) is usually provided by the UPS manufacturer if they are available.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response