script to list children of a parent host

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

script to list children of a parent host

Postby troyb » Wed Aug 04, 2021 6:35 pm

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
troyb
 
Posts: 1
Joined: Wed Aug 04, 2021 5:49 pm

Re: script to list children of a parent host

Postby mcapra » Thu Aug 05, 2021 2:39 pm

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
Former Nagios employee
https://www.mcapra.com/
User avatar
mcapra
 
Posts: 3729
Joined: Thu May 05, 2016 3:54 pm


Return to Community Support

Who is online

Users browsing this forum: No registered users and 11 guests