упс Powercom usb
далее как полагается:
ups.conf
- Код: Выделить всё • Развернуть
[pow]
driver = powercom
port = /dev/ttyS0
type=IMP
upsd.conf
- Код: Выделить всё • Развернуть
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
upsd.users
- Код: Выделить всё • Развернуть
[root]
password = 1234
allowfrom = localhost
upsmon master
pow@localhost 1 root 1234 master
upsmon.conf
- Код: Выделить всё • Развернуть
MONITOR pow@localhost 1 root 1234 master
............................
............................
Запускаем
#/sbin/upsdrvctl start
Network UPS Tools - UPS driver controller 2.2.0-
Network UPS Tools - PowerCom and similars protocol UPS driver $ Revision: 0.5 $ (2.2.0-)
data receiving error (-1 instead of 11 bytes)
Запускаем
# /etc/init.d/ups start
Starting UPS driver controller: [ OK ]
п≈п╟п©я┐я│п╨п╟п╣я┌я│я▐ upsd: [ OK ]
п≈п╟п©я┐я│п╨п╟п╣я┌я│я▐ п╪п╬пҐп╦я┌п╬я─ UPS (п╪п╟я│я┌п╣я─): [ OK ]
#
Broadcast message from nut (Tue Jun 15 15:42:30 2010):
Communications with UPS pow@localhost lost
Ну и логи соответственно
Jun 15 15:42:20 upsd[3927]: listening on 0.0.0.0 port 3493
Jun 15 15:42:20 upsd[3927]: Connected to UPS [pow]: powercom-pow
Jun 15 15:42:20 upsd[3928]: Startup successful
Jun 15 15:42:20 upsmon[3931]: Startup successful
Jun 15 15:42:20 upsd[3928]: Client root@127.0.0.1 logged into UPS [pow]
Jun 15 15:42:26 upsd[3928]: Data for UPS [pow] is stale - check driver
Jun 15 15:42:30 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:42:30 upsmon[3932]: Communications with UPS pow@localhost lost
Jun 15 15:42:35 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:42:40 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:42:45 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:42:50 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:42:55 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:00 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:05 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:10 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:15 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:20 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:25 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:30 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:35 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:40 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:45 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:50 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:43:55 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:44:00 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:44:05 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:44:10 upsmon[3932]: Poll UPS [pow@localhost] failed - Data stale
Jun 15 15:44:14 upsmon[3932]: Signal 15: exiting
Jun 15 15:44:14 upsd[3928]: Signal 15: exiting
В чем байда?