I remember being able to set the Parent of a host via host templates, thought I was crazy so I looked it up in the documentation and its listed as being possible there as well http://assets.nagios.com/downloads/nagi ... gement.pdf.
Has something changed? I looked at the page source and it is mentioned when I do a search for "parent".
Can't set Parent in Host Template?
Can't set Parent in Host Template?
You do not have the required permissions to view the files attached to this post.
Last edited by Envera IT on Sun Oct 26, 2014 7:59 pm, edited 1 time in total.
I like graphs...
Re: Can't set Parent in Host Template?
Tried it, but I also don't see that option.
Grtz
Grtz
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Can't set Parent in Host Template?
This seem to be the case. I have opened an internal bug report for this.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Can't set Parent in Host Template?
It looks like this is a bug, as Andy has mentioned. If you'd like to fix it now you can edit the file yourself or wait until the next version of Nagios XI to get this.
To edit it yourself:
1. Open /usr/local/nagiosxi/html/includes/component/ccm/page_templates/common_settings.php
2. Find the line that looks like this (should be line 41-44):
3. Replace line 41-44 with the attached code snippet:
To edit it yourself:
1. Open /usr/local/nagiosxi/html/includes/component/ccm/page_templates/common_settings.php
2. Find the line that looks like this (should be line 41-44):
Code: Select all
<p><a class="wideLinkBox" href="javascript:overlay('parentBox')" title="Manage Parents"><?php echo gettext("Manage Parents"); ?></a></p>
<?php
}
}Code: Select all
<?php } ?>
<p><a class="wideLinkBox" href="javascript:overlay('parentBox')" title="Manage Parents"><?php echo gettext("Manage Parents"); ?></a></p>
<?php
}As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Can't set Parent in Host Template?
Thanks guys! The code posted by jomann fixed the issue for me. Only thing is that the path is actually /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php
As always thanks for the help and I had a blast meeting you guys at the conference.
As always thanks for the help and I had a blast meeting you guys at the conference.
I like graphs...
Re: Can't set Parent in Host Template?
We're glad that worked for you. The patch will be applied to the next release of Nagios XI. Thanks.