Unstable XMPP
-
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
-
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 -
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= -
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= -
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 -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login