UPS with TrueNAS

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
I'm talking of a second machine of this kind:

To elaborate ...

You cannot boot a Linux distro from another USB drive without disabling your TrueNAS for obvious reasons. Let me summarize the situation step by step.

1. To monitor a UPS you need a UPS monitoring service. A piece of server software running 24x7, checking for power loss and then initiating appropriate action.

2. The only open source UPS software (I am aware of) is NUT: https://networkupstools.org

3. The FreeBSD and hence TrueNAS version of NUT is hopelessly outdated. From 2016. So most USB connected UPS don't work (well).

4. But the fault is with the NUT project, IMHO, because they have not released a new version since 2016. So the FreeBSD package maintainer cannot update the package so iXsystems cannot integrate a newer one into TrueNAS.

5. Their approach is: checkout the latest source and compile yourself if you need anything newer than 2016.

6. Which is not possible on TrueNAS because you cannot compile and install your own software without much difficulty and probably breakage at every future TrueNAS update - so why go that way and try to "hack it"?

7. Better get a dirt cheap power efficient Linux system and compile their damned source there, make everything work and have that Linux system running 24x7 monitoring the UPS.

8. Then setup TrueNAS as a slave UPS monitor.


HTH,
Patrick
 
Last edited:
Joined
Jun 2, 2019
Messages
591

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
Did Netgate port a more recent (git) version of NUT or are they also running the latest FreeBSD package, i.e. 2.7.x? If the latter that won't improve USB support much. TrueNAS has got the same.
 
Joined
Jun 2, 2019
Messages
591
Did Netgate port a more recent (git) version of NUT or are they also running the latest FreeBSD package, i.e. 2.7.x? If the latter that won't improve USB support much. TrueNAS has got the same.

pfSense is using 2.7.4.

Many years ago when I had my APC UPS connect to a Debian based system running APCUPSD, I thought I was able to change the battery.mfr.date field when I replaced my battery. NUT claims battery.mfr.date and battery.date are both RO. I temporarily installed APCUPSD package and used apctest tool to change the battery.mfr.date since NUT didn't support.


Screen Shot 2021-08-02 at 5.53.49 PM.png


 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
Joined
Jun 2, 2019
Messages
591
Which means the support for exotic USB models is not better than in TrueNAS.
Which is why I stick with APC. As with anything requiring Linux support, check hardware compatibility before you buy.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737

Max90

Explorer
Joined
Nov 21, 2020
Messages
75
at this point I think I will continue to use it like this, maybe one day they will make updates.
I'm not going to buy a pc on purpose to run the ups, if I wanted I could leave a notebook or its mini-pc with linux near the nas but it doesn't make much sense.
 
Top