need help. setting up my UPS

lialmor

Cadet
Joined
May 5, 2021
Messages
3
hello,

i have the APC Easy UPS SRV 2000VA
and would like to know if anyone got it working with truenas and if so how can i configure it?

i already have the USB cable plugged to the UPS and the machine and not sure how to continure from here...
 
Joined
Jun 2, 2019
Messages
591

sergio982

Cadet
Joined
Jan 21, 2022
Messages
1
I have APC 950 and it works with TrueNAS 12 with usb. Here is how todo:
Add new Jail MonitorUPS
with parameters:
Basic Properties
Auto-start
Jail Properties
devfs_rulset: 3
allow_mount_*: allow_mount_devfs

Then start Jail.
Open shell and put commands:
pkg update
pkg install apcupsd
pkg install nano

nano /etc/rc.conf
edit to
apcupsd_enable="YES"

/usr/local/etc/rc.d/apcupsd start

edit file:
nano /usr/local/etc/apcupsd/apcupsd.conf

#BOF
UPSNAME homeups1
UPSCABLE usb
UPSTYPE usb
DEVICE
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
NISIP 0.0.0.0
NISPORT 3551
#EOF

apctest
apcaccess
apcupsd

On trueNAS go to services -> UPS and add:
UPS Mode: Master
Driver: APC ups 3 (various) APCUPSD-controlled
Port or Hostname: 192.168.0.122:3551 <-IP of Jail MonitorUPS
 

lialmor

Cadet
Joined
May 5, 2021
Messages
3
I have APC 950 and it works with TrueNAS 12 with usb. Here is how todo:
Add new Jail MonitorUPS
with parameters:
Basic Properties
Auto-start
Jail Properties
devfs_rulset: 3
allow_mount_*: allow_mount_devfs

Then start Jail.
Open shell and put commands:
pkg update
pkg install apcupsd
pkg install nano

nano /etc/rc.conf
edit to
apcupsd_enable="YES"

/usr/local/etc/rc.d/apcupsd start

edit file:
nano /usr/local/etc/apcupsd/apcupsd.conf

#BOF
UPSNAME homeups1
UPSCABLE usb
UPSTYPE usb
DEVICE
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
NISIP 0.0.0.0
NISPORT 3551
#EOF

apctest
apcaccess
apcupsd

On trueNAS go to services -> UPS and add:
UPS Mode: Master
Driver: APC ups 3 (various) APCUPSD-controlled
Port or Hostname: 192.168.0.122:3551 <-IP of Jail MonitorUPS
when running apctest i get:

2022-01-22 15:56:15 apctest 3.14.14 (31 May 2016) freebsd Checking configuration ... : Warning: old configuration file found. : Expected: "## apcupsd.conf v1.1 ##" : Found: "#BOF " : Please check new file format and : modify accordingly the first line : of config file. : Processing config file anyway. sharenet.type = cable.type = USB Cable mode.type = USB UPS Driver apctest FATAL ERROR in apctest.c at line 313 Unable to create UPS lock file. If apcupsd or apctest is already running, please stop it and run this program again. apctest error termination completed

and with apcaccess:

: Warning: old configuration file found. : Expected: "## apcupsd.conf v1.1 ##" : Found: "#BOF " : Please check new file format and : modify accordingly the first line : of config file. : Processing config file anyway. Error contacting apcupsd @ localhost:3551: Connection refused
 
Top