#1113743 nut-client: sends notifications via wall by default, but wall fails to work

Package:
nut-client
Source:
nut-client
Description:
network UPS tools - clients
Submitter:
Francesco Poli (wintermute)
Date:
2025-09-01 23:23:03 UTC
Severity:
normal
#1113743#5
Date:
2025-09-01 23:21:25 UTC
From:
To:
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).