Skip to content

How to stop global/root broadcast from NUT services #1231

Open
@SomebodySysop

Description

@SomebodySysop

I have NUT running on an older PC with only 2.0 USB ports. I get "BADCOMM" and "NOCOMM" errors frequently, resulting in "Stale data" messages on the web monitor. To combat this, I commented out those notify flags, and I restart the NUT driver /sbin/upsdrvctl start on this machine every 15 minutes. This results in the following messages being broadcast to the console at each restart:

Broadcast message from root@ContaCam01-Ubuntu (somewhere) (Mon Dec 20 22:30:10                                                                                
Communications with UPS cyberpower-j@localhost established       

These are the corresponding messages in the syslog:

Dec 20 22:30:07 ContaCam01-Ubuntu upsd[924]: Connected to UPS [cyberpower-j]: usbhid-ups-cyberpower-j
Dec 20 22:30:10 ContaCam01-Ubuntu upsmon[927]: Communications with UPS cyberpower-j@localhost established

I have my upsmon.conf configured to NOT include WALL messages:

# Email script for NOTIFYCMD
NOTIFYCMD "/etc/nut/notifycmd.sh"
# Notification events
NOTIFYFLAG ONLINE     SYSLOG+EXEC
NOTIFYFLAG ONBATT     SYSLOG+EXEC
NOTIFYFLAG LOWBATT    SYSLOG+EXEC
NOTIFYFLAG FSD        SYSLOG+EXEC
# NOTIFYFLAG COMMOK     SYSLOG+EXEC
# NOTIFYFLAG COMMBAD    SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN   SYSLOG+EXEC
NOTIFYFLAG REPLBATT   SYSLOG+EXEC
# NOTIFYFLAG NOCOMM     SYSLOG+EXEC
NOTIFYFLAG NOPARENT   SYSLOG+EXEC

Apparently, getting rid of "WALL" doesn't stop these messages from being broadcast when driver is restarted. These messages get in the way when I'm trying to edit files or working on other things. Any suggestions on how to stop them from being broadcast to my console?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions