Installation d'un onduleur
de marque Eaton Protection Station 800
apt-get install nut nut-usb
alors problème pour trouver mon onduleur branché en USB
ça marche avec driver=newhidups et port=auto
fichier /etc/nut/ups.conf
#define the ups driver and the port where it's connected
[myups]
driver=newhidups
port=auto
autres fichier dans /etc/nut:
upsd.conf
# access-lists:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL lan 192.168.1.0/24
# rights:
ACCEPT localhost lan
REJECT all
upsd.users
# define the user rights according to the ACL in upsd.conf
[user]
password = *****
allowfrom = localhost lan
upsmon master
upsmon.conf
# define the ups to monitor and the permissions
MONITOR myups@localhost 1 user ***** master
# define the shutdown comand
SHUTDOWNCMD "/sbin/shutdown -h now"
après plusieurs essais, la commande upsc myups@localhost donne :
battery.charge: 100
battery.charge.low: 20
battery.runtime: 1668
driver.name: newhidups
driver.parameter.port: auto
driver.version: 2.0.4
driver.version.data: MGE HID 0.9
driver.version.internal: 0.28
input.transfer.high: 264.0
input.transfer.low: 184.0
outlet.0.desc: Main Outlet
outlet.0.id: 1
outlet.0.switchable: 0
outlet.1.desc: PowerShare Outlet 1
outlet.1.id: 2
outlet.1.switch: 1
outlet.1.switchable: 0
outlet.2.desc: PowerShare Outlet 2
outlet.2.id: 3
outlet.2.switch: 1
outlet.2.switchable: 0
output.voltage: 230.0
ups.delay.shutdown: 0
ups.delay.start: 0
ups.load: 5
ups.mfr: EATON
ups.model: 650
ups.power.nominal: 650
ups.serial: AN2E49008
ups.status: OL CHRG
j'ai installer nut-cgi mais pour l'instant ça ne marche pas à cause d'apache je pense...
après un reboot j'ai constaté qu'il n'y avait plus de connection ,
j'ai rajouté
/etc/init.d/nut start
dans le fichier /etc/rc.local
Après plusieur redémarage j'ai toujours un soucis ... pas de connexion de l'onduleur.
j'ai bidouillé, ça remarche mais je ne sais pas pourquoi !!!
dans tous les cas j'ai changé le driver=usbhid-ups dans le fichier /etc/nut/ups.conf
ensuite j'ai relancer plusieur fois nut par
/etc/init.d/nut reload
???
Bon Alors je crois avoir trouvé :
D'abord il faut (Je pense !) débrancher puis rebrancher la connexion USB.
Le port est bien usbhid-ups et le port en auto.
il faut bien verifier que la commande :
upsdrvctl start
donne un résultat correct du genre
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
Using subdriver: MGE HID 1.18
Ensuite
/etc/init.d/nut reload
et normalment ça marche