Next Previous Contents

5. L'onduleur MGE UPS Ellipse 5000 USB

5.1 Les packages nécessaires.

Vous trouverez ces fichiers sur le site http://www.networkupstools.org/.

5.2 Configuration de base

Editez le fichier /etc/ups/ups.conf et vérifiez la présence des lignes suivantes :

[Ellipse_5000]
     driver = newhidups
     port = auto

Vérifiez que le système reconnait bien l'onduleur :

[root@localhost ups]# upsdrvctl start
Network UPS Tools - UPS driver controller 1.4.2
Network UPS Tools: New HID UPS driver 0.11 (1.4.2)

Warning: This is an experimental driver.
Some features may not function correctly.

Detected an UPS: MGE/ELLIPSE

[root@localhost ups]#

5.3 Configuration du service upsd.

Le fichier /etc/ups/upsd.conf.

ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCESS grant monitor localhost
ACCESS deny all all

Le fichier /etc/ups/upsd.users.

[admin]
        password = mypass
        allowfrom = admworkstation admhome
        actions = SET
        instcmds = ALL

[monuser]
        password  = pass
        allowfrom = workstation
        upsmon slave

Activer le daemon au démarrage.

Vérifiez si la configuration est bonne.

[root@localhost ups]# service upsd start

Si cela fonctionne, vous pouvez activer le service upsd (daemon: /usr/sbin/upsd) au démarage de l'ordinateur.

5.4 Configurer le monitoring.

Le fichier /etc/ups/upsmon.conf.

RUN_AS_USER ups
MONITOR Ellipse_5000@localhost 1 monuser pass slave
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5

Le programme upsmon :

[root@localhost ups]# upsmon
Network UPS Tools upsmon 1.4.2
UPS: Ellipse_5000@localhost (slave) (power value 1)
Using power down flag file /etc/killpower

Le programme upsc :

[root@localhost ups]# upsc Ellipse_5000@localhost
battery.charge: 100
battery.charge.low: 30
battery.runtime: 456
driver.name: newhidups
driver.parameter.port: auto
driver.version: 1.4.2
driver.version.data: MGE HID 0.5
driver.version.internal: 0.11
input.transfer.high: 264.0
input.transfer.low: 184.0
output.voltage: 230.0
ups.delay.shutdown: -1
ups.delay.start: -10
ups.load: 31
ups.mfr: MGE
ups.model: ellipse 500
ups.serial: unknown
ups.status: OL CHRG


Next Previous Contents