[Nut-upsuser] right problem with ups belkin (model who work with nut)

Marc Collin collinm at laboiteaprog.com
Wed Dec 27 04:33:48 CET 2006


hi 

i have a belkin ups
here some setting

chmod 0600 /dev/hiddev0
chown nut:root /dev/hiddev0

linux:/home/sonia # /usr/lib/ups/driver/upsdrvctl start
Network UPS Tools - UPS driver controller 2.0.4
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)

No matching USB/HID UPS found
Driver failed to start (exit status=1)




linux:/home/sonia # /usr/lib/ups/driver/upsdrvctl -u root start
Network UPS Tools - UPS driver controller 2.0.4
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)

Detected a UPS: Belkin /Belkin UPS
Using subdriver: Belkin HID 0.1



linux:/home/sonia # /usr/sbin/upsd
Network UPS Tools upsd 2.0.4
Can't open /etc/ups/upsd.conf: Permission denied
linux:/home/sonia # /usr/sbin/upsd -u root
Network UPS Tools upsd 2.0.4


linux:/home/sonia # /usr/sbin/upsd -u root
Network UPS Tools upsd 2.0.4
Connected to UPS [myups]: newhidups-hiddev0
Synchronizing...done
linux:/home/sonia #


/etc/ups/hosts.conf
MONITOR myups at localhost "Local UPS"

[myups]
        driver = newhidups
        port = /dev/hiddev0
        desc = "Local UPS"

/etc/ups/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCEPT localhost
REJECT all




/etc/ups/upsd.users
[monuser]
        password=mypass
        allowfrom=localhost
        upsmon master

/etc/ups/upsmon.conf
MONITOR myups at localhost 1 monuser monpass master


without to use -u with root value
/usr/lib/ups/driver/upsdrvctl -u root start
/usr/sbin/upsd -u root

i can't use nut

any idea?


also in /etc/init.d/upsd don't know if it's ok
# Preconfigured user ID of UPS devices.
UPSD_USER="nut"

# Owner of UPS port devices (empty to skip device check):
UPS_OWNER="$UPSD_USER:root"


Can't open /etc/ups/upsd.conf: Permission denied



More information about the Nut-upsuser mailing list