How to stop upsmon logging flood?

saurav

Contributor
Joined
Jul 29, 2012
Messages
139
I have constant flood of logging like below even when the UPS service is "stopped", showing a round red icon.

Jan 6 16:38:53 freenas-primary upsmon[2251]: UPS BE700Y-IND is unavailable
Jan 6 16:38:58 freenas-primary upsmon[2251]: UPS [BE700Y-IND]: connect failed: Connection failure: Connection refused

Any way to stop this? I couldn't even restart the UPS service (so I could shut it down explicitly to kill this logging).

Hardware: HP N36L (in my signature), running FreeNAS-11.1-U6.3

Thanks,
Saurav.
 
D

dlavigne

Guest
If you decide to report this at bugs.freenas.org, post the issue number here.
 

saurav

Contributor
Joined
Jul 29, 2012
Messages
139
I just unselected the UPS driver in GUI, and the logging stopped.
 

bkw777

Cadet
Joined
Aug 7, 2022
Messages
8
If the gui isn't reachable but you have a console or serial console, get a shell and blindly type:
Code:
service nut_upsmon stop

You still get another ups-related message from collectd, but far less frequent, like every 5 or 10 minutes. This stops the main flood.
In my case it was a lack of network that both caused the upsmon spam, and prevented using the gui to clear it.
 
Last edited:
Top