c4lab
I have four machines plugged on apcups, include two server, one Synology NAS, one QNAP NAS. Yet the ups has only one USB port, I will try to share the ups status to all machines and notify them whether the power is gone.
Connect one of the server to APC via USB.
Then, setup apcupsd
For Ubuntu
In /etc/apcupsd/apcupsd.conf
The NISIP is set to 0.0.0.0
that allow remote access.
And start the services
The other server can get the ups status by apcupsd through network
In /etc/apcupsd/apcupsd.conf
where 192.168.1.2
is the IP of server connected via USB.
Don't forget to manage by systemctl.
Both Synology and QNAP are support nut
protocal.
Now we setup nut server:
You can install nut server or start it in Docker
sudo apt install -y nut
The Configuration:
nut.conf
upsd.conf
upsd.user
and ups.conf
are also need to modify. I will mention later.
You can login to Synology NAS terminal to find the setting of nut client. It is in /usr/syno/etc/ups
, however, it doesn't work when I change the default setting. Thus I try to fit it by changing our configuration.
upsd.user
ups.conf
And in Synology NAS: Change the setting in the web interface.
It works if the Device Information
can show the status.
The setting are located in /etc/config/ups
in QNAP terminal. It doesn't work again when I change the default setting. Here is my setting for QNAP.
upsd.user
ups.conf
Setup in QNAP web
Now, you can merge the configuration together if you have both Synology and QNAP NAS.
upsd.user
ups.conf