News:

We really need your input in this questionnaire

Main Menu

Unstable XMPP

Started by MarcusH, August 15, 2016, 04:49:52 PM

Previous topic - Next topic

MarcusH

Hi,

I have setup our events so they use XMPP since that is by far the best way for me now, especially now with server and clients that support carbon so the events pop up with history on all my connected devices that way i will not miss the events.

The problem though is that XMPP from netxms seems very unstable, any reason why it does not send the message as soon as the event is triggered?
It can be anything from a few minutes to the latest i had now was 44min before the msg was sent.

Running version 2.0.5

Victor Kirhenshtein

Hi,

please increase debug level to 6 and check server log for messages with XMPP prefix - maybe there will be some hints.

Best regards,
Victor

MarcusH

Enabled mail action to the same events for some reference in the log and when action are triggered the smtp action is directly after so no delay at all there, the xmpp on the other hand is sent minutes later with no error or other xmpp related line in between in the log.

[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Executing action 1 (XMPP Marcus) of type XMPP MESSAGE
[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Sending XMPP message to
[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Executing action 2 (Mail Marcus) of type SEND EMAIL
[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Sending mail to
[16-Aug-2016 20:06:06.741] [DEBUG] SMTP(0000000018D41A10): new envelope, rcpt
[16-Aug-2016 20:06:06.910] [DEBUG] SMTP(0000000018D41A10): mail sent successfully
...
[16-Aug-2016 20:08:55.799] [DEBUG] XMPP: SENT: <message to=

MarcusH

Got one now with longer delay and is has some problems in the log, still same around 2min delay before first try though.
From what i can see it delays 30min after reconnect to send the message.

[17-Aug-2016 09:52:03.780] [DEBUG] *actions* Sending XMPP message to
...
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: SENT: <message to="" type="chat"><body>
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: Unrecoverable TLS error, 5.
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: Closing socket.
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: disconnected
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: Stopping event loop.
[17-Aug-2016 09:54:39.081] [DEBUG] XMPPMessageSender: XMPP connection unavailable, will retry in 30 seconds
...
[17-Aug-2016 09:55:09.157] [DEBUG] XMPP: sock_connect to
[17-Aug-2016 09:55:09.157] [DEBUG] XMPP: attempting to connect to
[17-Aug-2016 09:55:09.191] [DEBUG] XMPP: connection successful
...
[17-Aug-2016 09:55:09.702] [DEBUG] XMPP: Session establishment successful.
[17-Aug-2016 09:55:09.702] [DEBUG] XMPP: connected
...
[17-Aug-2016 10:25:26.610] [DEBUG] XMPP: SENT: <message to=

Victor Kirhenshtein

So, it seems that disconnects cause those delays. Probably we need to add some sort of keepalive on XMPP connection to prevent it from timing out. I'll check that.

Best regards,
Victor

MarcusH

Now the connection has failed completely without it even trying to reconnect only thing in the log is:

XMPPMessageSender: XMPP connection unavailable, will retry in 30 seconds

No other xmpp connection entries at all
been like this since yesterday