Page 1 of 1

Calling NagiosLog API from Java example

Posted: Thu Oct 25, 2018 3:31 pm
by dclsystems
Is there any code available showing how to Call NagiosLog API from Java.
Thanks

Re: Calling NagiosLog API from Java example

Posted: Thu Oct 25, 2018 4:59 pm
by cdienger
I don't have any java specific examples, but I would think that it would be pretty straight forward for anyone familiar with java to make http(s) requests.

Here's is some documentation on the API:

https://support.nagios.com/kb/article/n ... s-596.html.

Re: Calling NagiosLog API from Java example

Posted: Fri Oct 26, 2018 12:17 pm
by mcapra
This calls the ElasticSearch API, which isn't super different from the Nagios Log Server API:
https://github.com/mcapra/nagios-nlsexport

Re: Calling NagiosLog API from Java example

Posted: Fri Oct 26, 2018 12:40 pm
by cdienger
Thanks for bringing this up again, @mcapra! I was actually driving in today a remembered this tool that you created!