View Full Version : XMPP and SRV record support
martin.marcher
16-12-2008, 23:23
Hi,
when will zabbix support SRV records for XMPP?
At least let ust specify the server to use manually.
thx and keep up the great work
Martin
You could look into the solution I have written about earlier, which allows you to configure at lot more things:
http://www.zabbix.com/forum/showpost.php?p=36249&postcount=3
martin.marcher
17-12-2008, 12:02
I don't usually do PHP but that approach seems to have a few flaws.
SSL is somewhat old to use, usually one should use TLS which is on 5222
one doesn't need to set the sending JID as invisible/uavailable whatsoever, simply don't do an initial presence announcement and send the message directly after login
the host part (which I see as a workaround) is specified and isn't retrieved from the SRV recordsI hacked together a simple python script that:
uses TLS if available
uses SRV records (the proper DNS info)
won't be visible to other users, just sends the message
can send either chat or headline messages.Source is available at: http://github.com/mm/playground/tree/master/xmppsend.py
that was a 30min work to code so it is probably very ugly.
2 years later and still a bug, I just reported it.
https://support.zabbix.com/browse/ZBX-1029