UPS service stopped but /var/log/messages still loaded with upsmon messages

JRE

Dabbler
Joined
Jan 22, 2019
Messages
11
Greetings, All -
I searched the forum and did not se anything resembling my question.
We are running FreeNAS-11.0-U4 (54848d13b) on a Virtual Machine. (I know this is not recommended.)
Since it's running on a VM, our UPS service is Stopped and "Start on boot" is disabled.
However, /var/log/messages is loaded with constant messages like these:
Code:
Jan 22 14:29:16 useengnas upsmon[2011]: UPS [ups]: connect failed: Connection failure: Connection refused
Jan 22 14:29:21 useengnas upsmon[2011]: UPS [ups]: connect failed: Connection failure: Connection refused
Jan 22 14:29:26 useengnas upsmon[2011]: UPS [ups]: connect failed: Connection failure: Connection refused
Jan 22 14:29:31 useengnas upsmon[2011]: UPS [ups]: connect failed: Connection failure: Connection refused


I tried the following, which did not help:
Code:
root@useengnas:~ # upsd -c stop
Network UPS Tools upsd 2.7.4
fopen /var/db/nut/upsd.pid: No such file or directory


How can I stop these messages?

Thanks,
JRE
 

saurav

Contributor
Joined
Jul 29, 2012
Messages
139

JRE

Dabbler
Joined
Jan 22, 2019
Messages
11
Thanks, Suarav, but the driver is already not selected - that is, it shows a bunch of dashes
 

saurav

Contributor
Joined
Jul 29, 2012
Messages
139
Then I have no idea. May be try selecting a driver and unselecting it if there's nothing else to try.
 

JRE

Dabbler
Joined
Jan 22, 2019
Messages
11
Hello again Surav -

In the UPS GUI, if I select a driver, it then tells me that a Port is required, but no ports appear in the pull-down.

In an ssh session, I tried using "lsof" to see if any open files relate to "uipsmon"
[root@useengnas ~]# lsof | egrep "COMMAND|/sbin/upsmon"
lsof: WARNING: compiled for FreeBSD release 11.0-RELEASE; this is 11.0-STABLE.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
upsmon 2009 root txt VREG 93,1154220186 61664 84479 /usr/local/sbin/upsmon
upsmon 2011 uucp txt VREG 93,1154220186 61664 84479 /usr/local/sbin/upsmon

The "ps" command does not show processes with ID 2009 or 2011. It seems that the ps command on freeNAS is doctored to show only limited processes.

I also notice that the UPS service, by default, is configured for "Monitor User" = upsmon and "Monitor Password" = fixmepass. But there is no upsmon user in /etc/passwd.

Let me know if any of this information triggers any ideas.

Regards,
JRE
 

JRE

Dabbler
Joined
Jan 22, 2019
Messages
11
SOLVED - I figured out that the "ps -af -l -J 0" command is what I needed. It showed processes running upsmon even though I had used the GUI to stop and disable the "UPS" service. I then used "kill" on the upsmon processes. The offending messages stopped and have not returned even after I restarted the FreeNAS server.
 
Top