* Carlos E. R.
I have tried "RUN_AS_USER root" in upsmon.conf to no avail. If I use:
I have (in upsmon.conf) RUN_AS_USER upsd MONITOR myups@localhost 1 upsd password master in upsd.users [root] password = password allowfrom = localhost actions = SET instcmds = ALL [upsd] password = password allowfrom = localhost upsmon master [upsslave] password = password allowfrom = localhost upsmon slave [root] password = password allowfrom = localhost upsmon master [root] password = password allowfrom = localhost upsmon slave
[myups] # "BELKIN Active Battery Backup" driver = megatec_usb port = auto desc = "Local UPS" user = root
I don't believe the "user =" line is allowed here. Oops, man ups.conf allows it as optional. But you have to define them in upsd.users.
but the driver complains it does not recognise the "user" option. Currently I have this startup line:
$UPSDRVCTL_BIN -u root start || rc_failed
for you looks like $UPSDRVCTL_BIN = /usr/lib/ups/driver/belkin for me: $UPSDRVCTL_BIN = /usr/lib/ups/driver/newhidups ps aux | grep ups /usr/lib/ups/driver/newhidups -a myups as user upsd nut-2.0.4-67.1
I have been pointed to this email:
http://lists.alioth.debian.org/pipermail/nut-upsuser/2008-February/003753.ht...
looking now
and it appears that my particular UPS model works with the development version of the software. I will have to try that next.
have you tried looking at the output of: $UPSDRVCTL_BIN -a myupsd -DDDD there is a lot of information there note: requires <ctrl><c> to stop and I do "rcups restart" after just to make sure that I haven't caused a problem :^) -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org