Datacollection and monitor for webservices using authentication tokens

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Datacollection and monitor for webservices using authentication tokens

Marcel Fuhrmann

Good afternoon,


Is OpenNMS able to collect data from a web services which requires an authentication token? The token has to be requested first to get any data.

Same with poller monitor. Do you have solutions for this?


Thanks in advance and have a nice weekend!


------------------------------------------------------------------------------
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-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Datacollection and monitor for webservices using authentication tokens

Alejandro Galue-3
Hi Marcel,

On Jun 9, 2017, at 8:09 AM, Marcel Fuhrmann <[hidden email]> wrote:

Is OpenNMS able to collect data from a web services which requires an authentication token? The token has to be requested first to get any data.

Same with poller monitor. Do you have solutions for this?

Unfortunately no without code changes.

The XML Collector can retrieve data through XML, JSON and HML pages with basic authentication (attached to the URL like : https://demo:demo@.../opennms/rest/alarms), but if you have to perform a request to get the token, and then put that token on the header of a second request to retrieve the actual data, we have to change the code. I can see that this would be a very good addition though, so please create an enhancement request on Jira.

Alejandro Galue
[hidden email]
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821  1823 87AF 972E DAF8 BE2C


------------------------------------------------------------------------------
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-discuss mailing list

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

signature.asc (465 bytes) Download Attachment