This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| private:nut [2011/09/10 19:03] – faith | private:nut [2026/10/11 21:01] (current) – removed faith | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Nut ====== | ||
| - | |||
| - | ^ Machine ^ UPS ^ Voltage ^ upslogger ^ upsshutdown ^ raid-control ^ | ||
| - | | home | apcups1 | ||
| - | | char | apcups1 | ||
| - | | hydra | apcups1 | ||
| - | | charts | ||
| - | | phoebus | localhost | Yes | Yes | No (server) | | | ||
| - | |||
| - | |||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | apt-get install nut | ||
| - | | ||
| - | ===== Changes to /etc/nut configuration files ===== | ||
| - | ==== nut.conf ==== | ||
| - | |||
| - | MODE=standalone | ||
| - | | ||
| - | ==== ups.conf ==== | ||
| - | === Serial === | ||
| - | |||
| - | This is used on phoebus: | ||
| - | |||
| - | [phoebus] | ||
| - | driver = apcsmart | ||
| - | port = /dev/ttyS0 | ||
| - | |||
| - | In this case, we also need / | ||
| - | |||
| - | KERNEL==" | ||
| - | |||
| - | |||
| - | === USB === | ||
| - | |||
| - | This is used on charts, mnemosyne: | ||
| - | |||
| - | [localhost] | ||
| - | driver = usbhid-ups | ||
| - | port = auto | ||
| - | vendorid = 051d | ||
| - | | ||
| - | === SNMP === | ||
| - | |||
| - | This is used on char, home: | ||
| - | |||
| - | [apcups1] | ||
| - | driver = snmp-ups | ||
| - | port = apcups1 | ||
| - | mibs = apcc | ||
| - | community = public | ||
| - | |||
| - | ==== upsd.conf ==== | ||
| - | |||
| - | This is used on UPS servers mnemosyne, charts, phoebus: | ||
| - | LISTEN 0.0.0.0 | ||
| - | |||
| - | This is used on UPS clients, but isn't required: | ||
| - | LISTEN 127.0.0.1 | ||
| - | |||
| - | ==== upsd.users ==== | ||
| - | |||
| - | This is used on char, charts, home, phoebus: | ||
| - | |||
| - | [upsmon] | ||
| - | password | ||
| - | upsmon master | ||
| - | actions = ALL | ||
| - | instcmds = ALL | ||
| - | |||
| - | ==== upsmon.conf ==== | ||
| - | |||
| - | This is used on charts, home: | ||
| - | |||
| - | MONITOR localhost@localhost 1 upsmon upsmon master | ||
| - | SHUTDOWNCMD "/ | ||
| - | NOTIFYCMD "/ | ||
| - | NOTIFYFLAG ONLINE | ||
| - | NOTIFYFLAG ONBATT | ||
| - | NOTIFYFLAG LOWBATT | ||
| - | NOTIFYFLAG FSD EXEC | ||
| - | NOTIFYFLAG COMMOK | ||
| - | NOTIFYFLAG COMMBAD | ||
| - | NOTIFYFLAG SHUTDOWN | ||
| - | NOTIFYFLAG REPLBATT | ||
| - | NOTIFYFLAG NOCOMM | ||
| - | NOTIFYFLAG NOPARENT | ||
| - | |||
| - | defaults are: | ||
| - | |||
| - | MINSUPPLIES 1 | ||
| - | POLLFREQ 5 | ||
| - | POLLFREQALERT 5 | ||
| - | HOSTSYNC 15 | ||
| - | DEADTIME 15 | ||
| - | POWERDOWNFLAG / | ||
| - | NOTIFYMSG ONLINE | ||
| - | NOTIFYMSG ONBATT | ||
| - | NOTIFYMSG LOWBATT | ||
| - | NOTIFYMSG FSD " | ||
| - | NOTIFYMSG COMMOK | ||
| - | NOTIFYMSG COMMBAD | ||
| - | NOTIFYMSG SHUTDOWN | ||
| - | NOTIFYMSG REPLBATT | ||
| - | NOTIFYMSG NOCOMM | ||
| - | NOTIFYMSG NOPARENT | ||
| - | RBWARNTIME 43200 | ||
| - | NOCOMMWARNTIME 300 | ||
| - | FINALDELAY 5 | ||
| - | |||