NUT Server - allow multiple UPS

Hi there :slight_smile:

I’m using TrueNAS Scale (25.10 Community) on my HP ProLiant MicroServer Gen8 since a few days and I really enjoy it. It’s my first “bare metal” installation since I was always using virtual machines before that. I really hope I’m not doing anything wrong.

However in order to migrate all my mini-PCs and stuffs under one unique TrueNAS instance, I need to get my 3 USB-enabled UPS monitored. For now and since months, I’m using a dedicated Linux mini-PC with a single NUT server monitoring the 3 units. It works fine and I keep an eye on the stats in a dedicated Home Assistant dashboard widget.

The problem I encounter is that TrueNAS only seem to support one unique UPS within its embeded NUT server. As soon as I reboot after editing my ups.conf, upsd.conf, upsmon.conf, upsd.users & nut.conf files, they keep on being reset and overwriten so I loose all my settings.

Is there a way to prevent that and force NUT server to keep my settings ?

Or maybe is there an alternative or official way of doing so and monitor my 3 USB UPSs ?

Thanks in advance for your help !

Best regards,

Damien

Welcome!

Stop trying to force TrueNAS to do something it’s not designed to do. It’s designed to monitor the one UPS it is physically powered by, either via USB or as a UPS Network Slave. Keep in mind that TrueNAS UPS Network Slave reporting graphs do not populate. It’s been this way for many years and I have lost all hope it will ever get fixed, in spite of filling multiple bug reports. There are some hacks that have been reported to get it working, which does not persist on upgrade or reboot.

Use a dedicated appliance (as you are now) to monitor all your UPS as UPS Network Masters, then configure each NAS to monitor the UPS as a Network Slave. You will likely have to configure each on its own port number vs the default 3493.

Otherwise, spin up a virtual machine on TrueNAS and configure it as you have now on a dedicated appliance.

I personally have my UPS monitored by pfSense and each NAS is configured as a UPS Network Slave. TrueNAS and pfSense alerting still works, so I couldn’t care less about the broken TrueNAS UPS reporting graphs.

2 Likes

Hi Elvis,
Thanks for your answer.
I’ll do as you advice and keep my Ubuntu Server mini-PC on monitoring my UPSs.