Looking up free variables and related hosts/services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Rfferrao13
Posts: 12
Joined: Tue Aug 09, 2016 3:56 pm

Looking up free variables and related hosts/services

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Looking up free variables and related hosts/services

Post 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();
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked