Page 2 of 2
Re: Nagios XI complete host details
Posted: Wed Aug 02, 2017 3:06 am
by keerthiprashanths
But we need document or steps to perform the same...
If you have any please let us know..
Re: Nagios XI complete host details
Posted: Wed Aug 02, 2017 1:16 pm
by tmcdonald
bolson wrote:Please find the REST API documentation through the help tab in your Nagios XI web gui. And the API is production ready.
The documentation provides example usage for the API calls. Please read it and let us know if you have any specific questions.
Re: Nagios XI complete host details
Posted: Fri Aug 04, 2017 7:49 am
by keerthiprashanths
We tried as per the document but its not working
Re: Nagios XI complete host details
Posted: Fri Aug 04, 2017 9:27 am
by tmcdonald
Can you please be more specific? What did you try? How is it failing? Can you post any screenshots or error logs? The more data you provide us the better we will be able to assist you.
Re: Nagios XI complete host details
Posted: Fri Aug 04, 2017 9:31 am
by keerthiprashanths
After going through the document I tried to follow but when I finally apply setting and try to move to a new link it throws an error as "error:No API key provided.:
But we checked and found that we have admin rights and we have a API key which says that we are admin.
Re: Nagios XI complete host details
Posted: Fri Aug 04, 2017 11:57 am
by dwhitfield
Re: Nagios XI complete host details
Posted: Tue Aug 08, 2017 7:31 am
by keerthiprashanths
We are using https and not http.
Is it again possible to use REST API for the same.
Re: Nagios XI complete host details
Posted: Tue Aug 08, 2017 1:40 pm
by dwhitfield
Yes, but you'll need to set up curl for the certificate:
https://curl.haxx.se/docs/sslcerts.html
Re: Nagios XI complete host details
Posted: Wed Aug 09, 2017 2:01 am
by keerthiprashanths
Thanks dwhitefield.
We checked and found that the cURL is already available in our unix server where the Nagios XI is been installed or hosted.
Version of cURL is 7.19.
Please let us know how to proceed further.
Re: Nagios XI complete host details
Posted: Wed Aug 09, 2017 10:15 am
by dwhitfield
You can either set up the certificates as I mentioned, or use the --insecure flag at the end of your curl command.