Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #1820] Child hosts #717

Closed
icinga-migration opened this issue Aug 15, 2011 · 13 comments
Closed

[dev.icinga.com #1820] Child hosts #717

icinga-migration opened this issue Aug 15, 2011 · 13 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/1820

Created by mzac on 2011-08-15 13:18:01 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2011-11-01 11:58:31 +00:00)
Target Version: 1.6
Last Update: 2014-12-08 09:32:44 +00:00 (in Redmine)


I was wondering if the Icinga team has plans to add an option into the classic web interface to be able to find what are the child hosts of a host? For example, when I have a multiple blocking outages and multiple hosts that are unreachable, I want to be able to see a list (and not a map) of what hosts are affected. Thruk GUI for Nagios/Icinga has already done something like this but I'd REALLY like to see this in Icinga! I'm currently working on a deployment to monitor over 6k hosts with about 20k services so this would be a very good feature to have!

Attachments

Changesets

2011-10-06 17:40:34 +00:00 by mfriedrich 1556928

* classic ui: add opt-in extinfo_show_child_hosts to show child hosts in extinfo.cgi #1820

by default disabled, because it will loop through all available hosts,
and then checking the the host is an immediate child which will invoke
at least another loop, and causing longer loading times.

works the same as hostgroups and dependencies.

refs #1820

2011-10-07 20:12:14 +00:00 by ricardo 01a7fbe

classic-ui: enhanced extinfo_show_child_hosts to show child hosts in extinfo.cgi #1820

refs: #1820

* changes config option to
	0 = disabled
	1 = only show immediate child hosts
	2 = show immediate and all child hosts

* you have to click the + icon next to the text to see child hosts
  this prevents the page from "overflowing" when host has lots of
  child hosts.

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-08-23 08:45:27 +00:00

  • Status changed from New to Feedback
  • Target Version set to 1.6

that will need a new search using is_host_immediate_child_of_host(parent_host, child_host) and running through all available hosts. could be a performance killer on large environments, so i'd expect that to be enabled via cgi.cfg and disabled by default.

@icinga-migration
Copy link
Author

Updated by mzac on 2011-08-23 12:53:31 +00:00

I was wondering, when you have a blocking outage it shows the number of hosts affected. Maybe this option could be more easily added to the blocking outage page where you could click on the number of hosts affected. If it has this calculation already does it have the hosts?

Severity    Host         State   Notes   State Duration   # Hosts Affected  # Services Affected Actions
210      ether-sw1  DOWN    N/A  0d 0h 12m 15s  150                 242      
                                                          ^-- Click on this to see which hosts are affected

@icinga-migration
Copy link
Author

Updated by mjbrooks on 2011-09-15 18:42:27 +00:00

It has the count, but which hosts they are would have to be built in the manner dnsmichi described and has the drawback he alluded to.

I do like the idea too though.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-06 17:13:47 +00:00

  • File added classicui_extinfo_add_child_hosts.png

some test configs.

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test
        alias                   localhost-test
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        }

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test-p1
        alias                   localhost-test-p1
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        parents                 localhost-test
        }

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test-p2
        alias                   localhost-test-p2
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        parents                 localhost-test
        }

a shiny pic how it would look like in extinfo.cgi

classicui_extinfo_add_child_hosts.png

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-06 17:22:56 +00:00

the outages.cgi and the count below can't be taken just because of the fact that there is no filter for that on the status.cgi - you might pass a seperated list of hosts to be shown though, if this would be implemented - see #1981

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-06 17:32:40 +00:00

  • Status changed from Feedback to Assigned
  • Assigned to set to mfriedrich

made it a config option on the cgi.cfg so this can be used further.

# SHOW CHILD HOSTS IN EXTINFO OPTION
# This Option allows you to specify if the extended host information
# cgi will show all direct child hosts.
# By default disabled, as this could be a performance killer.

extinfo_show_child_hosts=0

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-06 17:44:32 +00:00

pushed to dev/cgis for internal verification, if ok merge to test/cgis pls @ Ricardo.

@icinga-migration
Copy link
Author

Updated by ricardo on 2011-10-07 20:51:48 +00:00

  • Status changed from Assigned to Feedback

reworked it a bit.

  • changes config option to
    0 = disabled
    1 = only show immediate child hosts
    2 = show immediate and all child hosts
  • you have to click the + icon next to the text to see child hosts
    this prevents the page from "overflowing" when host has lots of
    child hosts.

in current "test/cgi" please test test test!

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-09 12:24:29 +00:00

if so, please update the docs issue too!

i will test the changes once i'll get my hands on my dev box again (later next week).

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-20 10:24:15 +00:00

  • File added classicui_extinfo_add_child_hosts_immediate_and_all.png

defined another bunch of configs, adding a deeper leave.

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test
        alias                   localhost-test
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        }

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test-p1
        alias                   localhost-test-p1
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        parents                 localhost-test
        }

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test-p2
        alias                   localhost-test-p2
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        parents                 localhost-test
        }

define host{
        use                     linux-server            ; Name of host template to use
                                                        ; This host definition will inherit all variables that are defined
                                                        ; in (or inherited by) the linux-server host template definition.
        host_name               localhost-test-p1-2
        alias                   localhost-test-p1-2
        address                 127.0.0.1
        action_url              http://wiki/.../SvcView?hostgroup=$HOSTGROUPNAME$&hostname=$HOSTNAME$
        parents                 localhost-test-p1
        }

localhost-test-p1-2 will only be shown if 2 is enabled in cgi.cfg

screenshot reflects that, with 1 the above behavior works, with 0 nothing shown. the + js icon makes sense.

classicui_extinfo_add_child_hosts_immediate_and_all.png

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-10-20 10:24:42 +00:00

  • Category set to 55
  • Done % changed from 0 to 100

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-11-01 11:58:31 +00:00

  • Status changed from Feedback to Resolved

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-08 09:32:44 +00:00

  • Project changed from 19 to Core, Classic UI, IDOUtils
  • Category changed from 55 to Classic UI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant