Nagios API free variables

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkimmel
Posts: 10
Joined: Tue Jul 14, 2020 8:18 pm

Nagios API free variables

Post by jkimmel »

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
jkimmel
Posts: 10
Joined: Tue Jul 14, 2020 8:18 pm

Re: Nagios API free variables

Post by jkimmel »

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

Post by benjaminsmith »

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
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!
Locked