[Eisfair_dev] nut v0.91.0 testing für eisfair-1

Stefan Puschek stefan.puschek at t-online.de
Mo Mai 19 11:58:16 CEST 2014


Hallo Jürgen,
..

>>> barbrady # ./apcsmart-old -DDDDD -a ups
>>> Network UPS Tools - APC Smart protocol driver 2.1 (2.7.1)
>>> APC command table version 2.2
>>>    0.000000 send_to_all: SETINFO driver.parameter.port "/dev/ttyS0"
>>>    0.000080 send_to_all: SETINFO driver.parameter.cable "940_0024C"
>>>    0.000131 debug level is '5'
>>>    0.001071 /dev/ttyS0 is locked by another process
>> 
>> lsof /dev/ttyS0 sagt mir, dass da ein apcsmart-process schuld ist: gesucht, 
>> gekillt, nun klappte besser - ich bekomme jede Menge Output, den ich auch 
>> erkenne. Ohne -old kam kein mir bekannter Wert vorbei. Allerdings klemmt da 
>> nochwas:
> 
> danke, auch ein erfolgreiches Debugging hilft uns weiter. :-)

graag gedaan :)

> Vielleicht klappt es jetzt auch wieder mit dem apcsmart-Treiber.
>> /var/install/config.d/nut.sh: line 797: [yes: command not found
> 
> Danke für den Hinweis, in der besagten Zeile 797 fehlt tatsächlich
> ein Leerzeichen. Wenn Du es manuell einfügst sollte die Meldung
> verschwinden.
> 
> IST : if ["${active}" = "yes" ]
> SOLL: if [ "${active}" = "yes" ]

habe ich behoben

Activate configuration now (y/n) [yes]? 

version: v0.91.0
creating ups.conf ...
creating upsd.conf ...
creating upsd.users ...
creating upsmon.conf ...
creating upssched.conf ...
creating run config file ...
removing web cgi files ...
removing web html files ...
adding NUT service ...
setting access rights and ownership ...
finished.
shutting down NUT UPS monitor ... not running.
shutting down NUT UPS server ... not running.
unloading NUT UPS drivers ... not loaded.
loading NUT UPS drivers ... 
- 'apcsmart-old' for ups 'ups' ... failed.
starting NUT UPS server ... done.
starting NUT UPS monitor ... done.
Press ENTER to continue 

allerdings sehe ich einen laufenden apcsmart-old-Prozess, der vorher nicht da 
war (ich kille immer alle diese Prozesse)

von Hand geladen bringt mir nur der -old bekannte Werte, die dann durchlaufen.

Groetjes
Stefan





Mehr Informationen über die Mailingliste Eisfair_dev