<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Nov 8, 2014, at 1:52 PM, Steve Read <<a href="mailto:sd_read@hotmail.com">sd_read@hotmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">I have made changes but it is still the same. That is when the server gets the lowbat/noAC signal it does shut down as expected but the slave does not. <div><br></div><div>Perhaps it makes sense for me to list the present settings:</div><div><br></div><div><b>On the Master:</b></div><div><b><br></b></div><div><b>     nut.conf</b></div><div>        MODE=netserver</div><div><br></div><div><b>     ups.conf</b></div><div><div>       [sdrups]</div><div>           driver = genericups</div><div>           port = /dev/ttyS1</div><div>           desc = "For Server & Backup"</div><div>           upstype=9</div></div><div><br></div><div><b>     upsd.conf</b></div><div>        LISTEN 0.0.0.0</div><div><br></div><div><b>     upsd.users</b></div><div>         [root]</div><div>    <span class="Apple-tab-span" style="white-space: pre;">   </span>     password  = mypassword</div><div><span class="Apple-tab-span" style="white-space: pre;">    </span>     upsmon master</div><div><span class="Apple-tab-span" style="white-space: pre;">  </span>     instcmds = ALL</div><div><br></div><div><b>     upsmon.conf</b></div><div>        MONITOR<span class="Apple-converted-space"> </span><a href="mailto:root@192.168.0.7">root@192.168.0.7</a><span class="Apple-converted-space"> </span>1 sdrups autocadba2 master</div></div></div></blockquote><div><br></div><div>This looks good, except for the MONITOR line. Given the above settings, I think you need this:</div><div><br></div><div>MONITOR <a href="mailto:sdrups@192.168.0.7">sdrups@192.168.0.7</a> 1 root mypassword master</div><div><br></div><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><br></div><div><b>On the Slave:</b></div><div><b><br></b></div><div><b>     nut.conf</b></div><div><b>        </b>MODE=netserver</div></div></div></blockquote><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><br></div><div>MODE=netclient for the slave.</div><div><br></div></div></div><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><b>     upsmon.conf</b></div><div>        MONITOR<span class="Apple-converted-space"> </span><a href="mailto:root@192.168.0.7">root@192.168.0.7</a><span class="Apple-converted-space"> </span>1 sdrups autocadba2 slave</div></div></div></blockquote><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div style="font-weight: normal;"><b><br></b></div><div>Same username/password change as above:</div><div><br></div><div><div style="font-family: Helvetica; font-size: 14px;">MONITOR <a href="mailto:sdrups@192.168.0.7">sdrups@192.168.0.7</a> 1 root mypassword slave</div></div><div style="font-family: Helvetica; font-size: 14px;"><br></div></div></div><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><b>Master:<span class="Apple-converted-space"> </span></b>192.168.0.7</div><div><b>Slave:  <span class="Apple-converted-space"> </span></b>192.168.0.6</div><div><b><br></b></div><div>Dealing with the firewall I applied the following to both the master and slave:</div><div><br></div><div>   <span style="font-size: 12.6666669845581px; text-align: justify; background-color: rgb(247, 249, 250);">sudo iptables -A INPUT -p tcp --dport 3493 -j ACCEPT</span></div><div><span style="font-size: 12.6666669845581px; text-align: justify; background-color: rgb(247, 249, 250);"><br></span></div><div><b><br></b></div><div>I have looked in the log files but have not seen anything to suggest a problem.</div></div></div></blockquote><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><br></div><div>You should see something like this in /var/log/daemon.log:</div><div><br></div><div><div style="margin: 0px; font-size: 14px; font-family: Monaco;">upsmon[1234]: Communications with UPS <a href="mailto:sdrups@192.168.0.7">sdrups@192.168.0.7</a> established</div></div><div><br></div></div></div></div><div>And something like this from netstat on the slave:</div><div><br></div><div><div style="margin: 0px; font-family: Monaco;">$ netstat -t |grep -w nut</div><div style="margin: 0px; font-family: Monaco;">tcp        0      0 192.168.0.6:40925       192.168.0.7:nut  ESTABLISHED</div></div><div><br></div><div><br class="webkit-block-placeholder"></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br></body></html>