Add an XMPP probe
Merge request reports
Activity
Buona domanda infatti non so se funziona :)
La cosa da fare sarebbe scriversi un config.py con delle proprie credenziali di test, e solo la probe xmpp, e lanciare il serverino in locale (per riferimento a come e' fatto un file di configurazione di questo coso, c'e' il template relativo in ai3/config/roles/service-prober)
mentioned in commit ccd9aaa6
ho provato a lanciare una probe con le cred del mio utente e questo e' l'output
❯❯❯❯ ./venv/bin/ai-diagnostics-server --config=config --one-shot ~/d/a/a/t/diagnostics xmpp_probe INFO:root:loading configuration file config/xmpp-probe.py INFO:root:1 probes defined. INFO:driver:jabber: executing DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6120: Stream Feature: STARTTLS DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6120: Stream Feature: Resource Binding DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 3920: Stream Feature: Start Session DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval DEBUG:sleekxmpp.plugins.base:Loaded Plugin: RFC 6120: Stream Feature: SASL DEBUG:sleekxmpp.plugins.base:Loaded Plugin: XEP-0030: Service Discovery DEBUG:sleekxmpp.plugins.base:Loaded Plugin: XEP-0199: XMPP Ping INFO:jabber:connecting to jabber.autistici.org:5222 DEBUG:sleekxmpp.xmlstream.resolver:DNS: Querying jabber.autistici.org for AAAA records. DEBUG:sleekxmpp.xmlstream.resolver:DNS: Querying jabber.autistici.org for A records. DEBUG:sleekxmpp.xmlstream.xmlstream:Connecting to [2c0f:f930:0:4::108]:5222 DEBUG:sleekxmpp.xmlstream.xmlstream:Event triggered: socket_error ERROR:sleekxmpp.xmlstream.xmlstream:Could not connect to [2c0f:f930:0:4::108]:5222. Socket Error #101: Network is unreachable INFO:jabber:unable to connect jabber {'status': 'ok', 'timestamp': 1602364893.8404086, 'elapsed': 0.15016889572143555, 'log': '2020-10-10 23:21:33,722 - connecting to jabber.autistici.org:5222\n2020-10-10 23:21:33,840 - unable to connect\n'}
Please register or sign in to reply