Is it possible to query or list free variables via the API? I read a post that adding &customvars=1 would list, however I am not seeing them. We are running Nagios XI 5.8.4. I usually just curl then I parse using jq, but I am open if there is a way to search via the API as well.
Thanks!
John
Nagios API free variables
Re: Nagios API free variables
My curl was messed up I am able to get custom fields now, but is there a built in way to search and parse?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios API free variables
Hi jkimmel,
You can build limited queries in the API using the filter parameters. However, if you need to parse and search the JSON output, that is usually handled by the script itself.
Let us know if you have more questions
--Benjamin
You can build limited queries in the API using the filter parameters. However, if you need to parse and search the JSON output, that is usually handled by the script itself.
Let us know if you have more questions
--Benjamin
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!