<div dir="auto">Thanks, puzzling... as another datapoint, would NUT's `make check-NIT` behave reasonably? It is a set of (hopefully portable, not just bash) scripts to set up and run upsd vs upsc locally. Would at least that work?..<div dir="auto"><br></div><div dir="auto">Also, would the older NUT 2.7.4 release fare better? It is pre-refactoring that happened in the past couple of years to reduce warnings (including data type mismatches) - maybe some int size behind file descriptors popped out wrong here?</div><div dir="auto"><br></div><div dir="auto">Jim</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 19, 2022, 17:41 vom513 via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On Dec 19, 2022, at 9:25 AM, Jim Klimov <<a href="mailto:jimklimov%2Bnut@gmail.com" target="_blank" rel="noreferrer">jimklimov+nut@gmail.com</a>> wrote:<br>
> <br>
> Maybe also try strace, truss and the likes to see what syscalls it makes? e.g. falls on read/select?..<br>
> <br>
<br>
Yep, it’s not even trying a connect().  Here is upsmon vs. curl:<br>
<br>
[root@ss20 ~]# LD_LIBRARY_PATH=/usr/local/ups/lib truss -f /usr/local/ups/sbin/upsmon 2>&1 | grep -i connect<br>
Broadcast Message from nobody (???) on ss20 Mon Dec 19 11:19:26...<br>
Communications with UPS <a href="mailto:ups@192.68.64.30" target="_blank" rel="noreferrer">ups@192.68.64.30</a> lost<br>
Broadcast Message from nobody (???) on ss20 Mon Dec 19 11:19:31...<br>
UPS <a href="mailto:ups@192.68.64.30" target="_blank" rel="noreferrer">ups@192.68.64.30</a> is unavailable<br>
^C<br>
<br>
[root@ss20 ~]# truss curl -I -v <a href="http://burn.net" rel="noreferrer noreferrer" target="_blank">http://burn.net</a> 2>&1 | grep -i connect     <br>
About to connect() to <a href="http://burn.net" rel="noreferrer noreferrer" target="_blank">burn.net</a> port 80 (#0)<br>
connect(4, 0xEFFFEC98, 32, 1)                   Err#150 EINPROGRESS<br>
connected<br>
Connected to <a href="http://burn.net" rel="noreferrer noreferrer" target="_blank">burn.net</a> (2001:19f0:5c01:19a3:45:76:18:80) port 80 (#0)<br>
Closing connection #0<br>
<br>
<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">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>