[Nut-upsuser] Problem with ups-dummy driver (repeater mode)
Charles Lepple
clepple at gmail.com
Fri Jan 2 01:57:08 UTC 2015
On Jan 1, 2015, at 8:23 PM, Charles Lepple <clepple at gmail.com> wrote:
> On Jan 1, 2015, at 4:57 PM, Jonathan Gammell <jon.gammell at utoronto.ca> wrote:
>
>> [ups]
>> driver = dummy-ups
>> port = eaton1
>> desc = "Dummy UPS"
>
> There is a typo in the specification of "port =" in the dummy-ups man page, but your configuration file is effectively looking for a simulation file named 'eaton1'. The presence of an "@" character enables repeater mode. If you change this to 'port = eaton1 at localhost', things should work as you described.
I should also mention a pair of options that were introduced in 2.7.2: maxretry and retrydelay.
http://www.networkupstools.org/docs/man/ups.conf.html#_global_directives
I haven't used dummy-ups in production (I just use the other mode to simulate an UPS) but I suspect there might be a race condition if upsdrvctl starts dummy-ups before both usbhid-ups instances connect to upsd.
Not sure if there is a backport of NUT 2.7.2 to 12.04, but it might be worth looking into. Or you could manually add something to rc.local that restarts dummy-ups if it is not running, but usbhid-ups is.
--
Charles Lepple
clepple at gmail
More information about the Nut-upsuser
mailing list