You can enable the ups service in the truenas gui under system settings → services.
Connect the ups to your nas via usb, go to the shell and use nut-scanner -U to see which drvier your ups expects. Enable the service as discribed, choose any usb driver that matches the one your ups needs .
The Shutdown Command should be :
/sbin/shutdown -P
I too followed your instructions and that guide, and found
root@truenas[~]# nut-scanner -U
Scanning USB bus.
[nutdev1]
driver = "usbhid-ups"
port = "auto"
vendorid = "051D"
productid = "0002"
product = "Back-UPS ES 550G FW:870.O3 .I USB FW:O3"
serial = "5B1422T09119"
vendor = "APC"
bus = "001"
However, once I had configured it, I issue
root@truenas[~]# upsc ups@localhost
but I get told
init SSL without certificate database
Error: Driver not connected
My specific UPS (APC Back-UPS ES550) matches the bus scan above and it uses the usbhid-ups driver which matches half a dozen models listed in the UPS driver, so I am a bit stuck.
I disconnected and reconnected the cable to prove that USB bus scanning and detection is working properly.
I could work through all of the models which match that driver but, as we know, the article says it shouldn’t matter as long as the driver matches.
Which identifier did you give your ups? if it’s not “ups”, then upsc ups@localhost will return the above error. If you’ve given your ups a different identifier the command should be upsc “identifier”@localhost.
Hi,
I struggle to receive data from my NUT Server. Unfortunately in the menu I cant see the possibility to select a driver, but this is what Scale is complained about.
Driver selection is only available when the ups is master afaik, not slave.
And try to change the Identifier to ups, all lower case letters. For me it wasn’t working when the identifier was anything else but “ups” all lower cases.
also with lower case letters the system shows me the same error message when I try to save the config.
EDIT:
I changed the Mode to master, changed the Identifier to ups in lower case letters, selected a driver even if the UPS is not directly connected to the NAS and hit save. The changes have been saved to the config and after that I changed back to slave mode. Now I was able to save the config without a error message.
But still in the report tab for the UPS no values are recorded.