-
Notifications
You must be signed in to change notification settings - Fork 5
NETWORK UPS TOOLS
Giancky79 edited this page May 9, 2022
·
10 revisions
Info:
-
installazione diretta
-
apt install nut
-
nano /etc/nut/nut.conf MODE=netserver
-
nano /etc/nut/ups.conf [eaton] driver = usbhid-ups port = auto desc = "Eaton 5E"
-
nano /etc/nut/upsd.conf LISTEN 127.0.0.1 3493 LISTEN ::1 3493 LISTEN IP-PROXMOX 3493
-
nano /etc/nut/upsd.users [admin] password = mypass actions = SET instcmds = ALL [user] password = "test1234" upsmon slave
-
nano /etc/nut/upsmon.conf MONITOR eaton@localhost 1 <nome user> <password> slave POWERDOWNFLAG /etc/killpower SHUTDOWNCMD "/sbin/shutdown -h now" <---cercate il rigo e cambiate
-
systemctl restart nut-server
upsdrvctl start
upscmd -l eaton (lista eaton)
upsd -c reload
upscmd eaton beeper.disable (password admin)
Configurazione Addon HA
users:
- username: ''
password: ''
instcmds:
- all actions: [] devices:
- name: eaton driver: dummy-ups port: /dev/null config: []
mode: netclient shutdown_host: 'false' remote_ups_host: ip proxmox remote_ups_name: nome dispositivo remote_ups_user: user remote_ups_password: password
/etc/udev/rules.d/90-nut-ups.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0764", ATTR{idProduct}=="0501", MODE="0660", GROUP="nut"
service udev restart