<div dir="ltr"><div>Hello all, I have been having a problem with upsmon on Fedora 24 on boot. NUT is configured as a netclient to a Raspbian NUT server. After boot up upsmon repeatedly says "connect failed: No such host". It is not able to connect at all until the service is bounced. This seems to indicate a name resolution problem but shouldn't this auto correct once name resolution is working properly regardless? upsmon on the Raspbian NUT server works fine and is attached to localhost:3493.</div><div><br></div><div>I have tried tweaking the systemd file to require upsmon to come up after network-online.target. This doesn't help.</div><div>After boot I am always able to resolve the name from the client correctly but upsmon continues to fail with no such host.</div><div>If I use an ip instead of a DNS name this config works correctly on boot.</div><div><br></div><div><b>Detailed Info</b>:</div><div><b>Client OS</b>: Fedora 24</div><div><b>Client NUT</b>: Network UPS Tools upsmon 2.7.4</div><div><b>Install method</b>: OS package</div><div><br></div><div><b>Server OS: </b>Raspbian 8</div><div><b>Server NUT</b>: Network UPS Tools upsd 2.7.2</div><div><b>Install Method</b>: OS Package</div><div><br></div><div><b>Problem:</b></div><div><b># systemctl status nut-monitor.service</b></div><div><b>----------------------------------------------</b><b><br></b></div><div><div>● nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller</div><div>   Loaded: loaded (/usr/lib/systemd/system/nut-monitor.service; enabled; vendor preset: disabled)</div><div>   Active: active (running) since Fri 2016-09-16 18:44:05 CDT; 7min ago</div><div>  Process: 822 ExecStartPre=/usr/bin/systemd-tmpfiles --create /etc/tmpfiles.d/nut-client.conf (code=exited, status=0/SUCCESS)</div><div> Main PID: 831 (upsmon)</div><div>    Tasks: 2 (limit: 512)</div><div>   CGroup: /system.slice/nut-monitor.service</div><div>           ├─831 /usr/sbin/upsmon -F -DD</div><div>           └─902 /usr/sbin/upsmon -F -DD</div><div><br></div><div>Sep 16 18:51:35 client upsmon[831]:  450.063107        Trying to connect to UPS [ups01@ups.server.lan:3493]                                           <span class="Apple-tab-span" style="white-space:pre"> </span> </div><div>Sep 16 18:51:35 client upsmon[831]:  450.063321        UPS [ups01@ups.server.lan:3493]: connect failed: No such host</div><div>Sep 16 18:51:40 client upsmon[831]:  455.063402        Trying to connect to UPS [ups01@ups.server.lan:3493]                                           <span class="Apple-tab-span" style="white-space:pre">       </span> </div><div>Sep 16 18:51:40 client upsmon[831]:  455.063587        UPS [ups01@ups.server.lan:3493]: connect failed: No such host</div><div>Sep 16 18:51:45 client upsmon[831]:  460.063664        Trying to connect to UPS [ups01@ups.server.lan:3493]                                           <span class="Apple-tab-span" style="white-space:pre">       </span> </div><div>Sep 16 18:51:45 client upsmon[831]:  460.063862        UPS [ups01@ups.server.lan:3493]: connect failed: No such host</div><div>Sep 16 18:51:50 client upsmon[831]:  465.063943        Trying to connect to UPS [ups01@ups.server.lan:3493]                                           <span class="Apple-tab-span" style="white-space:pre">       </span> </div><div>Sep 16 18:51:50 client upsmon[831]:  465.064204        UPS [ups01@ups.server.lan:3493]: connect failed: No such host</div><div>Sep 16 18:51:55 client upsmon[831]:  470.064287        Trying to connect to UPS [ups01@ups.server.lan:3493]                                           <span class="Apple-tab-span" style="white-space:pre">       </span> </div><div>Sep 16 18:51:55 client upsmon[831]:  470.064471        UPS [ups01@ups.server.lan:3493]: connect failed: No such host</div></div><div><b>----------------------------------------------</b><br></div><div><b><br></b></div><div><b>nut.conf:</b></div><div><b>----------------------------------------------</b></div><div><div>UPSMON_OPTIONS=""</div><div>MODE=netclient</div><div>UPSD_OPTIONS=""</div></div><div><b>----------------------------------------------</b><br></div><div><br></div><div><b>upsmon.conf</b></div><div><b>----------------------------------------------</b><br></div><div><div>RBWARNTIME 43200</div><div>MONITOR ups01@ups.server.lan:3493 1 monitor password slave</div><div>POLLFREQALERT 5</div><div>POWERDOWNFLAG /etc/killpower</div><div>POLLFREQ 5</div><div>DEADTIME 15</div><div>MINSUPPLIES 1</div><div>FINALDELAY 5</div><div>NOCOMMWARNTIME 300</div><div>HOSTSYNC 15</div><div>SHUTDOWNCMD "/sbin/shutdown -h +0"</div><div>RUN_AS_USER nut</div></div><div><b>----------------------------------------------</b></div><br class="inbox-inbox-Apple-interchange-newline">After two days of searching I turn to this mailing list. Any suggestions would be appreciated.<div><br class="inbox-inbox-Apple-interchange-newline">I wrote an ansible role to replicate this setup. It should be available on github shortly at <a href="https://github.com/ykuksenko/ansible.nut">https://github.com/ykuksenko/ansible.nut</a> if that helps.<br><div><div><br></div><div>Thank you,</div><div>Yevgeniy.</div><br></div></div></div>