[Nut-upsuser] machine not shutting down and connection failures in logs

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Wed Jul 30 07:21:52 UTC 2008


Hi,

this is my first nut installation, i see lot of connection failure and when i tried
the configuration removing the power chord from the ups i expected tha machine will
power itslef down but this has not happened.

I'm using nut 2.2.2-2 from debian lenny, ups is a mustek powermust 2000 with usb cable.

All config files are root:nut and 640, i've had to add nut user to nut group manually.

ups.conf:
[bongups]
driver = megatec_usb
port = auto
desc "UPS Mustek PowerMust 2000"

upsd.conf:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL mybox 192.168.10.75/32

ACCEPT localhost
ACCEPT mybox
REJECT all

upsd.users:
[admin]
	password = pass
	allowfrom = localhost
	upsmon master

[monuser]
	password = pass
	allowfrom = mybox
	upsmon master

upsmon.conf:
POWERDOWNFLAG /etc/nut/killpower
MONITOR bongups at mybox 1 monuser pass master
SHUTDOWNCMD "/sbin/shutdown -h +0"

syslog (daemon.log):

Jul 30 09:13:18 bong upsd[2819]: listening on 0.0.0.0 port 3493
Jul 30 09:13:18 bong upsd[2819]: Can't connect to UPS [bongups] (megatec_usb-bongups): No such file or directory
Jul 30 09:13:18 bong upsd[2820]: Startup successful
Jul 30 09:13:28 bong upsmon[2823]: Startup successful
Jul 30 09:13:32 bong megatec_usb[2829]: Startup successful
Jul 30 09:13:32 bong upsd[2820]: Connected to UPS [bongups]: megatec_usb-bongups
Jul 30 09:13:34 bong upsd[2820]: Data for UPS [bongups] is stale - check driver
Jul 30 09:13:43 bong upsd[2820]: UPS [bongups] data is no longer stale
Jul 30 09:16:37 bong upsmon[2824]: UPS [bongups at mybox]: connect failed: Connection failure: Connection timed out
Jul 30 09:16:37 bong upsmon[2824]: Communications with UPS bongups at mybox lost
Jul 30 09:19:51 bong upsmon[2824]: UPS [bongups at mybox]: connect failed: Connection failure: Connection timed out
Jul 30 09:19:51 bong upsmon[2824]: UPS bongups at mybox is unavailable

Every 3 minutes i get a failure.

ps aux | grep ups:

nut       2820  0.0  0.0   1944   468 ?        Ss   09:13   0:00 /sbin/upsd
root      2823  0.0  0.0   1952   648 ?        Ss   09:13   0:00 /sbin/upsmon
nut       2824  0.0  0.0   2052   784 ?        S    09:13   0:00 /sbin/upsmon
nut       2829  0.0  0.0   1984   688 ?        Ss   09:13   0:00 /lib/nut/megatec_usb -a bongups
nut       2855  0.0  0.0      0     0 ?        Z    09:16   0:00 [upsmon] <defunct>

The zombie will disappear after a few time.

any hint?

thanks in advance,
riccardo



More information about the Nut-upsuser mailing list