Hello,
i have one problem with alerting using jabber. In our company jabber server is jabber.xxx.yyy, but user are [email protected]. Zabbix dont resolve SRV record in DNS so in zabbix-server.log there is Connection failed.
I hardcoded hostname of our jabber server in jabber.c:
but this works only for contacts from our jabber server any other jid will not work.
So i added new field in frontend and database but i dont know how to edit jabber.c to include this field.
Is there any chance to include this in newer version of zabbix?
i have one problem with alerting using jabber. In our company jabber server is jabber.xxx.yyy, but user are [email protected]. Zabbix dont resolve SRV record in DNS so in zabbix-server.log there is Connection failed.
I hardcoded hostname of our jabber server in jabber.c:
Code:
[B]switch (iks_connect_with(jsess->prs, "jabber.xxx.yyy", port, jsess->acc->server, &zbx_iks_transport))[/B]
/* switch (iks_connect_via(jsess->prs, jsess->acc->server, port, jsess->acc->server))*/
{
case IKS_OK:
break;
case IKS_NET_NODNS:
zbx_snprintf(jabber_error, jabber_error_len, "Hostname lookup failed");
goto lbl_fail;
case IKS_NET_NOCONN:
zbx_snprintf(jabber_error, jabber_error_len, "Connection failed: %s",
strerror_from_system(errno));
goto lbl_fail;
default:
zbx_snprintf(jabber_error, jabber_error_len, "Connection error: %s",
strerror_from_system(errno));
goto lbl_fail;
}
So i added new field in frontend and database but i dont know how to edit jabber.c to include this field.
Is there any chance to include this in newer version of zabbix?
Comment