<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;"><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">[missed hitting reply-all]</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Oct 16, 2014, at 5:20 PM, Michael Stinaff <<a href="mailto:mstinaff@gmail.com">mstinaff@gmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">Just realized that I have ignored an important piece of info that actually started me on this quest.  Thank you for following me through the mud.  Hopefully this will clear a few things up.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Most if not all of the servers will be ESXi or FreeNAS boxes.  FreeNAS has nut built in and ESXi can have it added in with this great user created VIB <a href="http://rene.margar.fr/2012/05/client-nut-pour-esxi-5-0/">http://rene.margar.fr/2012/05/client-nut-pour-esxi-5-0/</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">However both can only monitor a single UPS.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So what I really need (but forgot I needed) is a way to create a virtual UPS that groups two physical UPSes  </div></div></blockquote><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">I admit I had not considered shutting down via something other than a fully configurable upsmon. You might be able to sneak behind the FreeNAS GUI and manually generate upsmon.conf, but that seems brittle, and I have no idea what the equivalent is for the ESXi add-on.</div><div class="gmail_extra"><br></div></div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">Is this what I need? <a href="http://www.networkupstools.org/docs/man/dummy-ups.html">http://www.networkupstools.org/docs/man/dummy-ups.html</a></div><div class="gmail_extra">Is there a best practice or standard config for doing this?</div></div></blockquote><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">Well, it is certainly possible to script up a virtual driver using dummy-ups, but I don't know if anyone is doing that in production.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Despite the wording of the man page regarding the "meta UPS" concept, the code to combine UPSes into a single virtual UPS is not implemented-- dummy-ups will currently either read from a file, or act as a proxy for another single UPS.)</div><div class="gmail_extra"><br></div><div class="gmail_extra">What you could do is write a script to poll two UPSes, and combine their status. Technically, for a shutdown, you only need to poll "ups.status", and then construct a truth table to map OB+OB to OB, OB+LB to OB (assuming two PSUs) and LB+LB (or LB plus any comms errors) to LB. Then, FreeNAS should be able to shut down based on the dummy-ups status. Again, the Raspberry Pi would probably be capable of this.</div><div class="gmail_extra"><br></div></div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">Thank you and sorry for the wild goose chase!</div><div class="gmail_extra"><br></div><div class="gmail_extra">No ascii diagrams this time.  How about a squirrel?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><pre style="word-wrap: break-word; white-space: pre-wrap;"> ,;;:;,
   ;;;;;
  ,:;;:;    ,'=.
  ;:;:;' .=" ,'_\
  ':;:;,/  ,__:=@
   ';;:;  =./)_
     `"=\_  )_"`
          ``'"`</pre></div></div>
</blockquote></div><div>Excellent idea :-)</div><br><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></div></div></div></div></body></html>