<html><head></head><body><div class="ydpc454651cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Can close the thread! Had a typo in hosts.conf</div><div><br></div>
        
        </div><div id="yahoo_quoted_7211473730" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, October 10, 2023 at 10:07:12 PM EDT, S K via Nut-upsuser <nut-upsuser@alioth-lists.debian.net> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv2413812241"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class="yiv2413812241ydpd9d3c475yahoo-style-wrap"><div></div>
        <div><br clear="none"></div><div><div><div>sudo tcpdump --interface=eth0 -n host 192.168.0.20 and port 3493</div><div>tcpdump: verbose output suppressed, use -v[v]... for full protocol decode</div><div>listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes</div><div>21:55:26.538305 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [P.], seq 3333110794:3333110822, ack 3026019235, win 1004, options [nop,nop,TS val 2185119584 ecr 4073717875], length 28</div><div>21:55:26.539061 IP 192.168.0.20.3493 > 192.168.0.29.36942: Flags [P.], seq 1:30, ack 28, win 509, options [nop,nop,TS val 4073722923 ecr 2185119584], length 29</div><div>21:55:26.539249 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [.], ack 30, win 1004, options [nop,nop,TS val 2185119585 ecr 4073722923], length 0</div><div>21:55:31.551433 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [P.], seq 28:56, ack 30, win 1004, options [nop,nop,TS val 2185124597 ecr 4073722923], length 28</div><div>21:55:31.552211 IP 192.168.0.20.3493 > 192.168.0.29.36942: Flags [P.], seq 30:59, ack 56, win 509, options [nop,nop,TS val 4073727937 ecr 2185124597], length 29</div><div>21:55:31.552406 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [.], ack 59, win 1004, options [nop,nop,TS val 2185124598 ecr 4073727937], length 0</div><div>21:55:36.567843 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [P.], seq 56:84, ack 59, win 1004, options [nop,nop,TS val 2185129614 ecr 4073727937], length 28</div><div>21:55:36.568645 IP 192.168.0.20.3493 > 192.168.0.29.36942: Flags [P.], seq 59:88, ack 84, win 509, options [nop,nop,TS val 4073732954 ecr 2185129614], length 29</div><div>21:55:36.568827 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [.], ack 88, win 1004, options [nop,nop,TS val 2185129615 ecr 4073732954], length 0</div><div>21:55:41.600681 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [P.], seq 84:112, ack 88, win 1004, options [nop,nop,TS val 2185134647 ecr 4073732954], length 28</div><div>21:55:41.601481 IP 192.168.0.20.3493 > 192.168.0.29.36942: Flags [P.], seq 88:117, ack 112, win 509, options [nop,nop,TS val 4073737988 ecr 2185134647], length 29</div><div>21:55:41.601764 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [.], ack 117, win 1004, options [nop,nop,TS val 2185134647 ecr 4073737988], length 0</div><div>21:55:46.621153 IP 192.168.0.29.36942 > 192.168.0.20.3493: Flags [P.], seq 112:140, ack 117, win 1004, options [nop,nop,TS val 2185139667 ecr 4073737988], length 28</div><div>21:55:46.621968 IP 192.168.0.20.3493 > 192.168.0.29.36942: Flags [P.], seq 117:146, ack 140, win 509, options [nop,nop,TS val 4073743009 ecr 2185139667], length 29</div><div><br clear="none"></div></div><br clear="none"></div>
        
        </div><div id="yiv2413812241yqt95950" class="yiv2413812241yqt2905262497"><div id="yiv2413812241yahoo_quoted_7062127471" class="yiv2413812241yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, October 10, 2023 at 05:22:28 PM EDT, Jim Klimov <jimklimov+nut@gmail.com> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="yiv2413812241"><div><div dir="ltr"><div>Well... one troubleshooting idea is to use a sniffer (ngrep, tcpdump, etc.) to see the dialogue between the web server and upsd data server (<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" onclick="return window.theMainWindow.showLinkWarning(this)" href="http://192.168.0.20:3493">192.168.0.20:3493</a>), to check if anything looks fishy there. Maybe some firewalls, SELinux after an update, etc. tempered up and there is no network chatter from http context to outside unless allowed (`setenforce 0` can help quickly confirm or rule out involvement of SELinux).</div><div><br clear="none"></div><div>Another idea is to hack around `drivers/upsstatus.c` to add debug messages around connections (at least `fprintf(stderr...)` but if this matures to become a PR - then ideally `upsdebugx`

 and some way to pass debug verbosity into the program - e.g. config file).<br clear="none"></div></div><br clear="none"><div class="yiv2413812241gmail_quote"><div id="yiv2413812241yqt20505" class="yiv2413812241yqt0897485028"><div dir="ltr" class="yiv2413812241gmail_attr">On Tue, Oct 10, 2023 at 9:03 PM S K via Nut-upsuser <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv2413812241gmail_quote"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr">Hey the NUT sever (<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" onclick="return window.theMainWindow.showLinkWarning(this)" href="http://192.168.0.29/">http://192.168.0.29/</a>) was working fine and the URL <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" onclick="return window.theMainWindow.showLinkWarning(this)" href="http://192.168.0.29/cgi-bin/nut/upsstats.cgi">http://192.168.0.29/cgi-bin/nut/upsstats.cgi</a> did show me all the UPS slaves - but all of a sudden one particular slave is not showing up.....The one that is not showing up IP is <span>192.168.0.20 and the following command in NUT server</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr">upsc <a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:upshpomv@192.168.0.20" target="_blank" href="mailto:upshpomv@192.168.0.20">upshpomv@192.168.0.20</a><br clear="none"></div><div dir="ltr"><span><span><br clear="none"></span></span></div><div dir="ltr"><span><span>Does respond with </span></span></div><div dir="ltr"><span><span><br clear="none"></span></span></div><div dir="ltr"><span></span><div><div>Init SSL without certificate database</div><div>battery.charge: 100</div><div>battery.charge.low: 10</div><div>battery.charge.warning: 20</div><div>battery.mfr.date: CPS</div><div>battery.runtime: 3270</div><div>battery.runtime.low: 300</div><div>battery.type: PbAcid</div><div>battery.voltage: 24.0</div><div>battery.voltage.nominal: 24</div><div>device.mfr: CPS</div><div>device.model: CP1350PFCLCD</div><div>device.serial: 000000000000</div><div>device.type: ups</div><div><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://driver.name">driver.name</a>: usbhid-ups</div><div>driver.parameter.pollfreq: 30</div><div>driver.parameter.pollinterval: 15</div><div>driver.parameter.port: auto</div><div>driver.parameter.synchronous: no</div><div>driver.version: 2.7.4</div><div>driver.version.data: CyberPower HID 0.4</div><div>driver.version.internal: 0.41</div><div>input.transfer.high: 139</div><div>input.transfer.low: 88</div><div>input.voltage: 117.0</div><div>input.voltage.nominal: 120</div><div>output.voltage: 141.0</div><div>ups.beeper.status: enabled</div><div>ups.delay.shutdown: 20</div><div>ups.delay.start: 30</div><div>ups.load: 12</div><div>ups.mfr: CPS</div><div>ups.model: CP1350PFCLCD</div><div>ups.productid: 0501</div><div>ups.realpower.nominal: 810</div><div>ups.serial: 000000000000</div><div>ups.status: OL</div><div>ups.test.result: No test initiated</div><div>ups.timer.shutdown: -60</div><div>ups.timer.start: -60</div><div>ups.vendorid: 0764</div><div><br clear="none"></div></div><div><br clear="none"></div></div><div dir="ltr"><span><span>Hence I know the slave does respond to server but why is it now showing in the <span><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" onclick="return window.theMainWindow.showLinkWarning(this)" href="http://192.168.0.29/cgi-bin/nut/upsstats.cgi" style="color:rgb(25,106,212);text-decoration-line:underline;font-family:Helvetica, Arial, sans-serif;">http://192.168.0.29/cgi-bin/nut/upsstats.cgi</a><span style="color:rgb(0,0,0);font-family:Helvetica, Arial, sans-serif;">  - BTW I have not made ANY changes to hosts.conf in my server. Any idea how to troubleshoot?</span></span></span></span></div><div dir="ltr"><br clear="none"></div></div></div>_______________________________________________<br clear="none">
Nut-upsuser mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" href="mailto:Nut-upsuser@alioth-lists.debian.net">Nut-upsuser@alioth-lists.debian.net</a><br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br clear="none">
</blockquote></div></div>
</div></div></div>
            </div>
        </div></div></div></div><div class="yqt2905262497" id="yqt76840">_______________________________________________<br clear="none">Nut-upsuser mailing list<br clear="none"><a shape="rect" ymailto="mailto:Nut-upsuser@alioth-lists.debian.net" href="mailto:Nut-upsuser@alioth-lists.debian.net">Nut-upsuser@alioth-lists.debian.net</a><br clear="none"><a shape="rect" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br clear="none"></div></div>
            </div>
        </div></body></html>