NUT SNMP

Fórumok

Sziasztok!

A NUT-ot próbálom beüzemelni több-kevesebb (egyelőre kevesebb) sikerrel, ubuntun.

Az alábbi csomagokat tettem fel: nut-server, nut-client, nut-snmp

Majd az alábbi paraméterekkel fordítottam a net-snmp csomagot:
./configure --with-mibfiles="/home/[USER]/XPPC-MIB.mib"
make
make install

Majd panaszkodott a libekre, javítottam:
ln -s /usr/local/lib/libnetsnmp.so.15 /usr/lib/libnetsnmp.so.15

Ez után már nem adott hibát az alábbi parancs:
snmptranslate -On XPPC-MIB::hardware

Viszont ha elindítom a service-t akkor hibát dob amit nem tudok javítani.... ("Can't connect to UPS [ups] (snmp-ups-ups): No such file or directory")
# service nut-server start
# service nut-server status
● nut-server.service - LSB: Network UPS Tools initscript
Loaded: loaded (/etc/init.d/nut-server; bad; vendor preset: enabled)
Active: active (running) since cs 2017-05-04 15:27:36 CEST; 14min ago
Docs: man:systemd-sysv-generator(8)
Process: 6970 ExecStop=/etc/init.d/nut-server stop (code=exited, status=0/SUCCESS)
Process: 6979 ExecStart=/etc/init.d/nut-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nut-server.service
└─6989 /lib/nut/upsd

máj 04 15:27:26 template-VirtualBox systemd[1]: Starting LSB: Network UPS Tools initscript...
máj 04 15:27:26 template-VirtualBox nut-server[6979]: * Starting NUT - power devices information server and drivers
máj 04 15:27:36 template-VirtualBox upsd[6988]: listening on 127.0.0.1 port 3493
máj 04 15:27:36 template-VirtualBox upsd[6988]: Can't connect to UPS [ups] (snmp-ups-ups): No such file or directory
máj 04 15:27:36 template-VirtualBox nut-server[6979]: ...done.
máj 04 15:27:36 template-VirtualBox systemd[1]: Started LSB: Network UPS Tools initscript.
máj 04 15:27:36 template-VirtualBox upsd[6989]: Startup successful
máj 04 15:32:36 template-VirtualBox upsd[6989]: Can't connect to UPS [ups] (snmp-ups-ups): No such file or directory
máj 04 15:37:36 template-VirtualBox upsd[6989]: Can't connect to UPS [ups] (snmp-ups-ups): No such file or directory

A config a következő:
vim /etc/nut/ups.conf
[ups]
driver = snmp-ups
port = [Az UPS IP CÍME]
# community = monitor
snmp_version = v1
mibs = XPPC-MIB
pollfreq = 15

Ötlet??