Web Service DCI not working
-
This works from the NetXMS server console:
>nxwsget 127.0.0.1 http://10.9.8.7/metrics /started
/started = 1760481688751Neither /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 completedWhat am I doing wrong?
-
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?
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