Hello,
I'm new to Nagios, never used it before. Currently I'm trying NLS (v2.1.7) in the lab as PoC and I'm having problems figuring out how to do several things:
1. Create a new dashboard - via the GUI and, especially, using the API
2. Change the displayed name of an existing dashboard (for example, there's the "My Default Dashboard" that I would like to call something else) via API
3. Delete older dashboards that I don't need any more via API
4. I know how to add new records, but I would like to delete older records that I don't need any more. I believe 'curl -XDELETE "http://127.0.0.1/nagioslogserver/api/ba ... 7f0190686d"' should help me do this, I'll give it a shot
5. I would like to show/hide dashboard columns via API
Hopefully I just haven't looked in the right place to find the answers but I've already tried google/online docs/support forum, without luck.
All help appreciated.
Thanks,
AB
NLS 2.1.7 API documentation
Re: NLS 2.1.7 API documentation
Hello @stooge!
Welcome to the forum.
Unfortunately, the API endpoints mentioned in the documentation for Log Server are all that are currently available. There is not currently a way to manipulate dashboards from the API, but we could make a request for it to be added as a feature in a future release.
Yes, I believe that -XDELETE is the correct curl option to delete something from Elastic Search. Let us know how that goes for you.
Welcome to the forum.
Unfortunately, the API endpoints mentioned in the documentation for Log Server are all that are currently available. There is not currently a way to manipulate dashboards from the API, but we could make a request for it to be added as a feature in a future release.
Yes, I believe that -XDELETE is the correct curl option to delete something from Elastic Search. Let us know how that goes for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NLS 2.1.7 API documentation
Hi @jbrunkow,
Please go ahead and lock this thread. I was able to figure out the http requests the NLS Web interface sends and sending those same reqeuests works for me so I'm all set.
Please go ahead and lock this thread. I was able to figure out the http requests the NLS Web interface sends and sending those same reqeuests works for me so I'm all set.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NLS 2.1.7 API documentation
Excellent! We'll close this out.Please go ahead and lock this thread. I was able to figure out the http requests the NLS Web interface sends and sending those same reqeuests works for me so I'm all set.
Have a great weekend!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!