[Nut-upsuser] FreeBSD 6.1, MGE Ellipse ASR600USBS,
newhidups & upsd
Peter Selinger
selinger at mathstat.dal.ca
Thu Nov 16 21:02:23 CET 2006
Your problem may be related to the way upsd and upsdrvctl interact.
There are several ways to start the driver:
(1) newhidups [options] auto
(2) newhidups [options] -a myprofile
(3) upsdrvctl start myprofile
where "myprofile" is the name of a profile defined in ups.conf.
Except for testing purposes, it is not recommended to start the driver
directly, so you should always use method (3). The problem is that
upsd needs some files in /var/state/ups to be able to locate the
driver; if you start the driver by method (1), these files will be
incorrectly named.
-- Peter
Eric Masson wrote:
>
> Hello,
>
> I'm facing problems as I'm installing NUT to monitor a MGE Ellipse
> ASR600USBS on a FreeBSD 6.1 box.
>
> UPS is recognized as :
> ugen0: MGE UPS SYSTEMS ELLIPSE, rev 1.10/42.41, addr 2
>
> I'm temporarily using root profile (devfs/devd scripts not modified atm).
>
> newhidups starts & runs fine (unplugging mains makes newhidups outputs
> lots of data when started with -DDDD flags)
>
> When I launch upsd, it barfs vith :
> emss at box:~> /usr/local/sbin/upsd -u root
> Password:
> Network UPS Tools upsd 2.0.4
> Connected to UPS [mge]: newhidups-auto
> Synchronizing........ giving up
>
> I've tried to stop and relaunch it many times but output is always the same.
>
> Relevant config files are :
>
> # Network UPS Tools: example ups.conf
> user = root
> [mge]
> driver = newhidups
> port = auto
> desc = "MGE Ellipse ASR600USBS"
>
> # Network UPS Tools: example upsd configuration file
> ACL all 0.0.0.0/0
> ACL localhost 127.0.0.1/32
>
> ACCEPT localhost
> REJECT all
>
> MAXAGE 30
>
> # Network UPS Tools: Example upsd.users
> [admin]
> password = xxxx
> allowfrom = localhost
> actions = SET
> instcmds = ALL
>
> [monuser]
> password = yyyy
> allowfrom = localhost
> upsmon master
>
> # Network UPS Tools: example upsmon configuration
> RUN_AS_USER root
> MONITOR mge at localhost 1 monuser monuser master
> MINSUPPLIES 1
> SHUTDOWNCMD "/sbin/shutdown -p now"
> POLLFREQ 5
> POLLFREQALERT 5
> HOSTSYNC 15
> DEADTIME 15
> POWERDOWNFLAG /etc/killpower
> RBWARNTIME 43200
> NOCOMMWARNTIME 300
> FINALDELAY 5
>
> Any idea, anyone ?
>
> Regards
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>
More information about the Nut-upsuser
mailing list