Page 1 of 1

How does Nagios XI Select Parent "Candidates"

Posted: Fri Apr 22, 2016 1:34 pm
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

Re: How does Nagios XI Select Parent "Candidates"

Posted: Fri Apr 22, 2016 1:43 pm
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.

Re: How does Nagios XI Select Parent "Candidates"

Posted: Tue Apr 26, 2016 4:42 pm
by awilson
Thank you.

I'll check for circular references.


Alan

Re: How does Nagios XI Select Parent "Candidates"

Posted: Tue Apr 26, 2016 5:08 pm
by bwallace
Thanks Alan, we'll keep an eye out for any updates from you.