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.
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.