I'm running TrueNAS Core 13.0-U6.1 which apparently is still stuck on on nut 2.7.4. I also have a
small UPS whose driver has been
updated to actually show meaningful info in the past 8 years.
Out of curiosity, does the current (old) nut driver provide the minimum which is required to notify TrueNAS if it is Online or Offline?
I'm asking if the minimum is available to monitor and shutdown TrueNAS safely.
Let's say your answer is Yes, online and offline are recognized, setup the UPS service as follow:
If you have frequent brownouts or blackouts that last under 1 minute: Set UPS Service to shut down TrueNAS after 60 seconds.
If you have rare brownouts or blackouts that last over 1 minute: Set UPS Service to shutdown TrueNAS after one third or less of it's maximum run time. My 1500 VA UPS can last 15 minutes on new batteries so my shutdown time is 5 minutes. If my power is out for 5 minutes, odds are it will be out for hours. Remember, batteries lose capacity over time regardless of the UPS reporting a full charge.
If in doubt, choose 1 minute, it is the safest option.
If TrueNAS cannot work at all with your UPS, that is a different situation and I understand why you would need to update NUT.
Some assumptions: You are able to establish communications with the UPS, just less "meaningful" information.
What is output if you enter
upsmon ups
assuming you did not change any defaults and you do have communications.