News:

We really need your input in this questionnaire

Main Menu

Web Service DCI not working

Started by GiHe, October 15, 2025, 02:18:57 AM

Previous topic - Next topic

GiHe

This works from the NetXMS server console:


>nxwsget 127.0.0.1 http://10.9.8.7/metrics /started
/started = 1760481688751


Neither /started nor $.started work (with 'metrics' as the WS Name and using the URL above):

>nxget -D 6 127.0.0.1 'metrics:/started'
[crypto             ] Validating ciphers
[crypto             ]    AES-256 enabled
[crypto             ]    Blowfish-256 disabled (validation failed)
[crypto             ]    IDEA disabled (config)
[crypto             ]    3DES enabled
[crypto             ]    AES-128 enabled
[crypto             ]    Blowfish-128 disabled (validation failed)
[crypto             ] Crypto library initialized (OpenSSL 3.0.13 30 Jan 2024)
[agent.conn.1       ] New connection created (address=127.0.0.1 port=4700 compression=allowed)
[agent.conn.1       ] Using NXCP version 5
[agent.conn.1       ] Sending message CMD_REQUEST_SESSION_KEY (1) to agent at 127.0.0.1
[agent.conn.1       ] Received message CMD_SESSION_KEY (1) from agent at 127.0.0.1
[agent.conn.1       ] Sending message CMD_SET_SERVER_CAPABILITIES (2) to agent at 127.0.0.1
[agent.conn.1       ] Received message CMD_REQUEST_COMPLETED (2) from agent at 127.0.0.1
[agent.conn.1       ] Sending message CMD_GET_PARAMETER (3) to agent at 127.0.0.1
[agent.conn.1       ] Received message CMD_REQUEST_COMPLETED (3) from agent at 127.0.0.1
[agent.conn.1       ] Sending message CMD_GET_TABLE (4) to agent at 127.0.0.1
[agent.conn.1       ] Received message CMD_REQUEST_COMPLETED (4) from agent at 127.0.0.1
[agent.conn.1       ] Sending message CMD_GET_LIST (5) to agent at 127.0.0.1
[agent.conn.1       ] Received message CMD_REQUEST_COMPLETED (5) from agent at 127.0.0.1
404: Unknown metric
[agent.conn.1       ] Receiver loop terminated
[agent.conn.1       ] Receiver cleanup completed


What am I doing wrong?

Filipp Sudanov

nxget is not supposed to work with web services.

Do you have issues with configuring metrics from NetXMS server or what exactly you are trying to achieve?