Bonjour,
Je possède un UPS MGE Ellipse Max 600, connecté USB sur un mini PC sous Debian 10 Buster utiilsé pour ma Domotique sous Jeedom.
J'ai créer mon serveur NUT (2.7.4-8), cependant quand l'UPS est connecté en USB, il fini par passer en OnLine Off, c'est à dire coupure de l'ondulé.
Non connecté en USB tout va bien.
voici ma configuration:
Fichier nut.conf
Code :
- MODE=standalone
- USPD_OPTIONS="-u root"
|
Fichier ups.conf
Code :
- [Onduleur]
- driver = usbhid-ups
- port = /dev/ttyS0
- default.battery.voltage.high = 14
- default.battery.voltage.low = 11
|
Fichier upsd.conf
Code :
- LISTEN 127.0.0.1 3493
|
Fichier uspd.users
Code :
- [admin]
- password = *********
- allowfrom = localhost
- upsmon master
- actions = SET
- instcmds = ALL
- [Nutsoft]
- password = ********
- actions = FSD
- upsmon master
|
Fichier upsmon.conf
Code :
- # Network UPS Tools: example upsmon configuration
- #
- # This file contains passwords, so keep it secure.
- RUN_AS_USER nut
- MONITOR Onduleur@localhost 1 Nutsoft ******** master
- NOTIFYCMD /usr/local/bin/nutNotify.sh
- #multiple instances running simultaneously
- NOTIFYMSG ONLINE "ONLINE %s"
- NOTIFYMSG ONBATT "ONBATT %s"
- NOTIFYMSG LOWBATT "LOWBATT %s"
- NOTIFYMSG FSD "FSD %s"
- NOTIFYMSG COMMBAD "COMMBAD %s"
- NOTIFYMSG COMMOK "COMMOK %s"
- NOTIFYMSG SHUTDOWN "SHUTDOWN %s"
- NOTIFYMSG REPLBATT "REPLBATT %s"
- NOTIFYMSG NOCOMM "NOCOMM %s"
- NOTIFYFLAG ONLINE SYSLOG+EXEC
- NOTIFYFLAG ONBATT SYSLOG+EXEC
- NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
- NOTIFYFLAG FSD SYSLOG+WALL+EXEC
- NOTIFYFLAG COMMBAD SYSLOG+EXEC
- NOTIFYFLAG COMMOK SYSLOG+EXEC
- NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
- NOTIFYFLAG REPLBATT SYSLOG+EXEC
- NOTIFYFLAG NOCOMM SYSLOG+EXEC
- #NOTIFYMSG type message
- POWERDOWNFLAG /var/lib/nutsoft/killpower
- #POWERDOWNFLAG /var/tmp/killpower
- #Dans la doc :
- #POWERDOWNFLAG /etc/killpower
- SHUTDOWNCMD "/sbin/shutdown -h +0"
- FINALDELAY 2
- MINSUPPLIES 1
- RBWARNTIME 604800
- NOCOMMWARNTIME 21600
- POLLFREQ 15
- POLLFREQALERT 30
- HOSTSYNC 15
- DEADTIME 45
|
Fichier upssched.conf
Code :
- LOCKFN /var/lib/nut/upssched.lock
- PIPEFN /var/lib/nut/upssched.pipe
- CMDSCRIPT /bin/upssched-cmd
- AT ONBATT * START-TIMER onbatt1 13
- AT ONLINE * CANCEL-TIMER onbatt1
- #AT ONBATT * START-TIMER earlyshutdown 30
- #AT ONLINE * CANCEL-TIMER earlyshutdown
- AT ONBATT * START-TIMER onbattwarn 30
- AT ONLINE * CANCEL-TIMER onbattwarn
|
Les commandes dans un terminal:
lsusb
Code :
- Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 001 Device 005: ID 8087:0a2a Intel Corp.
- Bus 001 Device 004: ID 0463:ffff MGE UPS Systems UPS
- Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
- Bus 001 Device 002: ID 1cf1:0030 Dresden Elektronik
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
ls -l /dev/bus/usb/001
Code :
- crw-rw-r-- 1 root root 189, 0 nov. 4 19:00 001
- crw-rw-r-- 1 root root 189, 1 nov. 4 19:00 002
- crw-rw-r-- 1 root root 189, 2 nov. 4 19:00 003
- crw-rw-r-- 1 root nut 189, 3 nov. 8 11:05 004
- crw-rw-r-- 1 root root 189, 4 nov. 4 19:00 005
|
/bin/upsc Onduleur@localhost
Code :
- Init SSL without certificate database
- battery.charge: 100
- battery.charge.low: 20
- battery.runtime: 2081
- battery.type: PbAc
- battery.voltage.high: 14
- battery.voltage.low: 11
- device.mfr: MGE UPS SYSTEMS
- device.model: Ellipse MAX 600
- device.serial: PbAc
- device.type: ups
- driver.name: usbhid-ups
- driver.parameter.pollfreq: 30
- driver.parameter.pollinterval: 2
- driver.parameter.port: /dev/ttyS0
- driver.parameter.synchronous: no
- driver.version: 2.7.4
- driver.version.data: MGE HID 1.39
- driver.version.internal: 0.41
- input.sensitivity: normal
- input.transfer.boost.low: 185
- input.transfer.high: 285
- input.transfer.low: 165
- input.transfer.trim.high: 265
- input.voltage.extended: no
- outlet.1.desc: PowerShare Outlet 1
- outlet.1.id: 2
- outlet.1.status: on
- outlet.1.switchable: no
- outlet.desc: Main Outlet
- outlet.id: 1
- outlet.switchable: no
- output.frequency.nominal: 50
- output.voltage: 230.0
- output.voltage.nominal: 230
- ups.beeper.status: enabled
- ups.delay.shutdown: 20
- ups.delay.start: 30
- ups.firmware: 1.01
- ups.load: 0
- ups.mfr: MGE UPS SYSTEMS
- ups.model: Ellipse MAX 600
- ups.power.nominal: 600
- ups.productid: ffff
- ups.serial: PbAc
- ups.status: OL
- ups.timer.shutdown: 0
- ups.timer.start: 0
- ups.vendorid: 0463
|
upsc -l
Code :
- Init SSL without certificate database
- Onduleur
|
/etc/init.d/ups-monitor status
Pas de résultats
sudo invoke-rc.d nut status
Code :
- Unit nut.service could not be found.
- invoke-rc.d: initscript nut, action "status" failed.
|
Merci.
Message édité par Eddie80 le 08-11-2020 à 11:05:59