Read external web API as DCI

Started by mitchellj, November 08, 2016, 02:39:03 AM

Previous topic - Next topic

mitchellj

I have a remote API that counts a 'queue' in a remote system. I'd love to monitor the results in NetXMS so I can be alerted if the size grows to a uncontrollable size.

I've been having a look through the docs and so far can't see a simple way to do it.

If i visit the URL https://example.org/status/queueSize  I get a raw integer back - I'm trying to chart that number.

Any suggestions?

Victor Kirhenshtein

Hi,

you can create external parameter in agent and use curl to get this number, like this:

nxagentd.conf:

ExternalParameter = QueueSize:curl https://example.org/status/queueSize


and then your agent will have parameter QueueSize which you will be able to monitor as usual.

Best regards,
Victor