Linux ups nut2
Материал из noname.com.ua
Linux UPS 2
Тут короткая заметка про настройку мониторигна бесперебойника через нагиос
Настройка NUT
- Пакеты
ii nut 2.7.4-11ubuntu4 all network UPS tools - metapackage ii nut-cgi 2.7.4-11ubuntu4 amd64 network UPS tools - web interface ii nut-client 2.7.4-11ubuntu4 amd64 network UPS tools - clients ii nut-doc 2.7.4-11ubuntu4 all network UPS tools - documentation ii nut-ipmi 2.7.4-11ubuntu4 amd64 network UPS tools - IPMI driver ii nut-server 2.7.4-11ubuntu4 amd64 network UPS tools - core system ii nut-snmp 2.7.4-11ubuntu4 amd64 network UPS tools - SNMP driver ii nut-xml 2.7.4-11ubuntu4 amd64 network UPS tools - XML/HTTP driver
- Конфиги (минимальные)
/etc/ nut.conf
nut.conf | grep -v '#' MODE=standalone
cat ups.conf | grep -v '#' [riello] driver = riello_ser port = /dev/ttyUSB0 port = /dev/serial/by-id/usb-Cypress_Semiconductor_USB_to_Serial-if00-port0 pollinterval = 5 desc = "Something descriptive"
cat upsd.conf | grep -v '#' LISTEN 127.0.0.1 3493 LISTEN 172.31.100.13 3493