Page 1 of 1
Can't set Parent in Host Template?
Posted: Sun Oct 26, 2014 11:52 am
by Envera IT
Capture.PNG
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".
Re: Can't set Parent in Host Template?
Posted: Sun Oct 26, 2014 12:10 pm
by Envera IT
also this is 2014R1.5
Re: Can't set Parent in Host Template?
Posted: Sun Oct 26, 2014 6:12 pm
by WillemDH
Tried it, but I also don't see that option.
Grtz
Re: Can't set Parent in Host Template?
Posted: Mon Oct 27, 2014 12:14 pm
by abrist
This seem to be the case. I have opened an internal bug report for this.
Re: Can't set Parent in Host Template?
Posted: Mon Oct 27, 2014 12:21 pm
by jomann
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):
Code: Select all
<p><a class="wideLinkBox" href="javascript:overlay('parentBox')" title="Manage Parents"><?php echo gettext("Manage Parents"); ?></a></p>
<?php
}
}
3. Replace line 41-44 with the attached code snippet:
Code: Select all
<?php } ?>
<p><a class="wideLinkBox" href="javascript:overlay('parentBox')" title="Manage Parents"><?php echo gettext("Manage Parents"); ?></a></p>
<?php
}
Re: Can't set Parent in Host Template?
Posted: Mon Oct 27, 2014 1:17 pm
by Envera IT
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.
Re: Can't set Parent in Host Template?
Posted: Mon Oct 27, 2014 1:39 pm
by cmerchant
We're glad that worked for you. The patch will be applied to the next release of Nagios XI. Thanks.