Page 1 of 1

Looking up free variables and related hosts/services

Posted: Mon Oct 09, 2017 4:12 pm
by Rfferrao13
Hello everyone,

First, please excuse my poor english. I'd like to know if there's a way to search custom variables and return its associated hosts and/or services from the Nagios XI WUI (perhaps adding a column in CCM; I'm not sure if it's possible) or through the Nagios XI API. I've come across some threads that cover adding these custom variables to hosts/services through the latter, but can't find anything regarding this topic. The most I could find was the command "http://<ip>/nagios/cgi-bin/objectjson.cgi?query=hostlist&details=true", but it doesn't exactly fit the bill.

Thank you for your attention!

Re: Looking up free variables and related hosts/services

Posted: Mon Oct 09, 2017 4:54 pm
by scottwilkerson
What you have found is the closest we have without a custom API endpoint in the custom_variables section for each

If you want to look into creating a custom API endpoint you could go that route and get the returned data from the following functions

Code: Select all

fetch_customservicevariablestatus();
fetch_customhostvariablestatus();