I made this to serve my own need (which it does), to allow my Synology NAS a clean shutdown in case of a power cut. My UPS is not recognized if plugged into the NAS via USB, so it is plugged into a different (SBC) computer instead, which runs this.<p>Speaking of prior art, I am only aware of this one: <a href="https://github.com/luizluca/nut-snmpagent" rel="nofollow">https://github.com/luizluca/nut-snmpagent</a>
I am not a fan of Ruby and I only trust software I wrote (a.k.a.: I prefer my own bugs in critical pieces of my infra), so here it is.<p>Posting in case someone else finds it useful, but will answer more general questions (should they come up) as well.