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

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Wed Jul 30 16:18:28 UTC 2008


Hi Arjen,

Arjen de Korte wrote:
>>> Which machine is the UPS connected to?
>> mybox is the same machine as localhost
> 
> It may be on the same machine, but it is on a different interface. See below.
> 
>>>> 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"
> 
> The above will only work if a DNS query for 'mybox' resolves into
> '192.168.10.75'. Note that in the MONITOR line, this should be a network
> address (see 'man 5 upsmon.conf'), not an entry from 'upsd.users'. When in
> doubt (and the upsmon client is running on the same machine as the upsd
> server), leave the address part out. Since quite a couple of versions, the
> 'localhost' address is used then (which is also explained in this manual
> page).

Thank you for you explaination Arjen, it was completely unclear to me that
mybox should be resolvable and it's not just an alias. Will fix this issue
tomorrow and report back.

thanks,
Riccardo



More information about the Nut-upsuser mailing list