Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
babouchko
--0000000000001f29a6056f77124b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bonjour, Et sans SSL ca ne fct pas non plus ? Je me souviens plus dr l'option maos tu peux ld désactiver dans un pre mier temps... Après, si tu veux utiliser ssl, as tu mis e' place les certificats ? Bab Le lun. 25 juin 2018 à 14:56, tech a écrit :
Bonjour, j'ai créé : : https://github.com/networkupstools/nut/issues/56" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">https://github.com/networkupstools/nut/issues/56 3 Je tente d'utiliser un onduleur EATON 850pro via USB sur une Debian Stretch Stable. J'ai letsencrypt sur cette machine. Dans les logs j'ai: upsmon Can not initialize SSL context si 850pro est connecté via usb: lsusb Bus 009 Device 003: ID 0463:ffff MGE UPS Systems UPS after install nut using apt-get apt-get install nut libupsclient1 nut-client nut-server upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33 Using subdriver: MGE HID 1.39 nut=standalone mes confs: /etc/nut/ups.conf [850PRO] driver = usbhid-ups port = auto desc = "850PRO" /etc/nut/upsd.conf STATEPATH /var/run/nut MAXCONN 1024 # CERTFILE /etc/letsencrypt/live/REDACTED/cert.pem CERTPATH /etc/letsencrypt/live/REDACTED/ # CERTIDENT "my nut server" "MyPasSw0rD" # CERTREQUEST REQUIRE # - 0 to not request to clients to provide any certificate # - 1 to require to all clients a certificate # - 2 to require to all clients a valid certificate LISTEN ::1 3493 LISTEN 127.0.0.1 3493 /etc/nut/upsd.users #upsmon master [admin] password = 1401 allowfrom = localhost upsmon master actions = SET instcmds = ALL /etc/nut/upsmon.conf MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +1" POLLFREQ 10 POLLFREQALERT 10 HOSTSYNC 15 DEADTIME 20 POWERDOWNFLAG /etc/killpower RBWARNTIME 432000 NOCOMMWARNTIME 300 FINALDELAY 4 CERTPATH /etc/letsencrypt/live/REDACTED/ # CERTHOST <hostname> <certificate name> <certverify> <forcessl> # CERTVERIFY 1 # FORCESSL 0 MONITOR 1 admin 1401 master SHUTDOWNCMD "/sbin/shutdown -h now" HOSTSYNC 15 POWERDOWNFLAG /etc/nut/killpower FINALDELAY 5 NOTIFYCMD /sbin/upssched NOTIFYMSG ONBATT "%s is on battery" NOTIFYMSG ONLINE "%s is back online" NOTIFYMSG LOWBATT "%s has a low battery!" NOTIFYMSG SHUTDOWN "System is being shutdown!" NOTIFYFLAG ONLINE SYSLOG+EXEC NOTIFYFLAG ONBATT SYSLOG+EXEC NOTIFYFLAG LOWBATT SYSLOG+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+EXEC NOTIFYFLAG COMMBAD SYSLOG+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+EXEC NOTIFYFLAG REPLBATT SYSLOG+EXEC NOTIFYFLAG NOCOMM SYSLOG+EXEC /etc/nut/upssched.conf 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 when doing: /etc/init.d/ups-monitor restart && tail -f /var/log/syslog output: [ ok ] Restarting ups-monitor (via systemctl): ups-monitor.service. Jun 19 16:34:54 REDACTED systemd[1]: Stopping LSB: Network UPS Tools monitor initscript... Jun 19 16:34:55 REDACTED ups-monitor[7377]: Stopping NUT - power device monitor and shutdown controller: nut-client. Jun 19 16:34:55 REDACTED systemd[1]: Stopped LSB: Network UPS Tools monitor initscript. Jun 19 16:34:55 REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscript... Jun 19 16:34:55 REDACTED upsmon[7387]: Startup successful Jun 19 16:34:55 REDACTED ups-monitor[7382]: Starting NUT - power device monitor and shutdown controller: nut-client. Jun 19 16:34:55 REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript. Jun 19 16:34:55 REDACTED upsmon[7389]: Init SSL with cerificate database located at /etc/letsencrypt/live/REDACTED/ Jun 19 16:34:55 REDACTED upsmon[7389]: Can not initialize SSL context Jun 19 16:34:55 REDACTED upsmon[7387]: upsmon parent: read status give: /etc/init.d/ups-monitor status ● ups-monitor.service - LSB: Network UPS Tools monitor initscript Loaded: loaded (/etc/init.d/ups-monitor; generated; vendor preset: enabled) Active: active (exited) since Tue 2018-06-19 16:34:55 CEST; 2min 18s a go Docs: man:systemd-sysv-generator(8) Process: 7377 ExecStop=/etc/init.d/ups-monitor stop (code=exited, status=0/SUCCESS) Process: 7382 ExecStart=/etc/init.d/ups-monitor start (code=exited, status=0/SUCCESS) REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscript.. . REDACTED upsmon[7387]: Startup successful REDACTED ups-monitor[7382]: Starting NUT - power device monitor and shutdown contr…lient. REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript. REDACTED upsmon[7389]: Init SSL with cerificate database located at /etc/letsencry…/ . lorque upsl -l réponse: Error: Connection failure: Connection refused Je suis un peu perdue et j'ai pas d'idée.
--0000000000001f29a6056f77124b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir="auto">Bonjour,<div dir="auto">Et sans SSL ca ne fct pas non p lus ?</div><div dir="auto">Je me souviens plus dr l'option maos tu pe ux ld désactiver dans un premier temps... </div><div dir="auto" >Après, si tu veux utiliser ssl, as tu mis e' place les certificat s ?</div><div dir="auto">Bab</div></div><br><div class="gmail_quote"><d iv dir="ltr">Le lun. 25 juin 2018 à 14:56, tech <> a écrit :<br></div><blockquote class="gmail_quote" style="ma rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="ltr"> <div id="m_6464085838079485976divtagdefaultwrapper" style="font-size:12 pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"> <p></p> <div><br> </div> <div><br> </div> <div>Bonjour,</div> <div><br> </div> <div>j'ai créé : : <a href="https://github.com/n etworkupstools/nut/issues/563" target="_blank" rel="noreferrer">https:/ /github.com/networkupstools/nut/issues/563</a></div> <div><br> </div> <div><br> </div> <div><span style="font-size:12pt">Je tente d'utiliser un onduleur EAT ON 850pro via USB sur une Debian Stretch Stable.</span><br> </div> <div>J'ai letsencrypt sur cette machine.</div> <div><br> </div> <div>Dans les logs j'ai:</div> <div>upsmon Can not initialize SSL context</div> <div><br> </div> <div>si 850pro est connecté via usb:</div> <div><br> </div> <div>lsusb</div> <div>Bus 009 Device 003: ID 0463:ffff MGE UPS Systems UPS</div> <div>after install nut using apt-get</div> <div>apt-get install nut libupsclient1 nut-client nut-server</div> <div><span style="font-size:12pt">upsdrvctl start</span><br> </div> <div><br> </div> <div>Network UPS Tools - UPS driver controller 2.7.4</div> <div>Network UPS Tools - Generic HID driver 0.41 (2.7.4)</div> <div>USB communication driver 0.33</div> <div>Using subdriver: MGE HID 1.39</div> <div>nut=standalone </div> <div><br> </div> <div>mes confs:</div> <div>/etc/nut/ups.conf</div> <div><br> </div> <div>[850PRO]</div> <div>driver = usbhid-ups</div> <div>port = auto</div> <div>desc = "850PRO"</div> <div>/etc/nut/upsd.conf</div> <div><br> </div> <div>STATEPATH /var/run/nut</div> <div>MAXCONN 1024</div> <div># CERTFILE /etc/letsencrypt/live/REDACTED/cert.pem</div> <div>CERTPATH /etc/letsencrypt/live/REDACTED/</div> <div># CERTIDENT "my nut server" "MyPasSw0rD"</div> <div># CERTREQUEST REQUIRE</div> <div># - 0 to not request to clients to provide any certificate</div> <div># - 1 to require to all clients a certificate</div> <div># - 2 to require to all clients a valid certificate</div> <div>LISTEN ::1 3493</div> <div>LISTEN 127.0.0.1 3493</div> <div>/etc/nut/upsd.users</div> <div><br> </div> <div>#upsmon master</div> <div>[admin]</div> <div> password = 1401</div> <div> allowfrom = localhost</div> <div> upsmon master</div> <div> actions = SET</div> <div> instcmds = ALL</div> <div>/etc/nut/upsmon.conf</div> <div><br> </div> <div>MINSUPPLIES 1</div> <div>SHUTDOWNCMD "/sbin/shutdown -h +1"</div> <div>POLLFREQ 10</div> <div>POLLFREQALERT 10</div> <div>HOSTSYNC 15</div> <div>DEADTIME 20</div> <div>POWERDOWNFLAG /etc/killpower</div> <div>RBWARNTIME 432000</div> <div>NOCOMMWARNTIME 300</div> <div>FINALDELAY 4</div> <div>CERTPATH /etc/letsencrypt/live/REDACTED/</div> <div># CERTHOST <hostname> <certificate name> <certverify> ; <forcessl></div> <div># CERTVERIFY 1</div> <div># FORCESSL 0</div> <div>MONITOR 1 admin 1401 master</div> <div>SHUTDOWNCMD "/sbin/shutdown -h now"</div> <div>HOSTSYNC 15</div> <div>POWERDOWNFLAG /etc/nut/killpower</div> <div>FINALDELAY 5</div> <div>NOTIFYCMD /sbin/upssched</div> <div>NOTIFYMSG ONBATT "%s is on battery"</div> <div>NOTIFYMSG ONLINE "%s is back online"</div> <div>NOTIFYMSG LOWBATT "%s has a low battery!"</div> <div>NOTIFYMSG SHUTDOWN "System is being shutdown!"</div> <div>NOTIFYFLAG ONLINE SYSLOG+EXEC</div> <div>NOTIFYFLAG ONBATT SYSLOG+EXEC</div> <div>NOTIFYFLAG LOWBATT SYSLOG+EXEC</div> <div>NOTIFYFLAG FSD SYSLOG+WALL+EXEC</div> <div>NOTIFYFLAG COMMOK SYSLOG+EXEC</div> <div>NOTIFYFLAG COMMBAD SYSLOG+EXEC</div> <div>NOTIFYFLAG SHUTDOWN SYSLOG+EXEC</div> <div>NOTIFYFLAG REPLBATT SYSLOG+EXEC</div> <div>NOTIFYFLAG NOCOMM SYSLOG+EXEC</div> <div>/etc/nut/upssched.conf</div> <div><br> </div> <div>LOCKFN /var/lib/nut/upssched.lock</div> <div>PIPEFN /var/lib/nut/upssched.pipe</div> <div>CMDSCRIPT /bin/upssched-cmd</div> <div>AT ONBATT * START-TIMER onbatt1 13</div> <div>AT ONLINE * CANCEL-TIMER onbatt1</div> <div>#AT ONBATT * START-TIMER earlyshutdown 30</div> <div>#AT ONLINE * CANCEL-TIMER earlyshutdown</div> <div>AT ONBATT * START-TIMER onbattwarn 30</div> <div>AT ONLINE * CANCEL-TIMER onbattwarn</div> <div>when doing:</div> <div>/etc/init.d/ups-monitor restart && tail -f /var/log/syslog</di v> <div>output:</div> <div><br> </div> <div>[ ok ] Restarting ups-monitor (via systemctl): ups-monitor.service.</d iv> <div>Jun 19 16:34:54 REDACTED systemd[1]: Stopping LSB: Network UPS Tools m onitor initscript...</div> <div>Jun 19 16:34:55 REDACTED ups-monitor[7377]: Stopping NUT - power devic e monitor and shutdown controller: nut-client.</div> <div>Jun 19 16:34:55 REDACTED systemd[1]: Stopped LSB: Network UPS Tools mo nitor initscript.</div> <div>Jun 19 16:34:55 REDACTED systemd[1]: Starting LSB: Network UPS Tools m onitor initscript...</div> <div>Jun 19 16:34:55 REDACTED upsmon[7387]: Startup successful</div> <div>Jun 19 16:34:55 REDACTED ups-monitor[7382]: Starting NUT - power devic e monitor and shutdown controller: nut-client.</div> <div>Jun 19 16:34:55 REDACTED systemd[1]: Started LSB: Network UPS Tools mo nitor initscript.</div> <div>Jun 19 16:34:55 REDACTED upsmon[7389]: Init SSL with cerificate databa se located at /etc/letsencrypt/live/REDACTED/</div> <div>Jun 19 16:34:55 REDACTED upsmon[7389]: Can not initialize SSL context< /div> <div>Jun 19 16:34:55 REDACTED upsmon[7387]: upsmon parent: read</div> <div>status give:</div> <div><br> </div> <div>/etc/init.d/ups-monitor status</div> <div>● ups-monitor.service - LSB: Network UPS Tools monitor initscr ipt</div> <div> Loaded: loaded (/etc/init.d/ups-monitor; generated; vendo r preset: enabled)</div> <div> Active: active (exited) since Tue 2018-06-19 16:34:55 CES T; 2min 18s ago</div> <div> Docs: man:systemd-sysv-generator(8)</div> <div> Process: 7377 ExecStop=/etc/init.d/ups-monitor stop (code=e xited, status=0/SUCCESS)</div> <div> Process: 7382 ExecStart=/etc/init.d/ups-monitor start (code =exited, status=0/SUCCESS)</div> <div><br> </div> <div>REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscrip t...</div> <div>REDACTED upsmon[7387]: Startup successful</div> <div>REDACTED ups-monitor[7382]: Starting NUT - power device monitor and sh utdown contr…lient.</div> <div>REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript .</div> <div>REDACTED upsmon[7389]: Init SSL with cerificate database located at /e tc/letsencry…/</div> <div>.</div> <div>lorque</div> <div>upsl -l</div> <div>réponse:</div> <div>Error: Connection failure: Connection refused</div> <div><br> </div> <div>Je suis un peu perdue et j'ai pas d'idée.</div> <div><br> </div> <br> <p></p> </div> </div> </div> --0000000000001f29a6056f77124b--
Bonjour,
Et sans SSL ca ne fct pas non plus ?
Je me souviens plus dr l'option maos tu peux ld désactiver dans un pre mier
temps...
Après, si tu veux utiliser ssl, as tu mis e' place les certificats ?
Bab
Le lun. 25 juin 2018 à 14:56, tech <tech@rkn.ovh> a écrit :
Bonjour,
j'ai créé : : https://github.com/networkupstools/nut/issues/56 3
Je tente d'utiliser un onduleur EATON 850pro via USB sur une Debian
Stretch Stable.
J'ai letsencrypt sur cette machine.
Dans les logs j'ai:
upsmon Can not initialize SSL context
si 850pro est connecté via usb:
lsusb
Bus 009 Device 003: ID 0463:ffff MGE UPS Systems UPS
after install nut using apt-get
apt-get install nut libupsclient1 nut-client nut-server
upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
Using subdriver: MGE HID 1.39
nut=standalone
mes confs:
/etc/nut/ups.conf
[850PRO]
driver = usbhid-ups
port = auto
desc = "850PRO"
/etc/nut/upsd.conf
STATEPATH /var/run/nut
MAXCONN 1024
# CERTFILE /etc/letsencrypt/live/REDACTED/cert.pem
CERTPATH /etc/letsencrypt/live/REDACTED/
# CERTIDENT "my nut server" "MyPasSw0rD"
# CERTREQUEST REQUIRE
# - 0 to not request to clients to provide any certificate
# - 1 to require to all clients a certificate
# - 2 to require to all clients a valid certificate
LISTEN ::1 3493
LISTEN 127.0.0.1 3493
/etc/nut/upsd.users
#upsmon master
[admin]
password = 1401
allowfrom = localhost
upsmon master
actions = SET
instcmds = ALL
/etc/nut/upsmon.conf
<div dir="auto">Bonjour,<div dir="auto">Et sans SSL ca ne fct pas non p lus ?</div><div dir="auto">Je me souviens plus dr l'option maos tu pe ux ld désactiver dans un premier temps... </div><div dir="auto" >Après, si tu veux utiliser ssl, as tu mis e' place les certificat s ?</div><div dir="auto">Bab</div></div><br><div class="gmail_quote"><d iv dir="ltr">Le lun. 25 juin 2018 à 14:56, tech <tech@rkn.ovh> a écrit :<br></div><blockquote class="gmail_quote" style="ma rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_6464085838079485976divtagdefaultwrapper" style="font-size:12 pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p></p>
<div><br>
</div>
<div><br>
</div>
<div>Bonjour,</div>
<div><br>
</div>
<div>j'ai créé : : <a href="https://github.com/n etworkupstools/nut/issues/563" target="_blank" rel="noreferrer">https:/ /github.com/networkupstools/nut/issues/563</a></div>
<div><br>
</div>
<div><br>
</div>
<div><span style="font-size:12pt">Je tente d'utiliser un onduleur EAT ON 850pro via USB sur une Debian Stretch Stable.</span><br>
</div>
<div>J'ai letsencrypt sur cette machine.</div>
<div><br>
</div>
<div>Dans les logs j'ai:</div>
<div>upsmon Can not initialize SSL context</div>
<div><br>
</div>
<div>si 850pro est connecté via usb:</div>
<div><br>
</div>
<div>lsusb</div>
<div>Bus 009 Device 003: ID 0463:ffff MGE UPS Systems UPS</div>
<div>after install nut using apt-get</div>
<div>apt-get install nut libupsclient1 nut-client nut-server</div>
<div><span style="font-size:12pt">upsdrvctl start</span><br>
</div>
<div><br>
</div>
<div>Network UPS Tools - UPS driver controller 2.7.4</div>
<div>Network UPS Tools - Generic HID driver 0.41 (2.7.4)</div>
<div>USB communication driver 0.33</div>
<div>Using subdriver: MGE HID 1.39</div>
<div>nut=standalone </div>
<div><br>
</div>
<div>mes confs:</div>
<div>/etc/nut/ups.conf</div>
<div><br>
</div>
<div>[850PRO]</div>
<div>driver = usbhid-ups</div>
<div>port = auto</div>
<div>desc = "850PRO"</div>
<div>/etc/nut/upsd.conf</div>
<div><br>
</div>
<div>STATEPATH /var/run/nut</div>
<div>MAXCONN 1024</div>
<div># CERTFILE /etc/letsencrypt/live/REDACTED/cert.pem</div>
<div>CERTPATH /etc/letsencrypt/live/REDACTED/</div>
<div># CERTIDENT "my nut server" "MyPasSw0rD"</div>
<div># CERTREQUEST REQUIRE</div>
<div># - 0 to not request to clients to provide any certificate</div>
<div># - 1 to require to all clients a certificate</div>
<div># - 2 to require to all clients a valid certificate</div>
<div>LISTEN ::1 3493</div>
<div>LISTEN 127.0.0.1 3493</div>
<div>/etc/nut/upsd.users</div>
<div><br>
</div>
<div>#upsmon master</div>
<div>[admin]</div>
<div> password = 1401</div>
<div> allowfrom = localhost</div>
<div> upsmon master</div>
<div> actions = SET</div>
<div> instcmds = ALL</div>
<div>/etc/nut/upsmon.conf</div>
<div><br>
</div>
<div>MINSUPPLIES 1</div>
<div>SHUTDOWNCMD "/sbin/shutdown -h +1"</div>
<div>POLLFREQ 10</div>
<div>POLLFREQALERT 10</div>
<div>HOSTSYNC 15</div>
<div>DEADTIME 20</div>
<div>POWERDOWNFLAG /etc/killpower</div>
<div>RBWARNTIME 432000</div>
<div>NOCOMMWARNTIME 300</div>
<div>FINALDELAY 4</div>
<div>CERTPATH /etc/letsencrypt/live/REDACTED/</div>
<div># CERTHOST <hostname> <certificate name> <certverify> ; <forcessl></div>
<div># CERTVERIFY 1</div>
<div># FORCESSL 0</div>
<div>MONITOR 850PRO@localhost 1 admin 1401 master</div>
<div>SHUTDOWNCMD "/sbin/shutdown -h now"</div>
<div>HOSTSYNC 15</div>
<div>POWERDOWNFLAG /etc/nut/killpower</div>
<div>FINALDELAY 5</div>
<div>NOTIFYCMD /sbin/upssched</div>
<div>NOTIFYMSG ONBATT "%s is on battery"</div>
<div>NOTIFYMSG ONLINE "%s is back online"</div>
<div>NOTIFYMSG LOWBATT "%s has a low battery!"</div>
<div>NOTIFYMSG SHUTDOWN "System is being shutdown!"</div>
<div>NOTIFYFLAG ONLINE SYSLOG+EXEC</div>
<div>NOTIFYFLAG ONBATT SYSLOG+EXEC</div>
<div>NOTIFYFLAG LOWBATT SYSLOG+EXEC</div>
<div>NOTIFYFLAG FSD SYSLOG+WALL+EXEC</div>
<div>NOTIFYFLAG COMMOK SYSLOG+EXEC</div>
<div>NOTIFYFLAG COMMBAD SYSLOG+EXEC</div>
<div>NOTIFYFLAG SHUTDOWN SYSLOG+EXEC</div>
<div>NOTIFYFLAG REPLBATT SYSLOG+EXEC</div>
<div>NOTIFYFLAG NOCOMM SYSLOG+EXEC</div>
<div>/etc/nut/upssched.conf</div>
<div><br>
</div>
<div>LOCKFN /var/lib/nut/upssched.lock</div>
<div>PIPEFN /var/lib/nut/upssched.pipe</div>
<div>CMDSCRIPT /bin/upssched-cmd</div>
<div>AT ONBATT * START-TIMER onbatt1 13</div>
<div>AT ONLINE * CANCEL-TIMER onbatt1</div>
<div>#AT ONBATT * START-TIMER earlyshutdown 30</div>
<div>#AT ONLINE * CANCEL-TIMER earlyshutdown</div>
<div>AT ONBATT * START-TIMER onbattwarn 30</div>
<div>AT ONLINE * CANCEL-TIMER onbattwarn</div>
<div>when doing:</div>
<div>/etc/init.d/ups-monitor restart && tail -f /var/log/syslog</di v>
<div>output:</div>
<div><br>
</div>
<div>[ ok ] Restarting ups-monitor (via systemctl): ups-monitor.service.</d iv>
<div>Jun 19 16:34:54 REDACTED systemd[1]: Stopping LSB: Network UPS Tools m onitor initscript...</div>
<div>Jun 19 16:34:55 REDACTED ups-monitor[7377]: Stopping NUT - power devic e monitor and shutdown controller: nut-client.</div>
<div>Jun 19 16:34:55 REDACTED systemd[1]: Stopped LSB: Network UPS Tools mo nitor initscript.</div>
<div>Jun 19 16:34:55 REDACTED systemd[1]: Starting LSB: Network UPS Tools m onitor initscript...</div>
<div>Jun 19 16:34:55 REDACTED upsmon[7387]: Startup successful</div>
<div>Jun 19 16:34:55 REDACTED ups-monitor[7382]: Starting NUT - power devic e monitor and shutdown controller: nut-client.</div>
<div>Jun 19 16:34:55 REDACTED systemd[1]: Started LSB: Network UPS Tools mo nitor initscript.</div>
<div>Jun 19 16:34:55 REDACTED upsmon[7389]: Init SSL with cerificate databa se located at /etc/letsencrypt/live/REDACTED/</div>
<div>Jun 19 16:34:55 REDACTED upsmon[7389]: Can not initialize SSL context< /div>
<div>Jun 19 16:34:55 REDACTED upsmon[7387]: upsmon parent: read</div>
<div>status give:</div>
<div><br>
</div>
<div>/etc/init.d/ups-monitor status</div>
<div>● ups-monitor.service - LSB: Network UPS Tools monitor initscr ipt</div>
<div> Loaded: loaded (/etc/init.d/ups-monitor; generated; vendo r preset: enabled)</div>
<div> Active: active (exited) since Tue 2018-06-19 16:34:55 CES T; 2min 18s ago</div>
<div> Docs: man:systemd-sysv-generator(8)</div>
<div> Process: 7377 ExecStop=/etc/init.d/ups-monitor stop (code=e xited, status=0/SUCCESS)</div>
<div> Process: 7382 ExecStart=/etc/init.d/ups-monitor start (code =exited, status=0/SUCCESS)</div>
<div><br>
</div>
<div>REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscrip t...</div>
<div>REDACTED upsmon[7387]: Startup successful</div>
<div>REDACTED ups-monitor[7382]: Starting NUT - power device monitor and sh utdown contr…lient.</div>
<div>REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript .</div>
<div>REDACTED upsmon[7389]: Init SSL with cerificate database located at /e tc/letsencry…/</div>
<div>.</div>
<div>lorque</div>
<div>upsl -l</div>
<div>réponse:</div>
<div>Error: Connection failure: Connection refused</div>
<div><br>
</div>
<div>Je suis un peu perdue et j'ai pas d'idée.</div>
<div><br>
</div>
<br>
<p></p>
</div>
</div>
--0000000000001f29a6056f77124b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bonjour, Et sans SSL ca ne fct pas non plus ? Je me souviens plus dr l'option maos tu peux ld désactiver dans un pre mier temps... Après, si tu veux utiliser ssl, as tu mis e' place les certificats ? Bab Le lun. 25 juin 2018 à 14:56, tech a écrit :
Bonjour, j'ai créé : : https://github.com/networkupstools/nut/issues/56" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">https://github.com/networkupstools/nut/issues/56 3 Je tente d'utiliser un onduleur EATON 850pro via USB sur une Debian Stretch Stable. J'ai letsencrypt sur cette machine. Dans les logs j'ai: upsmon Can not initialize SSL context si 850pro est connecté via usb: lsusb Bus 009 Device 003: ID 0463:ffff MGE UPS Systems UPS after install nut using apt-get apt-get install nut libupsclient1 nut-client nut-server upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33 Using subdriver: MGE HID 1.39 nut=standalone mes confs: /etc/nut/ups.conf [850PRO] driver = usbhid-ups port = auto desc = "850PRO" /etc/nut/upsd.conf STATEPATH /var/run/nut MAXCONN 1024 # CERTFILE /etc/letsencrypt/live/REDACTED/cert.pem CERTPATH /etc/letsencrypt/live/REDACTED/ # CERTIDENT "my nut server" "MyPasSw0rD" # CERTREQUEST REQUIRE # - 0 to not request to clients to provide any certificate # - 1 to require to all clients a certificate # - 2 to require to all clients a valid certificate LISTEN ::1 3493 LISTEN 127.0.0.1 3493 /etc/nut/upsd.users #upsmon master [admin] password = 1401 allowfrom = localhost upsmon master actions = SET instcmds = ALL /etc/nut/upsmon.conf MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +1" POLLFREQ 10 POLLFREQALERT 10 HOSTSYNC 15 DEADTIME 20 POWERDOWNFLAG /etc/killpower RBWARNTIME 432000 NOCOMMWARNTIME 300 FINALDELAY 4 CERTPATH /etc/letsencrypt/live/REDACTED/ # CERTHOST <hostname> <certificate name> <certverify> <forcessl> # CERTVERIFY 1 # FORCESSL 0 MONITOR 1 admin 1401 master SHUTDOWNCMD "/sbin/shutdown -h now" HOSTSYNC 15 POWERDOWNFLAG /etc/nut/killpower FINALDELAY 5 NOTIFYCMD /sbin/upssched NOTIFYMSG ONBATT "%s is on battery" NOTIFYMSG ONLINE "%s is back online" NOTIFYMSG LOWBATT "%s has a low battery!" NOTIFYMSG SHUTDOWN "System is being shutdown!" NOTIFYFLAG ONLINE SYSLOG+EXEC NOTIFYFLAG ONBATT SYSLOG+EXEC NOTIFYFLAG LOWBATT SYSLOG+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+EXEC NOTIFYFLAG COMMBAD SYSLOG+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+EXEC NOTIFYFLAG REPLBATT SYSLOG+EXEC NOTIFYFLAG NOCOMM SYSLOG+EXEC /etc/nut/upssched.conf 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 when doing: /etc/init.d/ups-monitor restart && tail -f /var/log/syslog output: [ ok ] Restarting ups-monitor (via systemctl): ups-monitor.service. Jun 19 16:34:54 REDACTED systemd[1]: Stopping LSB: Network UPS Tools monitor initscript... Jun 19 16:34:55 REDACTED ups-monitor[7377]: Stopping NUT - power device monitor and shutdown controller: nut-client. Jun 19 16:34:55 REDACTED systemd[1]: Stopped LSB: Network UPS Tools monitor initscript. Jun 19 16:34:55 REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscript... Jun 19 16:34:55 REDACTED upsmon[7387]: Startup successful Jun 19 16:34:55 REDACTED ups-monitor[7382]: Starting NUT - power device monitor and shutdown controller: nut-client. Jun 19 16:34:55 REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript. Jun 19 16:34:55 REDACTED upsmon[7389]: Init SSL with cerificate database located at /etc/letsencrypt/live/REDACTED/ Jun 19 16:34:55 REDACTED upsmon[7389]: Can not initialize SSL context Jun 19 16:34:55 REDACTED upsmon[7387]: upsmon parent: read status give: /etc/init.d/ups-monitor status ● ups-monitor.service - LSB: Network UPS Tools monitor initscript Loaded: loaded (/etc/init.d/ups-monitor; generated; vendor preset: enabled) Active: active (exited) since Tue 2018-06-19 16:34:55 CEST; 2min 18s a go Docs: man:systemd-sysv-generator(8) Process: 7377 ExecStop=/etc/init.d/ups-monitor stop (code=exited, status=0/SUCCESS) Process: 7382 ExecStart=/etc/init.d/ups-monitor start (code=exited, status=0/SUCCESS) REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscript.. . REDACTED upsmon[7387]: Startup successful REDACTED ups-monitor[7382]: Starting NUT - power device monitor and shutdown contr…lient. REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript. REDACTED upsmon[7389]: Init SSL with cerificate database located at /etc/letsencry…/ . lorque upsl -l réponse: Error: Connection failure: Connection refused Je suis un peu perdue et j'ai pas d'idée.
--0000000000001f29a6056f77124b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir="auto">Bonjour,<div dir="auto">Et sans SSL ca ne fct pas non p lus ?</div><div dir="auto">Je me souviens plus dr l'option maos tu pe ux ld désactiver dans un premier temps... </div><div dir="auto" >Après, si tu veux utiliser ssl, as tu mis e' place les certificat s ?</div><div dir="auto">Bab</div></div><br><div class="gmail_quote"><d iv dir="ltr">Le lun. 25 juin 2018 à 14:56, tech <> a écrit :<br></div><blockquote class="gmail_quote" style="ma rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="ltr"> <div id="m_6464085838079485976divtagdefaultwrapper" style="font-size:12 pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"> <p></p> <div><br> </div> <div><br> </div> <div>Bonjour,</div> <div><br> </div> <div>j'ai créé : : <a href="https://github.com/n etworkupstools/nut/issues/563" target="_blank" rel="noreferrer">https:/ /github.com/networkupstools/nut/issues/563</a></div> <div><br> </div> <div><br> </div> <div><span style="font-size:12pt">Je tente d'utiliser un onduleur EAT ON 850pro via USB sur une Debian Stretch Stable.</span><br> </div> <div>J'ai letsencrypt sur cette machine.</div> <div><br> </div> <div>Dans les logs j'ai:</div> <div>upsmon Can not initialize SSL context</div> <div><br> </div> <div>si 850pro est connecté via usb:</div> <div><br> </div> <div>lsusb</div> <div>Bus 009 Device 003: ID 0463:ffff MGE UPS Systems UPS</div> <div>after install nut using apt-get</div> <div>apt-get install nut libupsclient1 nut-client nut-server</div> <div><span style="font-size:12pt">upsdrvctl start</span><br> </div> <div><br> </div> <div>Network UPS Tools - UPS driver controller 2.7.4</div> <div>Network UPS Tools - Generic HID driver 0.41 (2.7.4)</div> <div>USB communication driver 0.33</div> <div>Using subdriver: MGE HID 1.39</div> <div>nut=standalone </div> <div><br> </div> <div>mes confs:</div> <div>/etc/nut/ups.conf</div> <div><br> </div> <div>[850PRO]</div> <div>driver = usbhid-ups</div> <div>port = auto</div> <div>desc = "850PRO"</div> <div>/etc/nut/upsd.conf</div> <div><br> </div> <div>STATEPATH /var/run/nut</div> <div>MAXCONN 1024</div> <div># CERTFILE /etc/letsencrypt/live/REDACTED/cert.pem</div> <div>CERTPATH /etc/letsencrypt/live/REDACTED/</div> <div># CERTIDENT "my nut server" "MyPasSw0rD"</div> <div># CERTREQUEST REQUIRE</div> <div># - 0 to not request to clients to provide any certificate</div> <div># - 1 to require to all clients a certificate</div> <div># - 2 to require to all clients a valid certificate</div> <div>LISTEN ::1 3493</div> <div>LISTEN 127.0.0.1 3493</div> <div>/etc/nut/upsd.users</div> <div><br> </div> <div>#upsmon master</div> <div>[admin]</div> <div> password = 1401</div> <div> allowfrom = localhost</div> <div> upsmon master</div> <div> actions = SET</div> <div> instcmds = ALL</div> <div>/etc/nut/upsmon.conf</div> <div><br> </div> <div>MINSUPPLIES 1</div> <div>SHUTDOWNCMD "/sbin/shutdown -h +1"</div> <div>POLLFREQ 10</div> <div>POLLFREQALERT 10</div> <div>HOSTSYNC 15</div> <div>DEADTIME 20</div> <div>POWERDOWNFLAG /etc/killpower</div> <div>RBWARNTIME 432000</div> <div>NOCOMMWARNTIME 300</div> <div>FINALDELAY 4</div> <div>CERTPATH /etc/letsencrypt/live/REDACTED/</div> <div># CERTHOST <hostname> <certificate name> <certverify> ; <forcessl></div> <div># CERTVERIFY 1</div> <div># FORCESSL 0</div> <div>MONITOR 1 admin 1401 master</div> <div>SHUTDOWNCMD "/sbin/shutdown -h now"</div> <div>HOSTSYNC 15</div> <div>POWERDOWNFLAG /etc/nut/killpower</div> <div>FINALDELAY 5</div> <div>NOTIFYCMD /sbin/upssched</div> <div>NOTIFYMSG ONBATT "%s is on battery"</div> <div>NOTIFYMSG ONLINE "%s is back online"</div> <div>NOTIFYMSG LOWBATT "%s has a low battery!"</div> <div>NOTIFYMSG SHUTDOWN "System is being shutdown!"</div> <div>NOTIFYFLAG ONLINE SYSLOG+EXEC</div> <div>NOTIFYFLAG ONBATT SYSLOG+EXEC</div> <div>NOTIFYFLAG LOWBATT SYSLOG+EXEC</div> <div>NOTIFYFLAG FSD SYSLOG+WALL+EXEC</div> <div>NOTIFYFLAG COMMOK SYSLOG+EXEC</div> <div>NOTIFYFLAG COMMBAD SYSLOG+EXEC</div> <div>NOTIFYFLAG SHUTDOWN SYSLOG+EXEC</div> <div>NOTIFYFLAG REPLBATT SYSLOG+EXEC</div> <div>NOTIFYFLAG NOCOMM SYSLOG+EXEC</div> <div>/etc/nut/upssched.conf</div> <div><br> </div> <div>LOCKFN /var/lib/nut/upssched.lock</div> <div>PIPEFN /var/lib/nut/upssched.pipe</div> <div>CMDSCRIPT /bin/upssched-cmd</div> <div>AT ONBATT * START-TIMER onbatt1 13</div> <div>AT ONLINE * CANCEL-TIMER onbatt1</div> <div>#AT ONBATT * START-TIMER earlyshutdown 30</div> <div>#AT ONLINE * CANCEL-TIMER earlyshutdown</div> <div>AT ONBATT * START-TIMER onbattwarn 30</div> <div>AT ONLINE * CANCEL-TIMER onbattwarn</div> <div>when doing:</div> <div>/etc/init.d/ups-monitor restart && tail -f /var/log/syslog</di v> <div>output:</div> <div><br> </div> <div>[ ok ] Restarting ups-monitor (via systemctl): ups-monitor.service.</d iv> <div>Jun 19 16:34:54 REDACTED systemd[1]: Stopping LSB: Network UPS Tools m onitor initscript...</div> <div>Jun 19 16:34:55 REDACTED ups-monitor[7377]: Stopping NUT - power devic e monitor and shutdown controller: nut-client.</div> <div>Jun 19 16:34:55 REDACTED systemd[1]: Stopped LSB: Network UPS Tools mo nitor initscript.</div> <div>Jun 19 16:34:55 REDACTED systemd[1]: Starting LSB: Network UPS Tools m onitor initscript...</div> <div>Jun 19 16:34:55 REDACTED upsmon[7387]: Startup successful</div> <div>Jun 19 16:34:55 REDACTED ups-monitor[7382]: Starting NUT - power devic e monitor and shutdown controller: nut-client.</div> <div>Jun 19 16:34:55 REDACTED systemd[1]: Started LSB: Network UPS Tools mo nitor initscript.</div> <div>Jun 19 16:34:55 REDACTED upsmon[7389]: Init SSL with cerificate databa se located at /etc/letsencrypt/live/REDACTED/</div> <div>Jun 19 16:34:55 REDACTED upsmon[7389]: Can not initialize SSL context< /div> <div>Jun 19 16:34:55 REDACTED upsmon[7387]: upsmon parent: read</div> <div>status give:</div> <div><br> </div> <div>/etc/init.d/ups-monitor status</div> <div>● ups-monitor.service - LSB: Network UPS Tools monitor initscr ipt</div> <div> Loaded: loaded (/etc/init.d/ups-monitor; generated; vendo r preset: enabled)</div> <div> Active: active (exited) since Tue 2018-06-19 16:34:55 CES T; 2min 18s ago</div> <div> Docs: man:systemd-sysv-generator(8)</div> <div> Process: 7377 ExecStop=/etc/init.d/ups-monitor stop (code=e xited, status=0/SUCCESS)</div> <div> Process: 7382 ExecStart=/etc/init.d/ups-monitor start (code =exited, status=0/SUCCESS)</div> <div><br> </div> <div>REDACTED systemd[1]: Starting LSB: Network UPS Tools monitor initscrip t...</div> <div>REDACTED upsmon[7387]: Startup successful</div> <div>REDACTED ups-monitor[7382]: Starting NUT - power device monitor and sh utdown contr…lient.</div> <div>REDACTED systemd[1]: Started LSB: Network UPS Tools monitor initscript .</div> <div>REDACTED upsmon[7389]: Init SSL with cerificate database located at /e tc/letsencry…/</div> <div>.</div> <div>lorque</div> <div>upsl -l</div> <div>réponse:</div> <div>Error: Connection failure: Connection refused</div> <div><br> </div> <div>Je suis un peu perdue et j'ai pas d'idée.</div> <div><br> </div> <br> <p></p> </div> </div> </div> --0000000000001f29a6056f77124b--