Network UPS Tools - UPS driver controller 2.4.1
Network UPS Tools - APC Smart protocol driver 2.00 (2.4.1)
APC command table version 2.0
Detected Smart-UPS 2200 RM [JS0605026405] on /dev/cuau0
Starting nut.
Network UPS Tools upsd 2.4.1
listening on 192.168.0.6 port 3493
listening on 127.0.0.1 port 3493
Connected to UPS [APC]: apcsmart-APC
Starting nut_upslog.
Network UPS Tools upslog 2.4.1
logging status of myups@localhost to /var/log/ups.log (300s intervals)
Starting nut_upsmon.
Network UPS Tools upsmon 2.4.1
UPS: APC@localhost (master) (power value 1)
Using power down flag file /etc/killpower
[APC]
driver = apcsmart
port = /dev/cuau0
cable = 940-1524C
desc = "APC Smart-UPS 2200"
cat /usr/local/etc/nut/upsd.conf
LISTEN 127.0.0.1
LISTEN 192.168.0.6
% upsc apc@localhost
battery.alarm.threshold: 0
battery.charge: 100.0
battery.charge.restart: 15
battery.date: 01/28/06
battery.packs: 000
battery.runtime: 2820
battery.runtime.low: 120
battery.voltage: 54.81
battery.voltage.nominal: 048
driver.name: apcsmart
driver.parameter.cable: 940-1524C
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/cuau0
driver.version: 2.4.1
driver.version.internal: 2.00
input.frequency: 50.00
input.quality: FF
input.sensitivity: H
input.transfer.high: 253
input.transfer.low: 208
input.transfer.reason: S
input.voltage: 218.8
input.voltage.maximum: 218.8
input.voltage.minimum: 218.8
output.voltage: 218.8
output.voltage.nominal: 230
ups.delay.shutdown: 180
ups.delay.start: 000
ups.firmware: 665.6.I
ups.id: UPS_IDEN
ups.load: 020.1
ups.mfr: APC
ups.mfr.date: 01/28/06
ups.model: Smart-UPS 2200 RM
ups.serial: JS0605026405
ups.status: OL
ups.temperature: 031.5
ups.test.interval: 1209600
ups.test.result: NO
ups.conf
[apc]
driver = apcsmart
port = /dev/cuau0
cable = 940-1524D
desc = "APC Smart-UPS 750 XL"
upsd.conf
LISTEN 127.0.0.1
upsd.users
[admin]
password = admin
actions = SET
instcmds = ALL
[monmaster]
password = fuck
upsmon master
upsmon.conf
MONITOR apc@localhost 1 monmaster fuck master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 30
POLLFREQALERT 20
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG+WALL
NOTIFYFLAG ONBATT SYSLOG+WALL
NOTIFYFLAG LOWBATT SYSLOG+WALL
NOTIFYFLAG SHUTDOWN SYSLOG+WALL
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
Jul 22 17:28:04 finn upsmon[1166]: UPS [apc@127.0.0.1]: connect failed: Connection failure: Connection refused
Jul 22 17:28:05 finn apcsmart[1333]: Communications with UPS lost - check cabling
Jul 22 17:28:06 finn upsmon[13075]: Communications with UPS APC@localhost established
Jul 22 17:28:07 finn upsmon[747]: Master privileges unavailable on UPS [apc@localhost]
Jul 22 17:28:07 finn upsmon[747]: Response: [ERR ACCESS-DENIED]
Jul 22 17:28:09 finn upsmon[1340]: Master privileges unavailable on UPS [apc@127.0.0.1]
Jul 22 17:28:09 finn upsmon[1340]: Response: [ERR ACCESS-DENIED]
Jul 22 17:28:09 finn upsmon[1279]: Master privileges unavailable on UPS [apc@127.0.0.1]
Jul 22 17:28:09 finn upsmon[1279]: Response: [ERR ACCESS-DENIED]
Jul 22 17:28:09 finn apcsmart[13892]: Communications with UPS lost: timeout
Jul 22 17:28:09 finn upsmon[1166]: Master privileges unavailable on UPS [apc@127.0.0.1]
Jul 22 17:28:09 finn upsmon[1166]: Response: [ERR ACCESS-DENIED]
Jul 22 17:28:12 finn upsmon[747]: Communications with UPS apc@localhost established
Jul 22 17:28:13 finn apcsmart[1333]: Communications with UPS re-established
Jul 22 17:28:14 finn apcsmart[13892]: Communications with UPS re-established
Jul 22 17:28:14 finn upsmon[1340]: Communications with UPS apc@127.0.0.1 established
Jul 22 17:28:14 finn upsmon[1279]: Communications with UPS apc@127.0.0.1 established
Jul 22 17:28:14 finn upsmon[1166]: Communications with UPS apc@127.0.0.1 established
Jul 22 17:28:17 finn apcsmart[13892]: Communications with UPS lost: timeout
Jul 22 17:28:17 finn apcsmart[1333]: Communications with UPS lost - check cabling
Jul 22 17:28:17 finn apcsmart[14343]: Communications with UPS re-established
Jul 22 17:28:17 finn apcsmart[13895]: Communications with UPS re-established
Jul 22 17:28:18 finn apcsmart[14343]: Communications with UPS lost: timeout
Jul 22 17:28:21 finn upsd[14345]: Data for UPS [apc] is stale - check driver
Jul 22 17:28:22 finn apcsmart[13895]: Communications with UPS lost: timeout
Jul 22 17:28:22 finn upsmon[747]: Poll UPS [apc@localhost] failed - Data stale
Jul 22 17:28:22 finn upsmon[747]: Communications with UPS apc@localhost lost
Jul 22 17:28:24 finn upsmon[1340]: Poll UPS [apc@127.0.0.1] failed - Data stale
Jul 22 17:28:24 finn upsmon[1340]: Communications with UPS apc@127.0.0.1 lost
Jul 22 17:28:24 finn upsmon[1279]: Poll UPS [apc@127.0.0.1] failed - Data stale
Jul 22 17:28:24 finn upsmon[1279]: Communications with UPS apc@127.0.0.1 lost
Jul 22 17:28:24 finn upsmon[1166]: Poll UPS [apc@127.0.0.1] failed - Data stale
Jul 22 17:28:24 finn upsmon[1166]: Communications with UPS apc@127.0.0.1 lost
Jul 22 17:28:25 finn apcsmart[13892]: Communications with UPS re-established
upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
AzureZ писал(а):А чего такая версия древняя??
Для версии 2.2.2 нужны ACLи
% pkg_info |grep nut
nut-2.4.1_6 Network UPS Tools
% cat /usr/local/etc/nut/upsd.conf
LISTEN 127.0.0.1
LISTEN 192.168.0.6
thor% vi apc.txt
Desc: APC UPS cable - 940-0024C
File: apc.txt
Date: 28 December 2003
Auth: Russell Kroll <rkroll@exploits.org>
This is an ASCII version of a drawing sent to me many years ago by
Steve Draper. His original scan was used to create this diagram:
Now for the ASCII version of it:
M-DB9 M - UPS F - PC
1 5
_____________ 1 ----\ 1 --\ DCD
\ o o o o o / 2 ------------ 2 | RxD
\ o o o o / 3 \------- 3 | TxD
~~~~~~~~~ 4 4 --/ DTR
6 9 5 /------- 5 GND
6 | 6 DSR
F-DB9 7 | 7 --\ RTS
5 1 8 | 8 --/ CTS
_____________ 9 ----/ 9 RNG
\ o o o o o /
\ o o o o /
~~~~~~~~~
9 6
The loopback pins (back to the computer) are provided for Powerchute's sake.
The NUT driver (apcsmart) doesn't need them and will work with just the
two data lines and GND connected.
Raven2000 писал(а):AzureZ писал(а):А чего такая версия древняя??
Для версии 2.2.2 нужны ACLи
Во фре это не катит и не работает (ACL нута)
- Код: Выделить всё
% pkg_info |grep nut
nut-2.4.1_6 Network UPS Tools
% cat /usr/local/etc/nut/upsd.conf
LISTEN 127.0.0.1
LISTEN 192.168.0.6
AzureZ писал(а):Да я не про твой нут)
Там выше из лога видно что версия нута 2.2.2
madcat# ll /dev/ugen0.2
lrwxr-xr-x 1 root wheel 9B 29 апр 03:26 /dev/ugen0.2 -> usb/0.2.0
madcat# chmod 777 /dev/ugen0.2
madcat# ll /dev/ugen0.2
lrwxr-xr-x 1 root wheel 9B 29 апр 03:26 /dev/ugen0.2 -> usb/0.2.0
madcat# ll /dev/usb/0.2.0
crwxrwxrwx 1 root operator 0, 106 29 апр 03:26 /dev/usb/0.2.0
madcat# /usr/local/etc/rc.d/nut start
Network UPS Tools - UPS driver controller 2.6.1
Network UPS Tools - Generic HID driver 0.35 (2.6.1)
USB communication driver 0.31
Using subdriver: APC HID 0.95
Starting nut.
Network UPS Tools upsd 2.6.1
/usr/local/etc/nut/upsd.conf is world readable
Account писал(а):Доигрался сегодня. Теперь UPS как только отключишь его от сети сразу умирает, комп не успевает завершить работу, потом включается и комп влючается, и так переодически пока не подашь питание нормально. Полный пиз-ц. Слов нет.
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1