<div dir="auto"><div>By side effect, lack of "killpower" touch file works to not-tell the OS shutdown integration on OMV to turn off the UPS. A more proper way about this is generally to change </div><div dir="auto"><br></div><div dir="auto"><span style="font-family:calibri,helvetica,sans-serif;font-size:16px">MONITOR back-ups 1 monmaster 4L[p9<0Vi|Z>xKgK master</span><br><br>(see my earlier message or docs about primary/master vs. secondary/slave clients), to</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:calibri,helvetica,sans-serif;font-size:16px">MONITOR back-ups 1 monmaster 4L[p9<0Vi|Z>xKgK slave</span><br></div><div dir="auto"><br></div><div dir="auto">and it should not even try to turn off the UPS either (nor wait for any other "upsmon" clients before shutting down itself).</div><div dir="auto"><br></div><div dir="auto">> <span style="font-family:calibri,helvetica,sans-serif;font-size:16px">maybe because the UPS sees 2 systems and only one system is down maybe that is why the UPS was going panic mode because it can't shut down the other system that it has to power cycle to bring back operations to normal </span></div><div dir="auto"><br></div><div dir="auto">UPS itself normally has no idea what it feeds (enterprise ones aside), it is told to turn off and it does remove power from the load (computers/routers/etc.) It is not "shutting down" anyone, either: NUT is - on systems that have an `upsmon` client and which subscribe to `MONITOR` a NUT data server like that running on your OMV.</div><div dir="auto"><br></div><div dir="auto">So there's no "panic mode" about it - OMV ran NUT `upsmon` in master mode, and it created a `killpower` file when issuing FSD alert, and the OS integration on OMV saw that file and commanded the UPS to power off because this is the master system and everybody listens to it, and it sinks last - or so is assumed by the design.</div><div dir="auto"><br></div><div dir="auto">If the wall power is back, UPS turns on again if set up and wired to do so (maybe after having the battery "sufficiently" charged).</div><div dir="auto"><br></div><div dir="auto">Note that in your desired setup, OMV goes down, UPS and gaming/router/... live on, and either they die suddenly when the battery is finished, or wall power returns and UPS keeps humming and OMV server stays off until you press its power button (or research if wake-on-LAN can be sent from e.g. router's SSH shell if you're not home). This may be or not be what you want to achieve.</div><div dir="auto"><br></div><div dir="auto">> <span style="font-family:calibri,helvetica,sans-serif;font-size:16px">also my Gaming PC is using windows maybe thats why FSD is not taking effect on it</span></div><div dir="auto"><br></div><div dir="auto">FSD is a NUT concept. While there is a build of NUT for Windows, so your gaming PC could run an `upsmon` client for its own shutdowns (listening to OMV for UPS state info), it seems at the moment it does not. Let's not complicate things for now :)</div><div dir="auto"><br></div><div dir="auto">Hope this helps,</div><div dir="auto">Jim Klimov</div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Sep 8, 2024, 02:28 Mega DooOooM <<a href="mailto:princemodey@hotmail.com">princemodey@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
No only Server PC is connected to my UPS with USB and the only PC with NUT</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
as i told Mr.Roger</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
POWERDOWNFLAG /etc/killpower</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this line might be the culprit it kills my UPS after it shuts down my SERVER after 300 seconds </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
in the documentation he gave me it said something like forcing the UPS to shut down because it is Primary/Critical or something like it</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
i will try with that line POWERDOWNFLAG /etc/killpower removed and see what happens</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
also my Gaming PC is using windows maybe thats why FSD is not taking effect on it</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
so far what i tried after removing that line</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
TEST 1</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
SERVER PC / ROUTER / SWITCH</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
power goes down UPS goes to BATTERY mode --- shuts down my SERVER --- and when the power is back the UPS switches back to AC mode without any power cycle to my UPS</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
TEST 2</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
GAMING PC / ROUTER / SWITCH</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
power goes down UPS goes to BATTERY mode and when the power is back the UPS switches back to AC mode without any power cycle to my UPS</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
the last test will be</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
SERVER PC / GAMING PC / ROUTER / SWITCH</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
and see if your theory is correct or that line was the culprit </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
i also thought that maybe because the UPS sees 2 systems and only one system is down maybe that is why the UPS was going panic mode because it can't shut down the other system that it has to power cycle to bring back operations to normal or KILLING my other
system in order to abide by the first command from NUT we will see though that is why i'm testing right now</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
and sorry to ask this of you but how can i make OMV see my UPS as secondary i read something about that primary UPS from the Documentation</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
but because i'm not an expert i don't know what conf file to edit or what line to add/edit to make this happen a little help from you would be great</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks in advance and really sorry to disturb your day gentlemen.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-9147479560887470370appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-9147479560887470370divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jim Klimov <<a href="mailto:jimklimov%2Bnut@gmail.com" target="_blank" rel="noreferrer">jimklimov+nut@gmail.com</a>><br>
<b>Sent:</b> Sunday, September 8, 2024 12:27 AM<br>
<b>To:</b> Mega DooOooM <<a href="mailto:princemodey@hotmail.com" target="_blank" rel="noreferrer">princemodey@hotmail.com</a>><br>
<b>Cc:</b> nut-upsuser Mailing List <<a href="mailto:nut-upsuser@lists.alioth.debian.org" target="_blank" rel="noreferrer">nut-upsuser@lists.alioth.debian.org</a>><br>
<b>Subject:</b> Re: [Nut-upsuser] Nut-upsuser Digest, Vol 231, Issue 2</font>
<div> </div>
</div>
<div>
<div dir="auto">Cheers, jumping into the discussion late from some travels, sorry.
<div dir="auto"><br>
</div>
<div dir="auto">In the original post, is the "Server PC" the OMV with NUT? Are any of your other machines running NUT (e.g. the `upsmon` client for shutdowns)?</div>
<div dir="auto"><br>
</div>
<div dir="auto">What I guess may be happening is:</div>
<div dir="auto"><br>
</div>
<div dir="auto">* OMV has the physical connection needed to monitor and command the UPS, and its `upsmon` has `MONITOR` for it as `primary` (ex-`master`);</div>
<div dir="auto">* by definition, such a "primary" instance in case of a power outage (and "critical state" of the UPS battery, definitions vary) is responsible for yelling "FSD" (Forced ShutDown) to all other "secondary" clients connected to tge same `upsd`
data server (maybe none in your case), waiting for them all (if any) to disconnect - presumably meaning they are going down, and shuts down itself.</div>
<div dir="auto">* With the "killpower" file in place (created as part of "primary" FSD handling), and some OS shutdown integration, it would also tell all connected UPSes to power off (or power-cycle if power came back, aka "power race condition", to avoid
your systems staying down indefinitely), if the UPS and its NUT driver agree how to support such behavior.</div>
<div dir="auto"><br>
</div>
<div dir="auto">This seems aligned with what you see in practice.</div>
<div dir="auto"><br>
</div>
<div dir="auto">One quick fix can be to change the OMV `MONITOR` mode to `secondary` (ex-`slave`) so only it shuts down when power goes "bad".</div>
<div dir="auto"><br>
</div>
<div dir="auto">Nuanced criteria for the latter, like time spent on battery, can be set in `upssched` (as asked about by Roger). Default "bad"ness is defined by UPS itself claiming a low battery state, maybe also by remaining percentage (depends on driver and
device).</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope this helps,</div>
<div dir="auto">Jim Klimov</div>
<div dir="auto"><br>
</div>
</div>
</div>
</div>
</blockquote></div></div></div>