Can't set Parent in Host Template?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Can't set Parent in Host Template?

Post 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".
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...
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Can't set Parent in Host Template?

Post by Envera IT »

also this is 2014R1.5
I like graphs...
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Can't set Parent in Host Template?

Post by WillemDH »

Tried it, but I also don't see that option.

Grtz
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't set Parent in Host Template?

Post by abrist »

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.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Can't set Parent in Host Template?

Post 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
            }
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Can't set Parent in Host Template?

Post 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.
I like graphs...
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Can't set Parent in Host Template?

Post by cmerchant »

We're glad that worked for you. The patch will be applied to the next release of Nagios XI. Thanks.
Locked