You are not logged in.
Pages: 1
Hello,
Here are my config files :
ups.conf :
[ellipse]
driver = usbhid-ups
port = /dev/bus/usb/003/002
desc = <<EATON Ellipse ASR USBS 1600>>
upsd.conf :
MAXAGE 15
LISTEN 127.0.0.1 3493
MAXCONN 32
upsd.users :
[ups]
password = ups
upsmon master
upsmon.conf :
MONITOR ellipse@localhost 1 ups ups master
MINSUPPLIES 1
FINALDELAY 5
HOSTSYNC 15
SHUTDOWNCMD "usr/bin/systemctl poweroff"
POWERDOWNFLAG /etc/killpower
POLLFREQ 5
POLLFREQALERT 5
DEADTIME 15
NOCOMMWARNTIME 300
RBWARNTIME 43200
upssched.conf :
CMDSCRIPT /opt/bin/upssched-cmd
PIPEFN /var/run/nut/upssched.pipe
LOCKFN /var/run/nut/upssched.lock
AT ONBATT * EXECUTE ups-on-battery
AT ONLINE * EXECUTE ups-back-on-line
When the power if off, I have the message "UPS ellipse@localhost on battery"
When its gets back, I have "UPS ellipse@localhost on line power"
When it reaches 20% (on battery), it says :
"UPS ellipse@localhost battery is low"
"Executing automatic power-fail shutdown"
"Auto logout and shutdown proceeding"
But it won't shutdown my PC. Here is what's in /etc/killpower : upsmon-shutdown-file
Here is what I can read in daemon.log :
Oct 9 18:43:22 localhost upsd[2706]: Connected to UPS [ellipse]: usbhid-ups-ellipse
Oct 9 18:43:22 localhost upsd[2707]: User ups@127.0.0.1 logged into UPS [ellipse]
Oct 9 18:44:30 localhost upsd[2707]: Can't connect to UPS [ellipse] (usbhid-ups-ellipse): Connection refused
Oct 9 18:44:32 localhost upsmon[2711]: Poll UPS [ellipse@localhost] failed - Driver not connected
Oct 9 18:44:32 localhost upsmon[2711]: Communications with UPS ellipse@localhost lost
Oct 9 18:44:37 localhost upsmon[2711]: Poll UPS [ellipse@localhost] failed - Write error: Broken pipe
Oct 9 18:44:42 localhost upsmon[2711]: UPS [ellipse@localhost]: connect failed: Connection failure: Connection refused
Oct 9 18:44:47 localhost upsmon[2711]: UPS [ellipse@localhost]: connect failed: Connection failure: Connection refused
Oct 9 18:44:52 localhost upsmon[2711]: UPS [ellipse@localhost]: connect failed: Connection failure: Connection refused
Oct 9 18:44:57 localhost upsmon[2711]: UPS [ellipse@localhost]: connect failed: Connection failure: Connection refused
Oct 9 18:45:02 localhost upsmon[2711]: UPS [ellipse@localhost]: connect failed: Connection failure: Connection refused
Oct 9 18:45:07 localhost upsmon[2711]: UPS [ellipse@localhost]: connect failed: Connection failure: Connection refused
Oct 9 18:45:45 localhost upsd[4212]: Connected to UPS [ellipse]: usbhid-ups-ellipse
Oct 9 18:45:45 localhost upsd[4213]: User ups@127.0.0.1 logged into UPS [ellipse]
Oct 9 18:47:22 localhost upsd[4213]: User ups@127.0.0.1 logged out from UPS [ellipse]
Oct 9 18:47:31 localhost upsd[4932]: Connected to UPS [ellipse]: usbhid-ups-ellipse
Oct 9 18:47:31 localhost upsd[4933]: User ups@127.0.0.1 logged into UPS [ellipse]
Oct 9 18:48:22 localhost upsd[4933]: User ups@127.0.0.1 logged out from UPS [ellipse]
Oct 9 18:48:32 localhost upsd[5358]: Connected to UPS [ellipse]: usbhid-ups-ellipse
Oct 9 18:48:32 localhost upsd[5359]: User ups@127.0.0.1 logged into UPS [ellipse]
Oct 9 18:49:15 localhost upsd[5359]: User ups@127.0.0.1 logged out from UPS [ellipse]
Oct 9 18:49:22 localhost upsd[5778]: Connected to UPS [ellipse]: usbhid-ups-ellipse
Oct 9 18:49:22 localhost upsd[5779]: User ups@127.0.0.1 logged into UPS [ellipse]
Oct 9 18:51:38 localhost upsd[5779]: User ups@127.0.0.1 logged out from UPS [ellipse]
Oct 9 18:51:54 localhost upsd[6805]: Connected to UPS [ellipse]: usbhid-ups-ellipse
Oct 9 18:51:54 localhost upsd[6806]: User ups@127.0.0.1 logged into UPS [ellipse]
Oct 9 18:52:14 localhost upsmon[6809]: UPS ellipse@localhost on battery
Oct 9 18:52:29 localhost upsmon[6809]: UPS ellipse@localhost on line power
Oct 9 18:52:44 localhost upsmon[6809]: UPS ellipse@localhost on battery
Oct 9 19:03:39 localhost upsmon[6809]: UPS ellipse@localhost battery is low
Oct 9 19:03:39 localhost upsd[6806]: Client ups@127.0.0.1 set FSD on UPS [ellipse]
I remembered making it works fine 2 years ago... Now I feel lost ![]()
Also, I soon as you install the package and reboot the computer, upsd, upsmon and so on are active even if I did not tell systemd to act so !
Thank you for your help ![]()
Eric
Offline
Hello.
upsd has no service file (yet), hence is started by the legacy DAEMONS. Check your rc.conf that probably has upsd in its DAEMONS list which makes it start on boot.
Marc
Offline
Pages: 1