<div dir="ltr"><div><div>> most of NUT is case-sensitive, so this should be "MONITOR".</div><div><br></div><div>That seems to have done the trick. Did I miss that in the documentation? It's definitely not called out in the example config, is it possible to make a suggestion that this get added? It would have saved a ton of time and head bashing.</div></div><div><br></div>>
If these dev nodes work, it is just coincidence<div><br></div><div>Well if I remove them, then I get errors about duplicate commands and the upsc command clearly returns info from only one UPS. So it would appear that the "port = " is definitely not being ignored by something.</div><div><br></div><div>>In your case, it sounds like you can specify "serial =" for each UPS in ups.conf.</div><div><br></div><div>So "serial = /dev/apc-t" and " "serial = /dev/apc-b" under the appropriate UPS in the config?</div><div><br></div><div>Thanks for the help!</div><div><br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Jarrod <br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 21, 2021 at 7:21 PM Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Nov 21, 2021, at 9:28 PM, Jarrod Coombes via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br>
> <br>
> When I try to start the UPS monitor service I get:<br>
> <br>
> Starting Network UPS Tools - power device monitor and shutdown controller...<br>
> fopen /run/nut/upsmon.pid: No such file or directory<br>
> /etc/nut/upsmon.conf line 86: invalid directive monitor APC-t@localhost 1 admin <8 random letters> master<br>
> /etc/nut/upsmon.conf line 87: invalid directive monitor APC-b@localhost 1 admin <8 random letters> master<br>
<br>
^^^^^^^ most of NUT is case-sensitive, so this should be "MONITOR".<br>
<br>
> The two UPSes are identical, so I created some custom udev rules to create /dev/apc-t and /dev/apc-b and this appears to work. I can run ls /dev/a* and get:<br>
> <br>
> /dev/apc-b /dev/apc-t /dev/autofs<br>
<br>
If these dev nodes work, it is just coincidence - the usbhid-ups driver cannot open a specific UPS by a /dev node, and the port option is ignored:<br>
<br>
<a href="https://networkupstools.org/docs/man/usbhid-ups.html#_implementation" rel="noreferrer" target="_blank">https://networkupstools.org/docs/man/usbhid-ups.html#_implementation</a><br>
<br>
In your case, it sounds like you can specify "serial =" for each UPS in ups.conf.<br>
<br>
> _______________________________________________<br>
> Nut-upsuser mailing list<br>
> <a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
> <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
<br>
</blockquote></div>