NetXMS Support Forum

English Support => General Support => Topic started by: Nikk on January 07, 2014, 01:11:47 PM

Title: Inter-server communication
Post by: Nikk on January 07, 2014, 01:11:47 PM
Hi!

I have a problem sending events to another NetXMS server.
Both servers are version 1.2.10, ISCListener enabled, ReceiveForwardedEvents enabled, port 4702 opened, Events matched and nodes matched. (one server is in remote location)
Debug says that, event was failed to forward because of Invalid or incompatible NXCP version.

So how can I match the versions?

Thanks in advance,
Nikk
Title: Re: Inter-server communication
Post by: Victor Kirhenshtein on January 07, 2014, 07:10:36 PM
Hi!

Actually looks like a bug. I'll check it a bit later.

Best regards,
Victor
Title: Re: Inter-server communication
Post by: Nikk on January 13, 2014, 10:39:11 AM
Hi,

Any news to this?

Nikk
Title: Re: Inter-server communication
Post by: Victor Kirhenshtein on January 13, 2014, 04:11:06 PM
Hi!

I cannot reproduce this problem. Just build test setup with two servers and they are able to forward events. Can you please provide appropriate parts from logs of both servers running at debug level 6? Also, what is exact versions and platforms for those two servers?

Best regards,
Victor
Title: Re: Inter-server communication
Post by: Nikk on January 24, 2014, 10:39:42 AM
Hi,

Sorry for late respond, was abroad.

So debug 6 on sender server

CorrelateEvent: event SYS_THRESHOLD_REACHED id 1502304 source NODE [137]
[24-Jan-2014 10:18:26.837] [DEBUG] CorrelateEvent: finished, rootId=0
[24-Jan-2014 10:18:26.838] [DEBUG] EVENT 17 (ID:1502304 F:0x0001 S:1 TAG:"") FROM NODE: Threshold reached for data collection item "Inbound traffic on eth0 (packets/sec)" (Parameter: Net.Interface.PacketsIn(2); Threshold value: 400; Actual value: 417)
[24-Jan-2014 10:18:26.838] [DEBUG] [CLSN-0] Sending message CMD_EVENTLOG_RECORDS
[24-Jan-2014 10:18:26.838] [DEBUG] Event 1502304 match EPP rule 15
[24-Jan-2014 10:18:26.838] [DEBUG] *actions* Executing action 1 (Forward event to Another NetXMS server) of type FORWARD EVENT
[24-Jan-2014 10:18:26.838] [DEBUG] *actions* Forwarding event to "IP_Address"
[24-Jan-2014 10:18:26.838] [DEBUG] [CLSN-0] Sending message CMD_ALARM_UPDATE
[24-Jan-2014 10:18:26.839] [DEBUG] [CLSN-0] Sending message CMD_OBJECT_UPDATE
[24-Jan-2014 10:18:26.839] [DEBUG] [CLSN-0] Sending message CMD_OBJECT_UPDATE
Cannot detect NXCP version for ISC peer IP_Address
[24-Jan-2014 10:18:27.224] [WARN ] Failed to forward event to server IP_Address: Invalid or incompatible NXCP version


On the receiver server i don't get anything related to this.

Sender server:
Linux ubuntu-server 3.5.0-45-generic #68~precise1-Ubuntu SMP i686     
NetXMS server - 1.2.11

Receiver server:
Hardware: Intel64 Family 6 Model 45 Stepping 7 AT/AT COMPATIBLE - Software: Windows Version 6.2 (Build 9200 Multiprocessor Free)
NetXMS server - 1.2.11

Nikk
Title: Re: Inter-server communication
Post by: Nikk on March 12, 2014, 02:34:09 PM
Hi,

I managed to get rid of the previous error, but now i'm getting another:

On Remote_Server:
Quote
[12-Mar-2014 14:10:40.651] [DEBUG] EVENT 17 (ID:1822 F:0x0001 S:1 TAG:"") FROM Remote_Server: Threshold reached for data collection item "Inbound traffic on enp10s1 (packets/sec)" (Parameter: Net.Interface.PacketsIn(2); Threshold value: 10; Actual value: 11)
[12-Mar-2014 14:10:40.651] [DEBUG] Event 1822 match EPP rule 15
[12-Mar-2014 14:10:40.651] [DEBUG] [CLSN-2] Sending message CMD_EVENTLOG_RECORDS
[12-Mar-2014 14:10:40.652] [DEBUG] *actions* Executing action 1 (New action) of type FORWARD EVENT
[12-Mar-2014 14:10:40.652] [DEBUG] [CLSN-2] Sending message CMD_ALARM_UPDATE
[12-Mar-2014 14:10:40.652] [DEBUG] *actions* Forwarding event to "Local_server"
[12-Mar-2014 14:10:40.665] [WARN ] Failed to forward event to server Local_server: Object not found

And on Local_server
Quote
[12-Mar-2014 14:10:41.376] [DEBUG] New ISC connection from Remote_Server
[12-Mar-2014 14:10:41.376] [DEBUG] ISC<Remote_Server>: received control message CMD_GET_NXCP_CAPS
[12-Mar-2014 14:10:41.378] [DEBUG] ISC<Remote_Server>: message CMD_KEEPALIVE received
[12-Mar-2014 14:10:41.378] [DEBUG] ISC<Remote_Server>: sending message CMD_REQUEST_COMPLETED
[12-Mar-2014 14:10:41.381] [DEBUG] ISC<Remote_Server>: message CMD_ISC_CONNECT_TO_SERVICE received
[12-Mar-2014 14:10:41.381] [DEBUG] ISC<Remote_Server>: attempt to connect to service 1
[12-Mar-2014 14:10:41.381] [DEBUG] ISC<Remote_Server>: connected to service 1
[12-Mar-2014 14:10:41.381] [DEBUG] ISC<Remote_Server>: sending message CMD_REQUEST_COMPLETED
[12-Mar-2014 14:10:41.384] [DEBUG] ISC<Remote_Server>: message CMD_FORWARD_EVENT received
[12-Mar-2014 14:10:41.384] [DEBUG] Event forwarding request from Remote_Server
[12-Mar-2014 14:10:41.384] [DEBUG] ISC<Remote_Server>: sending message CMD_REQUEST_COMPLETED
[12-Mar-2014 14:10:41.386] [DEBUG] ISC<Remote_Server>: connection closed
[12-Mar-2014 14:10:41.386] [DEBUG] ISC<Remote_Server>: session closed

But in reverse situation (local -> remote) everything worked fine!
Then i have a question, what is this object which cannot be found?

On both servers ISCListener enabled and ReceiveForwardedEvents enabled.
On both servers there is identical (except ID) node object with the same ip address.

Local_Server - 1.2.12,  Ubuntu 12.04 LTS
Remote_Server - 1.2.10, Ubuntu 12.04 LTS

Nikk
Title: Re: Inter-server communication
Post by: Victor Kirhenshtein on March 18, 2014, 05:37:52 PM
Hi!

Are you using zones on Local_server? Currently receiving server looks for IP address only in default zone.

Best regards,
Victor
Title: Re: Inter-server communication
Post by: Nikk on March 19, 2014, 09:21:40 AM
Hi,

Yes, zones are being used.

Nikk
Title: Re: Inter-server communication
Post by: Nikk on April 04, 2014, 12:24:22 PM
Hi,

So, is this bug or it isn't implemented yet? Maybe there is another way how to send events to local server?
The thing is, that our main devices are located in remote areas, but monitoring should be local. And Proxy-agent connections just occupy the network.

Respectfully,
Nikk