phenx
Cadet
- Joined
- Sep 16, 2015
- Messages
- 8
So lately I noticed getting warning messages that my UPS (APC Back-UPS CS 650) is not connected any more. So I tried to restart the service. Here's what I got:
I then reconnected the UPS:
Another attempt to restart the service via web ui was then successful:
upsc also seems to read everything just fine after the reconnect:
Now I've faced this multiple times and since the email signalling also does not work for ups (for every other error I do get an email though, any ideas why that might be?) this is preventing me from making this installation reliable :-( I attached a screenshot from my ups configuration.
Any ideas?
Thank you very much
Code:
Sep 16 20:13:16 srv-nas notifier: kill: No such process Sep 16 20:13:31 srv-nas notifier: Driver exited abnormally Sep 16 20:13:31 srv-nas notifier: Network UPS Tools - UPS driver controller 2.7.3 Sep 16 20:13:31 srv-nas root: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut Sep 16 20:13:31 srv-nas notifier: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut Sep 16 20:13:31 srv-nas notifier: Starting nut_upsmon. Sep 16 20:13:31 srv-nas notifier: kill: No such process Sep 16 20:13:31 srv-nas notifier: UPS: ups (master) (power value 1) Sep 16 20:13:31 srv-nas notifier: Using power down flag file /etc/nokillpower Sep 16 20:13:31 srv-nas upsmon[48209]: UPS [ups]: connect failed: Connection failure: Connection refused Sep 16 20:13:31 srv-nas upsmon[48209]: Communications with UPS ups lost Sep 16 20:13:31 srv-nas kernel: pid 48187 (usbhid-ups), uid 66: exited on signal 11 Sep 16 20:13:31 srv-nas notifier: Starting nut_upslog. Sep 16 20:13:31 srv-nas notifier: Warning: initial connect failed: Connection failure: Connection refused Sep 16 20:13:32 srv-nas notifier: Stopping nut_upslog. Sep 16 20:13:32 srv-nas notifier: Waiting for PIDS: 48229. Sep 16 20:13:32 srv-nas notifier: Stopping nut_upsmon. Sep 16 20:13:56 srv-nas upsmon[48208]: upsmon parent: read Sep 16 20:13:56 srv-nas notifier: Waiting for PIDS: 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209, 48209. Sep 16 20:13:56 srv-nas notifier: nut not running? (check /var/db/nut/upsd.pid).
I then reconnected the UPS:
Code:
Sep 16 20:15:58 srv-nas ugen0.4: <American Power Conversion> at usbus0 (disconnected) Sep 16 20:16:08 srv-nas ugen0.4: <American Power Conversion> at usbus0
Another attempt to restart the service via web ui was then successful:
Code:
Sep 16 20:16:48 srv-nas notifier: kill: No such process Sep 16 20:16:48 srv-nas notifier: Using subdriver: APC HID 0.95 Sep 16 20:16:48 srv-nas notifier: Network UPS Tools - Generic HID driver 0.39 (2.7.3) Sep 16 20:16:48 srv-nas notifier: USB communication driver 0.32 Sep 16 20:16:48 srv-nas notifier: Network UPS Tools - UPS driver controller 2.7.3 Sep 16 20:16:48 srv-nas notifier: Starting nut. Sep 16 20:16:48 srv-nas notifier: fopen /var/db/nut/upsd.pid: No such file or directory Sep 16 20:16:48 srv-nas notifier: listening on 127.0.0.1 port 3493 Sep 16 20:16:48 srv-nas notifier: Connected to UPS [ups]: usbhid-ups-ups Sep 16 20:16:48 srv-nas notifier: /usr/local/etc/nut/cmdvartab not found - disabling descriptions Sep 16 20:16:48 srv-nas notifier: Starting nut_upsmon. Sep 16 20:16:48 srv-nas notifier: kill: No such process Sep 16 20:16:48 srv-nas notifier: UPS: ups (master) (power value 1) Sep 16 20:16:48 srv-nas notifier: Using power down flag file /etc/nokillpower Sep 16 20:16:48 srv-nas notifier: Starting nut_upslog.
upsc also seems to read everything just fine after the reconnect:
Code:
upsc ups@localhost battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.date: 2010/10/23 battery.mfr.date: 2010/10/23 battery.runtime: 1200 battery.runtime.low: 120 battery.temperature: 29.2 battery.type: PbAc battery.voltage: 13.4 battery.voltage.nominal: 12.0 device.mfr: American Power Conversion device.model: Back-UPS CS 650 device.serial: 4B1043P27416 device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: /dev/ugen0.4 driver.parameter.synchronous: no driver.version: 2.7.3 driver.version.data: APC HID 0.95 driver.version.internal: 0.39 input.sensitivity: medium input.transfer.high: 256 input.transfer.low: 196 input.voltage: 224.0 input.voltage.nominal: 230 output.frequency: 50.0 output.voltage: 230.0 output.voltage.nominal: 230.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.firmware: 817.v7 .I ups.firmware.aux: v7 ups.load: 15.0 ups.mfr: American Power Conversion ups.mfr.date: 2010/10/23 ups.model: Back-UPS CS 650 ups.productid: 0002 ups.realpower.nominal: 400 ups.serial: 4B1043P27416 ups.status: OL ups.test.result: No test initiated ups.timer.reboot: 0 ups.timer.shutdown: -1 ups.timer.start: 0 ups.vendorid: 051d
Now I've faced this multiple times and since the email signalling also does not work for ups (for every other error I do get an email though, any ideas why that might be?) this is preventing me from making this installation reliable :-( I attached a screenshot from my ups configuration.
Any ideas?
Thank you very much