Skip to content
Snippets Groups Projects

Add an XMPP probe

Merged ale requested to merge xmpp into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Maintainer

    Fico. Immagino che il metodo .connect() sia ereditato da ClientXmpp. Come si fanno a provare in locale queste sonde, nel caso?

  • Author Owner

    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)

  • ale added 1 commit

    added 1 commit

    • 45d0866e - Time out the XMPP probe after 30s

    Compare with previous version

  • merged

  • ale mentioned in commit ccd9aaa6

    mentioned in commit ccd9aaa6

  • Author Owner

    Ho messo delle istruzioni piu' chiare nel README!

  • Developer

    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
Loading