XMPP Service Operators - 2024-01-14


  1. chunk

    Heya, I'm now hosting 3 domains, only two are hosting MUCs. Packets.Cc, TooFast.Vip, XMPP.Bot ... As vhosts. And a biboumi instance on one of them ^^

  2. badmuff

    Ok

  3. hook

    Might be slightly off-topic, but given that there’s so many XMPP ops, I suspect this is the perfect place to ask… Apart from for Jabber/IM what else makes sense to use XMPP in everyday life / on a home server?

  4. hook

    I noticed that there’s an option to use the XMPP account as notifications carrier, but haven’t dived into that yet.

  5. hook

    I noticed that there’s an option to use the XMPP account as UnifiedPush Distributor (at last in Conversations), but don’t know much about that.

  6. hook

    Perhaps server (and disk) health/status?

  7. MattJ

    I use it to chat/call with my family, I use it for UnifiedPush (mainly for Mastodon notifications), I use it to receive alerts from system and home monitoring, and I use it to get notifications from certain websites and feeds

  8. hook

    MattJ, do you have a good resource for how to set up that?

  9. hook

    https://unifiedpush.org/ this?

  10. MattJ

    Yes, that has instructions I think

  11. hook

    Ho do you get alerts from system monitoring?

  12. badmuff

    It depends.

  13. hook

    …and the websites/feeds

  14. badmuff

    there are some bots which can support you with feeds. It really depends on your Application.

  15. hook

    Any good resource to start diving into this?

  16. MattJ

    hook, I mostly use Prometheus -> Alertmanager -> Prosody's mod_pubsub_alertmanager

  17. MattJ

    and Prosody's mod_pubsub_feeds for feeds

  18. hook

    Hmm, I’ll look into that, thanks.

  19. hook

    Anything else people use it for?

  20. badmuff

    > MattJ: > 2024-01-14 01:11 (GMT+01:00) > hook, I mostly use Prometheus -> Alertmanager -> Prosody's mod_pubsub_alertmanager Thanks, cool idea.

  21. badmuff

    Homeassistant with nodered and xmpp palette. Good for notification with iot stuff.

  22. ernst.on.tour

    I've enabled mod_post_msg on my prosody and my scripts now only need a curl to send me "Attention Disk on xy is nearly by x% of usage" or "You've got new mail with subject 'xyz' from MrX@foo.bar"

  23. hook

    Is there any downside to using XMPP as UnifiedPush compared to other providers

  24. hook

    Is there any downside to using XMPP as UnifiedPush compared to other providers?

  25. Licaon_Kter

    hook: no

  26. Licaon_Kter

    Or yes, if you don't want your admin to see extra activity

  27. hook is the admin 😎

  28. Licaon_Kter

    Self spying there is

  29. hook

    homo-voyeaurism 🤔

  30. ben

    So many jokes became possible with this

  31. MattJ

    No thanks

  32. chunk

    Bob Evans

  33. Bob Evans

    chunk.

  34. chunk

    hi

  35. Bob Evans

    What can I do for you.

  36. moparisthebest

    hook: my cronjobs call sendxmpp-rs to send me messages, like when certs auto renew etc etc, they used to call sendmail back in the day

  37. hook

    > hook: my cronjobs call sendxmpp-rs to send me messages, like when certs auto renew etc etc, they used to call sendmail back in the day Cool, is that your own hack or an already packaged solution?

  38. moparisthebest

    hook: https://github.com/moparisthebest/sendxmpp-rs and my scripts just pipe to it, the go version also works well, the old original perl version doesn't

  39. hook

    💕💞

  40. chunk

    i do code stuff

  41. roughnecks

    moparisthebest `sudo pip install dnspython sleekxmpp` any way to use venv instead of installing globally? That's not really recommended

  42. roughnecks

    I mean: https://github.com/moparisthebest/sendxmpp-py

  43. moparisthebest

    roughnecks: that hasn't worked for me for years, hence recommendation for https://github.com/moparisthebest/sendxmpp-rs which does work

  44. roughnecks

    didn't want to run rust (never used it)

  45. chunk

    sleekxmpp eh hmmmmmmmm....

  46. moparisthebest

    roughnecks: it's better trust me ;)

  47. roughnecks

    >chunk: sleekxmpp eh hmmmmmmmm.... I used master with slixmpp, the other is broken

  48. moparisthebest

    Best part is it won't break everytime you upgrade python

  49. chunk

    i also use slixmpp

  50. chunk

    yea i wanted to try mopar's xmpprelay

  51. MSavoritias (fae,ve)

    these is also https://salsa.debian.org/mdosch/go-sendxmpp as it was said roughnecks

  52. chunk

    it's in rust i think

  53. MSavoritias (fae,ve)

    and a bunch others here https://wiki.xmpp.org/web/User:MDosch/Sendxmpp_incarnations

  54. roughnecks

    thanks

  55. ernst.on.tour

    hook: > Cool, is that your own hack or an already packaged solution? Whats wrong about a oneliner in crontab or twoliner in bash ? ``` CR=$'\n';options="-starttls xmpp"; servername=foo.bar; connecthost=foo.bar:5269; TTL=20; usr=support@myserver.com; pwd=123456 echo | openssl s_client $options -servername $servername -connect $connecthost 2>/dev/null | openssl x509 -noout -dates -subject -checkend $(($TTL*24*60*60)) || curl https://myserver.com:5281/msg/Ernst.on.tour@myserver.com -u $usr:$pwd -H "Content-Type: text/plain" -d "`date`${CR}Certificate on ${CR}${connecthost}${CR}for${CR}${servername}${CR}has just less then $TTL days left" ``` Change servername, connecthost to your needing, fill in the supportaccount:password and get a xmpp about 20days left for cert. Normally 30days before timeout the new cert should be automaticly exchanged. Now there are only 20 days left. Something seems to get worst the last 10 days Same for ``` dir=/var/log; du -h -d 1 -t 2G $dir | grep -E "$dir$" && curl .... ``` Very simple and quickly done jm2c

  56. hook

    Hmm, also interesting. Thanks, ernst.on.tour