meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:sw:nut:snmp [2021/07/07 13:32] – created niziak | linux:sw:nut:snmp [2021/07/07 14:34] (current) – niziak | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ===== NUT config ===== | ===== NUT config ===== | ||
| - | <file ini / | + | ==== UPS config ==== |
| - | MODE=netserver | + | |
| - | </ | + | |
| <file ini / | <file ini / | ||
| Line 32: | Line 30: | ||
| <code bash> | <code bash> | ||
| + | |||
| + | ==== Local UPS monitor ==== | ||
| + | |||
| + | <file ini / | ||
| + | [local_mon] | ||
| + | password | ||
| + | upsmon master | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | MONITOR UPS3000XL@localhost 1 local_mon local_mon_pass master | ||
| + | MINSUPPLIES 1 | ||
| + | NOTIFYCMD / | ||
| + | POLLFREQ 5 | ||
| + | POLLFREQALERT 5 | ||
| + | HOSTSYNC 15 | ||
| + | DEADTIME 15 | ||
| + | |||
| + | NOTIFYFLAG ONLINE< | ||
| + | NOTIFYFLAG ONBATT< | ||
| + | NOTIFYFLAG LOWBATT< | ||
| + | NOTIFYFLAG FSD<>< | ||
| + | # NOTIFYFLAG COMMOK< | ||
| + | # NOTIFYFLAG COMMBAD< | ||
| + | NOTIFYFLAG SHUTDOWN< | ||
| + | # NOTIFYFLAG REPLBATT< | ||
| + | # NOTIFYFLAG NOCOMM< | ||
| + | # NOTIFYFLAG NOPARENT< | ||
| + | |||
| + | RBWARNTIME 43200 | ||
| + | NOCOMMWARNTIME 300 | ||
| + | FINALDELAY 5 | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | MODE=netserver | ||
| + | </ | ||
| + | |||
| + | Start all services: | ||
| + | <code bash> | ||
| + | systemctl enable --now nut-server.service | ||
| + | systemctl enable --now nut-monitor.service | ||
| + | </ | ||
| + | |||
| + | Test with client: | ||
| + | <code bash> | ||