Website monitoring using network service

Started by Guillaume, April 10, 2015, 12:04:38 AM

Previous topic - Next topic

Guillaume

#15
Hello!

First of all, thank you very much for the support. I really appreciate it.

As for the authentication, I double-checked in the agent's configuration and RequireAuthentication is set to no. [SNIP](I realized that I had to deactivate authentication on the local server's agent)

I modified the localhost's node authentication method with the agent, since the only agent I have is on the monitoring server. I now have some interesting stuff going on:
[17-Apr-2015 14:33:02.778] [DEBUG] Incoming connection from 192.168.108.22
[17-Apr-2015 14:33:02.778] [DEBUG] Connection from 192.168.108.22 accepted
[17-Apr-2015 14:33:02.780] [DEBUG] [session:1] Message dump:
  ** 00B60020000000100000000000000000
  ** code=0x00B6 (CMD_GET_NXCP_CAPS) flags=0x0020 id=0 size=16 numFields=0

[17-Apr-2015 14:33:02.780] [DEBUG] [session:1] Received control message CMD_GET_NXCP_CAPS
[17-Apr-2015 14:33:02.780] [DEBUG] [session:1] Sending message CMD_NXCP_CAPS (size 16)
[17-Apr-2015 14:33:02.780] [DEBUG] [session:1] Message dump:
  ** 00030000000000100000000100000000
  ** code=0x0003 (CMD_KEEPALIVE) flags=0x0000 id=1 size=16 numFields=0

[17-Apr-2015 14:33:02.780] [DEBUG] [session:1] Received message CMD_KEEPALIVE
[17-Apr-2015 14:33:02.781] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 32)
[17-Apr-2015 14:33:02.781] [DEBUG] [session:1] Message dump:
  ** 00730000000000C80000000200000006
  ** 0000000800000000C0A8791B00000000
  ** 00000082030000050000008403000050
  ** 00000083030000060000008501000000
  ** 0000003E0063006C00690065006E0074
  ** 002E006D0074006900630061006E0061
  ** 00640061002E00630061003A002F0074
  ** 00650073007400440042002E00700068
  ** 00700000000000000000008601000000
  ** 0000002E005E0048005400540050002F
  ** 0031005C002E005B00300031005D0020
  ** 003200300030002E002A004F004B002E
  ** 002A000000000000
  ** code=0x0073 (CMD_CHECK_NETWORK_SERVICE) flags=0x0000 id=2 size=200 numFields=6
  ** [     8] INT32  -1062700773
  ** [   130] INT16  5
  ** [   132] INT16  80
  ** [   131] INT16  6
  ** [   133] STRING "client.mticanada.ca:/testDB.php"
  ** [   134] STRING "^HTTP/1\.[01] 200.*OK.*"

[17-Apr-2015 14:33:02.781] [DEBUG] [session:1] Received message CMD_CHECK_NETWORK_SERVICE
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 64)
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Session with 192.168.108.22 closed
[17-Apr-2015 14:33:02.800] [DEBUG] Incoming connection from 192.168.108.22
[17-Apr-2015 14:33:02.800] [DEBUG] Connection from 192.168.108.22 accepted
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Message dump:
  ** 00B60020000000100000000000000000
  ** code=0x00B6 (CMD_GET_NXCP_CAPS) flags=0x0020 id=0 size=16 numFields=0

[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Received control message CMD_GET_NXCP_CAPS
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Sending message CMD_NXCP_CAPS (size 16)
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Message dump:
  ** 00030000000000100000000100000000
  ** code=0x0003 (CMD_KEEPALIVE) flags=0x0000 id=1 size=16 numFields=0

[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Received message CMD_KEEPALIVE
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 32)
[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Message dump:
  ** 00730000000000C80000000200000006
  ** 0000000800000000C0A8791B00000000
  ** 00000082030000000000008403000050
  ** 00000083030000060000008501000000
  ** 000000400069006E007400720061006E
  ** 00650074002E007300610076006F0075
  ** 00720061002E0063006F006D003A002F
  ** 007400650073007400440042002E0070
  ** 00680070000000000000008601000000
  ** 0000002E005E0048005400540050002F
  ** 0031005C002E005B00300031005D0020
  ** 003200300030002E002A004F004B002E
  ** 002A000000000000
  ** code=0x0073 (CMD_CHECK_NETWORK_SERVICE) flags=0x0000 id=2 size=200 numFields=6
  ** [     8] INT32  -1062700773
  ** [   130] INT16  0
  ** [   132] INT16  80
  ** [   131] INT16  6
  ** [   133] STRING "intranet.savoura.com:/testDB.php"
  ** [   134] STRING "^HTTP/1\.[01] 200.*OK.*"

[17-Apr-2015 14:33:02.800] [DEBUG] [session:1] Received message CMD_CHECK_NETWORK_SERVICE
[17-Apr-2015 14:33:02.801] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 64)
[17-Apr-2015 14:33:02.801] [DEBUG] [session:1] Session with 192.168.108.22 closed


Once again I attached the full log from startup with the modifications to "now". Unfortunately, the last value of both (because I configured 2 network services) is still 5.

Guillaume

It took a while to update (~5 mins) but now I see that the status of both services is "0", which is "Normal" (https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing).

It seems that either the removal of the authentication or the modification of the shared secret in all the configs worked.

I would like to thank everyone who contributed to this thread! You are a very helpful community!

(P.S.: I will update the first post to show how I solved my problem)