UPS Trust 1300VA

Status
Not open for further replies.

slyferd

Contributor
Joined
Oct 31, 2012
Messages
177
Ho bisogno di una mano per configurare questo UPS, perchè mi da errore.

UPS Mode: Master
Identifier: ups
Driver: Trust ups 2 UPS 1300VA
Port: /dev/ugen1.3
Auxiliary parameters (ups.conf): Empity
Description:
Shutdown mode: UPS reaches low battery
Shutdown timer: 30
Monitor User: upsmon
Monitor Password: XXXXXXXX
Extra users (upsd.users):
Remote Monitor: ON
Send Email Status Updates: ON
To email: my email
Email Subject: UPS report generated by %h
Power Off UPS: OFF
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Che errore ti da?

Inviato dal mio LG-D855 utilizzando Tapatalk
 

slyferd

Contributor
Joined
Oct 31, 2012
Messages
177
Code:
Mar 3 21:49:28 freenas notifier: Network UPS Tools - Megatec/Q1 protocol serial driver 1.56 (2.7.3)
Mar 3 21:49:28 freenas notifier:
Mar 3 21:49:28 freenas notifier: Fatal error: 'vendorid' is not a valid variable name for this driver.
Mar 3 21:49:28 freenas notifier:
Mar 3 21:49:28 freenas notifier: Look in the man page or call this driver with -h for a list of
Mar 3 21:49:28 freenas notifier: valid variable names and flags.
Mar 3 21:49:28 freenas notifier: Network UPS Tools - UPS driver controller 2.7.3
Mar 3 21:49:28 freenas notifier: Starting nut.
Mar 3 21:49:28 freenas notifier: fopen /var/db/nut/upsd.pid: No such file or directory
Mar 3 21:49:28 freenas notifier: listening on 127.0.0.1 port 3493
Mar 3 21:49:28 freenas notifier: Can't connect to UPS [ups] (blazer_ser-ups): No such file or directory
Mar 3 21:49:28 freenas upsd[35671]: Can't connect to UPS [ups] (blazer_ser-ups): No such file or directory
Mar 3 21:49:28 freenas notifier: /usr/local/etc/nut/cmdvartab not found - disabling descriptions
Mar 3 21:49:28 freenas notifier: Starting nut_upsmon.
Mar 3 21:49:28 freenas notifier: kill: No such process
Mar 3 21:49:28 freenas notifier: UPS: ups (master) (power value 1)
Mar 3 21:49:28 freenas notifier: Using power down flag file /etc/nokillpower
Mar 3 21:49:28 freenas upsmon[35689]: Poll UPS [ups] failed - Driver not connected
Mar 3 21:49:28 freenas upsmon[35689]: Communications with UPS ups lost
Mar 3 21:49:28 freenas notifier: Starting nut_upslog.

FreenasUPS.jpg

Come faccio ad inserire un driver nuovo, che sfrutti il collegamento USB e non la R232?
 

Neuromancer

Explorer
Joined
Jan 14, 2015
Messages
91
in riga tre ti dice che vendorid non è un nome di variabile valida per il driver in oggetto, elimina la riga in questione nelle impostazioni UPS e riprova
 

slyferd

Contributor
Joined
Oct 31, 2012
Messages
177
Code:
[root@freenas ~]# usbconfig
ugen0.1: <EHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <EHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.2: <product 0x8008 vendor 0x8087> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <product 0x8000 vendor 0x8087> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.3: <Virtual Hub American Megatrends Inc.> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen1.4: <Virtual Keyboard and Mouse American Megatrends Inc.> at usbus1, cfg=0md=HOST spd=LOW (1.5Mbps) pwr=ON (0mA)
ugen1.5: <UPS USB MON V1.4 vendor 0x0925> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)


Il vendorid è corretto, lo si può notare in ugen1.5,in ogni caso se togliessi i parametri il plugin non si attiverebbe.
 

Neuromancer

Explorer
Joined
Jan 14, 2015
Messages
91
Infatti non ho detto che il vendorid non sia corretto, leggi quello che viene riportato dal log alla terza riga e trai le conclusioni:

Fatal error: 'vendorid' is not a valid variable name for this driver.
Look in the man page or call this driver with -h for a list of valid variable names and flags.

Fai quel che dice e riprova.
 

slyferd

Contributor
Joined
Oct 31, 2012
Messages
177
Non capisco cosa devo fare, in che modo richiamo il driver dalla shell
 

Neuromancer

Explorer
Joined
Jan 14, 2015
Messages
91
Intanto devi utilizzare la porta usb quindi controlla a quale porta colleghi l'usb, nel tuo caso usbus1, quindi /dev/usbus1.

Poi da shell verifica dove si trova la versione usb del driver, prova qui:
/usr/lib/ups/driver/blazer_usb

studiati il driver nut (network ups tool).
 

slyferd

Contributor
Joined
Oct 31, 2012
Messages
177
L'USB dove è collegata non dovrebbe essere ugen1.5 anche perchè nel menu a tendina non ho il collegamento usbus1 da te indicato.
Per i driver invece si trovano nel percorso /usr/local/libexec/nut
Il problema è che nel menu a tendina non esiste il driver per Trust ups 2 Oxxtron UPS 1300VA (blazer_usb) come faccio a scompattarlo per leggere il codice e come inserisco un driver da me creato?

In rete ho trovato questa configurazione, dove alcuni parametri li ho modificati:
Code:
# TEST
battery.charge: 96.3
battery.voltage: 27.1
battery.voltage.nominal: 24.0
driver.name: oxxtron
driver.parameter.port: /dev/ugen1.5
driver.version: 1
driver.version.internal: 1.1
input.voltage: 222.4
input.voltage.fault: 222.8
input.voltage.maximum: 224.8
input.voltage.minimum: 216.6
output.frequency: 50.0
output.voltage: 219.9
output.voltage.target.battery: 230.0
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 30.0
ups.model: UPS USB MON V1.4
ups.serial: unknown
ups.status: OL
 
Status
Not open for further replies.
Top