XMPP Problem

Started by dj, August 12, 2017, 10:12:30 AM

Previous topic - Next topic

dj

Hi,

I'm new to NetXMS and I'm trying to set up XMPP alerts, but - until now - without success.

What I did:

- set up a xmpp server named jabber.***.net on a vps (ejabberd)
- created two users on ejabberd : dj (admin) + srv (server)

- created an action named "xmpp test action" to send messages to user dj@jabber.***.net
- created a new event processing policy with number 1 to trigger the "xmpp test action" on any event from a specific node

After setting the DebugLevel to 6 I can see that the event processing and the action are triggered:

[12-Aug-2017 08:36:59.207] [DEBUG] *actions* Executing action 1 (XMPP Test Action) of type XMPP MESSAGE
[12-Aug-2017 08:36:59.207] [DEBUG] *actions* Sending XMPP message to dj@jabber.***.net: "NetXMS Test Message 0"

but the message is never sent. There is no more info in the netxms log. My ejabberd server's log is also not showing any attempt to deliver the message.

Netxms is properly connected to the ejabberd - I can send remote commands from a phone client and also receive the answer from netxms on the phone:

[12-Aug-2017 08:39:02.106] [DEBUG] XMPP: RECV: <message type="chat" lang="en" to="srv@jabber.***.net" from="dj@jabber.***.net/phone"><composing xmlns="http://jabber.org/protocol/chatstates"/><no-store xmlns="urn:xmpp:hints"/><no-storage xmlns="urn:xmpp:hints"/></message>
[12-Aug-2017 08:39:12.152] [DEBUG] XMPP: RECV: <message id="7fbc6fab-43ab-4ca7-b456-247347819f73" type="chat" lang="en" to="srv@jabber.***.net" from="dj@jabber.***.net/phone"><body>Show queues</body><markable xmlns="urn:xmpp:chat-markers:0"/><request xmlns="urn:xmpp:receipts"/><origin-id id="7fbc6fab-43ab-4ca7-b456-247347819f73" xmlns="urn:xmpp:sid:0"/><active xmlns="http://jabber.org/protocol/chatstates"/></message>
[12-Aug-2017 08:39:12.152] [DEBUG] XMPP: Incoming message from dj@jabber.***.net/phone: Show queues
[12-Aug-2017 08:39:12.152] [DEBUG] User admin authenticated for XMPP commands
[12-Aug-2017 08:39:12.152] [DEBUG] XMPP: SENT: <message to="dj@jabber.***.net/phone" type="chat"><body>Data collector : 0

This happened on netxms 2.0.8 and also after upgrading to 2.1. The server is running on Windows Server 2016.

I have no idea what's going on.

Any help highly appreciated :) Thanks in advance !

Best...
Detlev

Victor Kirhenshtein

Hi,

do you have any messages in server log with prefix XMPPMessageSender?

Best regards,
Victor

dj


Quote from: Victor Kirhenshtein on August 15, 2017, 03:02:41 PM
do you have any messages in server log with prefix XMPPMessageSender?

No, there's nothing like that in the server's log file. Just the hint "*action* Sending XMPP" as show in the original posting and there's the big silence.

Regards
Detlev