On 02/21/2017 05:04 PM, Kirk Reeves wrote:

> I know there is a http Poller, but I was looking for one dealing
> specifically with one expecting XML as a response, so I can possibly
> grab multiple parameters.  If I must  I can probably use the HTTP poller
> with a regular expression, but I was just looking for something a little
> more elegant.

As of now, a regex with the HttpMonitor or maybe the PageSequenceMonitor
is probably your best bet. Admittedly it's pretty awful.

Ultimately I'd like to have a poller monitor that implements a subset of
the XmlCollector's functionality, and is configured in an equivalent
way. That way you'd be able to use an XPath expression to describe your
expectations for the document. The XmlCollector can also handle JSON
documents if you configure an alternate handler, which would be nice in
the poller too.

We periodically kick around the idea of re-architecting the poller and
collector class hierarchies to enable better code reuse, but that's a
very big and disruptive project. If you feel like having a swing at
writing an XmlMonitor, you'll find able assistance on this list and on
the "OpenNMS Development" channel of https://chat.opennms.com/.

-jeff

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to