Package: nut-client
Version: 2.8.3-2
Severity: important
X-Debbugs-Cc: [email protected]

Hello,
I am testing nut with an APC Back-UPS BX750MI .
I am testing the version from Debian experimental, due to the [issues]
with my UPS model (which are claimed to be fixed in upstream version
2.8.3).

[issues]: <https://github.com/networkupstools/nut/issues/2347>

I have set:


  MODE=standalone

in /etc/nut/nut.conf


  [bxups]
    driver = usbhid-ups
    port = auto
    lbrb_log_delay_sec = 3
    lbrb_log_delay_without_calibrating
    onlinedischarge_calibration
    pollonly
    desc = "APC Back-UPS BX"

in /etc/nut/ups.conf


  NOTIFYFLAG ONLINE       SYSLOG+WALL
  NOTIFYFLAG ONBATT       SYSLOG+WALL
  NOTIFYFLAG LOWBATT      SYSLOG+WALL
  NOTIFYFLAG FSD          SYSLOG+WALL
  NOTIFYFLAG COMMOK       SYSLOG+WALL
  NOTIFYFLAG COMMBAD      SYSLOG+WALL
  NOTIFYFLAG SHUTDOWN     SYSLOG+WALL
  NOTIFYFLAG REPLBATT     SYSLOG+WALL
  NOTIFYFLAG NOCOMM       SYSLOG+WALL
  NOTIFYFLAG NOPARENT     SYSLOG+WALL
  NOTIFYFLAG CAL          SYSLOG+WALL
  NOTIFYFLAG NOTCAL       SYSLOG+WALL
  NOTIFYFLAG OFF          SYSLOG+WALL
  NOTIFYFLAG NOTOFF       SYSLOG+WALL
  NOTIFYFLAG BYPASS       SYSLOG+WALL
  NOTIFYFLAG NOTBYPASS    SYSLOG+WALL
  NOTIFYFLAG ECO          SYSLOG+WALL
  NOTIFYFLAG NOTECO       SYSLOG+WALL
  NOTIFYFLAG ALARM        SYSLOG+WALL
  NOTIFYFLAG NOTALARM     SYSLOG+WALL
  
  NOTIFYFLAG OTHER        SYSLOG+WALL
  NOTIFYFLAG NOTOTHER     SYSLOG+WALL

in /etc/nut/upsmon.conf


Well, the UPS is detected and seems to work, I get data from

  $ upsc bxups

and from

  $ upslog -l - -s bxups


When I pull the plug (or cause other UPS-related events), I see
the notifications in /var/log/syslog, but wall fails to generate
messages visible to all users.
At least, I don't see them on my xterm terminal emulators.

I read in /usr/share/doc/bsdutils/NEWS.Debian.gz :

  util-linux (2.40.2-11) unstable; urgency=medium
  
    * The mesg(1) and write(1) programs are no longer provided.
      It is believed chatting between users is nowadays done using more
      secure facilities.
    * Please check your /root/.profile if it executes mesg(1), and if so,
      remove that (or guard it).
  
   -- Chris Hofstaedtler <[email protected]>  Wed, 13 Nov 2024 12:58:06 +0100
  [...]

Is wall still usable?
I don't see any message sent to the terminal emulators, even if I run

  # wall ciao
 
with root privileges...

Should this be documented somehow?

Any alternative mechanism to warn the users that the system is running
on battery, that a shutdown could happen soon, and so forth?

On a desktop, I can try with the nut-monitor GUI, perhaps.

But on a server, with several users logged through SSH?!?




-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.16.3+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nut-client depends on:
ii  adduser              3.152
ii  init-system-helpers  1.69
ii  libc6                2.41-12
ii  libgcc-s1            15.2.0-1
ii  libnutscan3          2.8.3-2
ii  libstdc++6           15.2.0-1
ii  libsystemd0          258~rc3-1
ii  libupsclient7        2.8.3-2

Versions of packages nut-client recommends:
ii  bash-completion  1:2.16.0-7

Versions of packages nut-client suggests:
pn  nut-monitor  <none>

-- Configuration Files:
/etc/nut/nut.conf [Errno 13] Permission denied: '/etc/nut/nut.conf'
/etc/nut/upsmon.conf [Errno 13] Permission denied: '/etc/nut/upsmon.conf'
/etc/nut/upssched.conf [Errno 13] Permission denied: '/etc/nut/upssched.conf'

-- no debconf information

Reply via email to