Page 1 of 1

script to list children of a parent host

Posted: Wed Aug 04, 2021 6:35 pm
by troyb
Hello everyone,

I am looking to see if there is a script out there that can generate a list of "HOST NAMES" that are a child of a parent HOST NAME. Additionally there is a way to generate a list of services on said child hosts, that would be great. Trying to not write a script for this if one is already out there.

Did some searching but came up empty.

Best,

-Troy

Re: script to list children of a parent host

Posted: Thu Aug 05, 2021 2:39 pm
by mcapra
The JSON Query Generator might be of interest:
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/

Should be included in Nagios Core by default at this point -- no need to install anything additional, just navigate to:

Code: Select all

http://<nagios server>/nagios/jsonquery.html