How does Nagios XI Select Parent "Candidates"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

How does Nagios XI Select Parent "Candidates"

Post by awilson »

Hi. My question is a followup to [https://support.nagios.com/forum/viewto ... 16&t=38107] about adding CMDB CI information to a host configuration.


We are running Nagios XI 5.2.7 on Red Hat Enterprise 6.7; Gnome is not installed; PHP 5.3.3; No Proxy; API v1;


The Nagios XI host creation/modify/remove GUI provides a list of Parent candidates and we are to select one or more parents.
  • 1. How are the parents selected to be in that list? What is the logic?
    2. If we use the API to POST an updated host config with a parents directive containing a host that is not in the list, will the nagios_reconfigure.sh script reject the new config?
    3. Will the new config work?
Thanks!

Alan
Last edited by awilson on Fri Apr 22, 2016 1:43 pm, edited 1 time in total.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How does Nagios XI Select Parent "Candidates"

Post by tmcdonald »

1.) I am fairly certain all hosts will be in that list
2.) Probably, see below
3.) One of the things that can cause a verification to fail is a circular parent hierarchy: A is a parent of B which is a parent of C which is a parent of A. I don't think our API is going to check for this just knowing how the verification is done. I can ask a dev for clarification, but for now I would say to be careful with parent/child relationships in this manner.

Update: It does not check, so it would give an apply configuration error and roll back to the last good snapshot. We're always updating the API though, so I can add this to the list of things to look out for.
Former Nagios employee
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: How does Nagios XI Select Parent "Candidates"

Post by awilson »

Thank you.

I'll check for circular references.


Alan
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: How does Nagios XI Select Parent "Candidates"

Post by bwallace »

Thanks Alan, we'll keep an eye out for any updates from you.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked