(none)

Le
tech
--_000_b469009b8f7843e4afb774cbfc3e023erknovh_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64

DQoNCkJvbmpvdXIsDQoNCmonYWkgY3KopqimIDogIDogaHR0cHM6Ly9naXRodWIuY29tL25ldHdv
cmt1cHN0b29scy9udXQvaXNzdWVzLzU2Mw0KDQoNCkplIHRlbnRlIGQndXRpbGlzZXIgdW4gb25k
dWxldXIgRUFUT04gODUwcHJvIHZpYSBVU0Igc3VyIHVuZSBEZWJpYW4gU3RyZXRjaCBTdGFibGUu
DQpKJ2FpIGxldHNlbmNyeXB0IHN1ciBjZXR0ZSBtYWNoaW5lLg0KDQpEYW5zIGxlcyBsb2dzIGon
YWk6DQp1cHNtb24gQ2FuIG5vdCBpbml0aWFsaXplIFNTTCBjb250ZXh0DQoNCnNpIDg1MHBybyBl
c3QgY29ubmVjdKimIHZpYSB1c2I6DQoNCmxzdXNiDQpCdXMgMDA5IERldmljZSAwMDM6IElEIDA0
NjM6ZmZmZiBNR0UgVVBTIFN5c3RlbXMgVVBTDQphZnRlciBpbnN0YWxsIG51dCB1c2luZyBhcHQt
Z2V0DQphcHQtZ2V0IGluc3RhbGwgbnV0IGxpYnVwc2NsaWVudDEgbnV0LWNsaWVudCBudXQtc2Vy
dmVyDQp1cHNkcnZjdGwgc3RhcnQNCg0KTmV0d29yayBVUFMgVG9vbHMgLSBVUFMgZHJpdmVyIGNv
bnRyb2xsZXIgMi43LjQNCk5ldHdvcmsgVVBTIFRvb2xzIC0gR2VuZXJpYyBISUQgZHJpdmVyIDAu
NDEgKDIuNy40KQ0KVVNCIGNvbW11bmljYXRpb24gZHJpdmVyIDAuMzMNClVzaW5nIHN1YmRyaXZl
cjogTUdFIEhJRCAxLjM5DQpudXQ9c3RhbmRhbG9uZQ0KDQptZXMgY29uZnM6DQovZXRjL251dC91
cHMuY29uZg0KDQpbODUwUFJPXQ0KZHJpdmVyID0gdXNiaGlkLXVwcw0KcG9ydCA9IGF1dG8N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VyZHVlIGV0IGonYWkgcGFzIGQnaWSopmUuDQoNCg0K

--_000_b469009b8f7843e4afb774cbfc3e023erknovh_
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;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 :&nbsp;&nbsp;: https://github.com/networkupstools/=
nut/issues/563</div>
<div><br>
</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">Je tente d'utiliser un onduleur EATON=
850pro via USB sur une&nbsp;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&nbsp;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&nbsp;</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 = &quot;850PRO&quot;</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 &quot;my nut server&quot; &quot;MyPasSw0rD&quot;</div>
<div># CERTREQUEST REQUIRE</div>
<div>#&nbsp; - 0 to not request to clients to provide any certificate</div>
<div>#&nbsp; - 1 to require to all clients a certificate</div>
<div>#&nbsp; - 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>&nbsp; &nbsp; password = 1401</div>
<div>&nbsp; &nbsp; allowfrom = localhost</div>
<div>&nbsp; &nbsp; upsmon master</div>
<div>&nbsp; &nbsp; actions = SET</div>
<div>&nbsp; &nbsp; instcmds = ALL</div>
<div>/etc/nut/upsmon.conf</div>
<div><br>
</div>
<div>MINSUPPLIES 1</div>
<div>SHUTDOWNCMD &quot;/sbin/shutdown -h &#43;1&quot;</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 &lt;hostname&gt; &lt;certificate name&gt; &lt;certverify&gt=
; &lt;forcessl&gt;</div>
<div># CERTVERIFY 1</div>
<div># FORCESSL 0</div>
<div>MONITOR 850PRO@localhost 1 admin 1401 master</div>
<div>SHUTDOWNCMD &quot;/sbin/shutdown -h now&quot;</div>
<div>HOSTSYNC 15</div>
<div>POWERDOWNFLAG /etc/nut/killpower</div>
<div>FINALDELAY 5</div>
<div>NOTIFYCMD /sbin/upssched</div>
<div>NOTIFYMSG ONBATT &quot;%s is on battery&quot;</div>
<div>NOTIFYMSG ONLINE &quot;%s is back online&quot;</div>
<div>NOTIFYMSG LOWBATT &quot;%s has a low battery!&quot;</div>
<div>NOTIFYMSG SHUTDOWN &quot;System is being shutdown!&quot;</div>
<div>NOTIFYFLAG ONLINE SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG ONBATT SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG LOWBATT SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG FSD SYSLOG&#43;WALL&#43;EXEC</div>
<div>NOTIFYFLAG COMMOK SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG COMMBAD SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG SHUTDOWN SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG REPLBATT SYSLOG&#43;EXEC</div>
<div>NOTIFYFLAG NOCOMM SYSLOG&#43;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 &amp;&amp; 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 initscript=
</div>
<div>&nbsp; &nbsp;Loaded: loaded (/etc/init.d/ups-monitor; generated; vendo=
r preset: enabled)</div>
<div>&nbsp; &nbsp;Active: active (exited) since Tue 2018-06-19 16:34:55 CES=
T; 2min 18s ago</div>
<div>&nbsp; &nbsp; &nbsp;Docs: man:systemd-sysv-generator(8)</div>
<div>&nbsp; Process: 7377 ExecStop=/etc/init.d/ups-monitor stop (code=e=
xited, status=0/SUCCESS)</div>
<div>&nbsp; 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 contrlient.</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>rponse:</div>
<div>Error: Connection failure: Connection refused</div>
<div><br>
</div>
<div>Je suis un peu perdue et j'ai pas d'ide.</div>
<div><br>
</div>
<br>
<p></p>
</div>
</body>
</html>

--_000_b469009b8f7843e4afb774cbfc3e023erknovh_--
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
babouchko
Le #26480110
--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
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
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="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><br>
</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div>Dans les logs j&#39;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>nut=standalone </div>
<div><br>
</div>
<div>mes confs:</div>
<div><br>
</div>
<div>[850PRO]</div>
<div>driver = usbhid-ups</div>
<div>port = auto</div>
<div>desc = &quot;850PRO&quot;</div>
<div><br>
</div>
<div>STATEPATH /var/run/nut</div>
<div>MAXCONN 1024</div>
<div>CERTPATH /etc/letsencrypt/live/REDACTED/</div>
<div># CERTIDENT &quot;my nut server&quot; &quot;MyPasSw0rD&quot;</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><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><br>
</div>
<div>MINSUPPLIES 1</div>
<div>SHUTDOWNCMD &quot;/sbin/shutdown -h +1&quot;</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 &lt;hostname&gt; &lt;certificate name&gt; &lt;certverify&gt ; &lt;forcessl&gt;</div>
<div># CERTVERIFY 1</div>
<div># FORCESSL 0</div>
<div>MONITOR 1 admin 1401 master</div>
<div>SHUTDOWNCMD &quot;/sbin/shutdown -h now&quot;</div>
<div>HOSTSYNC 15</div>
<div>POWERDOWNFLAG /etc/nut/killpower</div>
<div>FINALDELAY 5</div>
<div>NOTIFYCMD /sbin/upssched</div>
<div>NOTIFYMSG ONBATT &quot;%s is on battery&quot;</div>
<div>NOTIFYMSG ONLINE &quot;%s is back online&quot;</div>
<div>NOTIFYMSG LOWBATT &quot;%s has a low battery!&quot;</div>
<div>NOTIFYMSG SHUTDOWN &quot;System is being shutdown!&quot;</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><br>
</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>output:</div>
<div><br>
</div>
<div>Jun 19 16:34:55 REDACTED upsmon[7387]: Startup successful</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>   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><br>
</div>
<div>REDACTED upsmon[7387]: Startup successful</div>
<div>REDACTED upsmon[7389]: Init SSL with cerificate database located at /e tc/letsencry…/</div>
<div>lorque</div>
<div>upsl -l</div>
<div>réponse:</div>
<div>Error: Connection failure: Connection refused</div>
<div><br>
</div>
<div><br>
</div>
<br>
<p></p>
</div>
</div>
</div>
--0000000000001f29a6056f77124b--
Publicité
Poster une réponse
Anonyme