xmpp-webhook
currently support:
Check https://github.com/tmsmr/xmpp-webhook/blob/master/parser/ to learn how to support more source services.
xmpp-webhook
is configured via environment variables:
XMPP_ID
- The JID we want to useXMPP_PASS
- The passwordXMPP_RECIPIENTS
- Comma-separated list of JID'sXMPP_SKIP_VERIFY
- Skip TLS verification (Optional)XMPP_OVER_TLS
- Use dedicated TLS port (Optional)XMPP_WEBHOOK_LISTEN_ADDRESS
- Bind address (Optional)xmpp-webhook
tries to connect to the XMPP server and provides the implemented HTTP enpoints. e.g.:curl -X POST -d @dev/grafana-webhook-alert-example.json localhost:4321/grafana
curl -X POST -d @dev/alertmanager-example.json localhost:4321/alertmanager
curl -X POST -d @dev/slack-compatible-notification-example.json localhost:4321/slack
parserFunc
, the notification is then distributed to the configured recipients.docker build -t xmpp-webhook .
docker run -e "[email protected]" -e "XMPP_PASS=xxx" -e "[email protected],[email protected]" -p 4321:4321 -d --name xmpp-webhook xmpp-webhook
docker run -e "[email protected]" -e "XMPP_PASS=xxx" -e "[email protected],[email protected]" -p 4321:4321 -d --name xmpp-webhook tmsmr/xmpp-webhook:latest
install -D -m 744 xmpp-webhook /usr/local/bin/xmpp-webhook
install -D -m 644 xmpp-webhook.service /etc/systemd/system/xmpp-webhook.service
/etc/xmpp-webhook.env
. e.g.:XMPP_ID='[email protected]'
XMPP_PASS='passw0rd'
XMPP_RECIPIENTS='[email protected],[email protected]'
systemctl daemon-reload
systemctl enable xmpp-webhook
systemctl start xmpp-webhook
xmpp-webhook
: go build
dev/xmpp-dev-stack
starts Prosody (With "auth_any" and "roster_allinall" enabled) and two XMPP-clients for easy testingFeel free to contact me!