monitoring: probe XMPP c2s with a plain connect
Some checks failed
deploy / ansible (push) Has been cancelled

blackbox_exporter matches query_response line by line, and ejabberd
writes its stream features and <proceed/> without newlines, so the
STARTTLS dialogue always timed out and the probe alert fired while
XMPP was fine. Port 5222 gets a TCP connect; the certificate is still
checked through direct TLS on 5223.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-13 06:59:31 +04:00
commit 3197f5fc16
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 3 additions and 12 deletions

View file

@ -25,14 +25,3 @@ modules:
tcp:
preferred_ip_protocol: ip4
# XMPP client port: stream header, STARTTLS, then the certificate
xmpp_starttls:
prober: tcp
timeout: 10s
tcp:
preferred_ip_protocol: ip4
query_response:
- send: "<?xml version='1.0'?><stream:stream to='asxp.io' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>"
- expect: "urn:ietf:params:xml:ns:xmpp-tls"
- send: "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>"
- expect: "<proceed"
- starttls: true