NetXMS Support Forum

English Support => General Support => Topic started by: twparker on July 01, 2024, 09:23:05 PM

Title: Web Service Monitoring
Post by: twparker on July 01, 2024, 09:23:05 PM
Hello all,

I am trying to monitor the status of a door access controller by using a DCI that monitors the status of its web UI as ICMP is blocked. I used the NetworkService.Status and relevant URL, but my DCI goes inactive and does not pull a status code. I have verified that the web page loads on the NetXMS server itself.

Any suggestions?



Title: Re: Web Service Monitoring
Post by: Filipp Sudanov on July 02, 2024, 01:48:39 PM
Looks like documentation is not clear on this - this metric is collected from NetXMS agent. 

Origin should be set to "NetXMS Agent". 
This DCI should either be on the node where an agent is running, or node with agent should be specified in "Source node override" field. 
Agent that is used should have netsvc subagent enabled.
Title: Re: Web Service Monitoring
Post by: twparker on July 10, 2024, 06:29:15 PM
I installed the agent on the server and enabled netsvc subagent. I then specified the server itself as "Source node Override" but it still appears to not be pulling any status codes.
Title: Re: Web Service Monitoring
Post by: Tatjana Dubrovica on July 22, 2024, 06:13:01 PM
You can set debug level to 6 on agent, where requests should go through and check agent log. There should be messages like: 
2024.07.22 16:44:06.575 *D* [comm.cs.1250      ] Requesting metric "NetworkService.Status(https://netxms.org)"
2024.07.22 16:44:06.995 *D* [netsvc            ] NetworkServiceStatus_HTTP(https://netxms.org): got reply (807 bytes, response code 302)