Есть два ИБП Ippon, оба подключены через USB-COM переходник. Для них запущен nut:
- ups.conf
[ippon1] driver = megatec port = /dev/ttyUSB1 desc = "Local UPS 1" [ippon2] driver = megatec port = /dev/ttyUSB2 desc = "Local UPS 2"
- upsd.conf
ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT localhost REJECT all
- upsd.users
[user] password = secret allowfrom = localhost action = SET initcmds = ALL
- upsmon.conf
MONITOR ippon1@localhost 1 user secret master MONITOR ippon2@localhost 1 user secret master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 3 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5
Собственно - оно запустилось сначала нормально, затем я сделал перезапуск и вот такие проблемы:
- Запускаем оба мастера для прослушивания и получаем ошибки в логах:
То есть, я могу посмотреть через upsc ippon1 информацию, а для ippon2 недоступна.Aug 1 15:40:15 services upsd[9115]: Can't connect to UPS [ippon2] (megatec-ippon2): No such file or directory Aug 1 15:40:15 services upsmon[9119]: Poll UPS [ippon2@localhost] failed - Driver not connected Aug 1 15:40:30 services upsmon[9119]:last message repeated 3 times Aug 1 15:40:30 services upsmon[9119]: UPS ippon2@localhost is unavailable Aug 1 15:40:30 services wall[10802]: wall: user nut broadcasted 1 lines (37 chars) Aug 1 15:40:35 services upsmon[9119]: Poll UPS [ippon2@localhost] failed - Driver not connected
- Запускаем только первый и получаем:
Aug 1 15:42:50 services upsd[10884]: Startup successful Aug 1 15:42:50 services upsd[10884]: Read from UPS [ippon1] failed: Connection reset by peer Aug 1 15:42:50 services upsd[10884]: Can't connect to UPS [ippon1] (megatec-ippon1): No such file or directory Aug 1 15:42:50 services upsd[10884]: Data for UPS [ippon1] is stale - check driver Aug 1 15:42:50 services upsmon[10887]: Startup successful Aug 1 15:42:50 services upsd[10884]: Client user@127.0.0.1 logged into UPS [ippon1] Aug 1 15:42:50 services upsmon[10888]: Master privileges unavailable on UPS [ippon1@localhost] Aug 1 15:42:50 services upsmon[10888]: Reason: Access denied
- Запускаем только второй:
Aug 1 15:44:08 services upsd[10947]: Unrecognized user setting action Aug 1 15:44:08 services upsd[10947]: Unrecognized user setting initcmds Aug 1 15:44:08 services upsd[10948]: Startup successful Aug 1 15:44:08 services upsmon[10951]: Startup successful Aug 1 15:44:08 services upsd[10948]: Client user@127.0.0.1 logged into UPS [ippon2] Aug 1 15:44:08 services upsmon[10952]: Master privileges unavailable on UPS [ippon2@localhost] Aug 1 15:44:08 services upsmon[10952]: Reason: Access denied Aug 1 15:44:13 services upsmon[10952]: Poll UPS [ippon2@localhost] failed - Driver not connected Aug 1 15:44:13 services upsmon[10952]: Communications with UPS ippon2@localhost lost Aug 1 15:44:13 services wall[10954]: wall: user nut broadcasted 1 lines (47 chars)
Не пойму почему одинаковым ИБП не подходят одинаковые драйвера
и почему вдруг у моего пользователя нет прав для подключения.