<div dir="ltr"><div>I have port set to:</div><div><br></div><div>port = /dev/APC-t and port = /dev/APC-b respectively, and that does seem to work as the system is able to uniquely identify each UPS. When this was set to auto, it was obvious that NUT was just returning info on the first UPS it hit and this was causing a sort of "sharing violation" which was cluttering up the logs.</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Jarrod Coombes<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 22, 2021 at 2:10 AM Jim Klimov <<a href="mailto:jimklimov@gmail.com">jimklimov@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"><div dir="auto"><div>The "serial" config fields are for serial numbers, and I'd expect they are what helps NUT identify your devices.</div><div dir="auto"><br></div><div dir="auto">Some value of "port" is required; maybe it could be the "/dev/apc-X" instead of "auto".</div><div dir="auto"><br></div><div dir="auto">Jim<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Nov 22, 2021, 11:04 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></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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">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" rel="noreferrer" target="_blank">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" rel="noreferrer" 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 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" rel="noreferrer" 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 noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
<br>
</blockquote></div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" rel="noreferrer" 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 noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div></div></div>
</blockquote></div>