[Eisfair_dev] Allgemeine Frage zu E1 NUT
Andreas Lehmler
wuddy at nexgo.de
Di Okt 6 20:49:43 CEST 2015
Abend Jürgen
> lsusb
eis1-imkebu # lsusb
Protocol spec without prior Class and Subclass spec at line 17403
Bus 002 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> nut-scanner -U
eis1-imkebu # nut-scanner -U
Scanning USB bus.
[nutdev1]
driver = "nutdrv_qx"
port = "auto"
vendorid = "0665"
productid = "5161"
product = "USB to Serial"
vendor = "INNO TECH"
bus = "002"
eis1-imkebu #
> Wie sieht die nut-Konfiguration für Deine USV jetzt genau aus?
***
#------------------------------------------------------------------------------
NUT_DO_DEBUG='no'
#------------------------------------------------------------------------------
# start settings
#------------------------------------------------------------------------------
START_NUT='yes' # activate nut: yes or no
NUT_CLIENT_MODE='no' # run in client mode
NUT_SERVER_MODE='yes' # run in server mode
#------------------------------------------------------------------------------
# client settings
#------------------------------------------------------------------------------
NUT_CLIENT_UPSMON_SYNO_CLIENT='no' # activate Synology NAS client
account
NUT_CLIENT_UPSMON_QNAP_CLIENT='no' # activate QNAP NAS client account
NUT_CLIENT_UPSMON_UPSNAME='ups' # name of ups to connect to
NUT_CLIENT_UPSMON_USER='monuser' # login of upsmon user
NUT_CLIENT_UPSMON_PASS='monuser' # password of upsmon user
NUT_CLIENT_UPSMON_SERVER_IP='' # NUT server ip address
#------------------------------------------------------------------------------
# server settings
#------------------------------------------------------------------------------
NUT_SERVER_UPSMON_ADMIN_USER='admin' # login of upsmon administrator
NUT_SERVER_UPSMON_ADMIN_PASS='admin' # password of upsmon administrator
NUT_SERVER_N='1' # number of ups servers
NUT_SERVER_1_ACTIVE='yes' # 1. active entry: yes or no
NUT_SERVER_1_COMMENT='my first ups' # description
NUT_SERVER_1_DRIVER='blazer_usb' # driver name
NUT_SERVER_1_PORT='/dev/ttyUSB0' # port number
NUT_SERVER_1_CABLE='' # cable type
NUT_SERVER_1_UPSMON_SYNO_CLIENT='no' # activate Synology NAS client
account
NUT_SERVER_1_UPSMON_SYNO_CLIENT_IP='' # Synology NAS client ip address
NUT_SERVER_1_UPSMON_QNAP_CLIENT='no' # activate QNAP NAS client account
NUT_SERVER_1_UPSMON_QNAP_CLIENT_IP='' # QNAP NAS client ip address
NUT_SERVER_1_UPSMON_CLIENT_N='0' # number of client accounts
NUT_SERVER_1_UPSMON_CLIENT_1_ACTIVE='no'
# 1. active entry: yes or no
NUT_SERVER_1_UPSMON_CLIENT_1_USER='monuser'
# login of client account
NUT_SERVER_1_UPSMON_CLIENT_1_PASS='pass'
# password of client account
NUT_SERVER_1_UPSMON_CLIENT_1_IP='' # ip address of client account
NUT_SERVER_WEBGUI='yes' # activate web gui
NUT_SERVER_WEBGUI_DOCUMENT_ROOT='/data-1/web/nut/'
***
> Was wird angezeigt, wenn Du folgendes Skript aufrufst:
> /var/install/bin/nut-debug-driver-load
Load UPS driver in debug mode
Nbr name driver comment
1 ups blazer_usb
Please enter ups number (1-1) or (q)uit:?
> Wäre es dann nicht sinnvoll diese Information auszuwerten bzw. hier zu
> nennen? Wie sonst soll ich wissen was für Probleme beim Laden des
> Treibers auftreten.
Hab das Packet eben neu gestartet
***
│Oct 6 20:13:22 eis1-imkebu blazer_usb[16184]: Startup successful
│
│Oct 6 20:13:22 eis1-imkebu upsd[16199]: listening on 127.0.0.1 port
3493
│
│Oct 6 20:13:22 eis1-imkebu upsd[16199]: Connected to UPS [ups]:
blazer_usb-ups
│
│Oct 6 20:13:22 eis1-imkebu upsd[16200]: Startup successful
│
│Oct 6 20:13:22 eis1-imkebu upsmon[16224]: Startup successful
│
│Oct 6 20:13:22 eis1-imkebu upsmon[16226]: UPS [ups at localhost:]:
connect failed: Connection failure: Connection refused
│
│Oct 6 20:13:22 eis1-imkebu upsmon[16226]: Communications with UPS
ups at localhost: lost
│
│Oct 6 20:13:22 eis1-imkebu upssched[16230]: Executing command: commbad
│
│Oct 6 20:13:27 eis1-imkebu upsmon[16226]: UPS [ups at localhost:]:
connect failed: Connection failure: Connection refused
│
│Oct 6 20:13:27 eis1-imkebu upsmon[16226]: UPS ups at localhost: is
unavailable
│
│Oct 6 20:13:27 eis1-imkebu upssched[16252]: Executing command: nocomm
│
│Oct 6 20:13:32 eis1-imkebu upsmon[16226]: UPS [ups at localhost:]:
connect failed: Connection failure: Connection refused
│
│Oct 6 20:13:37 eis1-imkebu upsmon[16226]: UPS [ups at localhost:]:
connect failed: Connection failure: Connection refused
***
Gruß
Andreas
Mehr Informationen über die Mailingliste Eisfair_dev