Git Product home page Git Product logo

Comments (12)

nilmerg avatar nilmerg commented on July 20, 2024

Hi,

what do you mean by satellite host? The parent host? If I schedule a downtime there, with the necessary options, the child hosts get one too. So, works for me.

Please share the dependency configuration.

from icingaweb2.

joshua-koch-vv avatar joshua-koch-vv commented on July 20, 2024

Hi,

yes I mean the parent host. In our configuration only the parent host and its services get a downtime.

Configuration:

zones.conf
object Endpoint "satellite.xxx.xxx" {
host = "satellite.xxx.xxx"
}

object Zone "EH-Test" {
endpoints = [ "satellite.xxx.xxx" ]
parent = "master"
}

object Zone "master" {
endpoints = [ "master.xxx.xxx" ]
}

child.conf
object Endpoint "child.xxx.xxx" { }

object Zone "child.xxx.xxx" {
endpoints = ["child.xxx.xxx"]
parent = "EH-Test"
}

from icingaweb2.

nilmerg avatar nilmerg commented on July 20, 2024

What you've posted is the zone configuration. What I've meant, is the dependency configuration of the hosts in question. If there's any, because if there's none, it explains what you're experiencing. 😉

from icingaweb2.

joshua-koch-vv avatar joshua-koch-vv commented on July 20, 2024

Indeed I did not configure a dependency configuration.

I just configured one.
A downtime for child hosts is working now but the services of the child host do not get a downtime.

I tried to configure a service dependency with the same parent_host_name as the host dependency but had no success.

Configuration:

apply Dependency "p-host" to Host {
parent_host_name = "satellite.xxx.xxx"

assign where host.vars.env == "prod"
ignore where host.name == "satellite.xxx.xxx"
}

apply Dependency "p-service" to Service {
parent_host_name = "satellite.xxx.xxx"
parent_service_name = "check_hostalive"

assign where host.vars.env == "prod"
ignore where host.name == "satellite.xxx.xxx"
}

from icingaweb2.

nilmerg avatar nilmerg commented on July 20, 2024

but the services of the child host do not get a downtime.

For this you need to tick the box saying All Services

from icingaweb2.

joshua-koch-vv avatar joshua-koch-vv commented on July 20, 2024

I ticked the box saying All Services but only the services on the parent host get a downtime and not the services of the child hosts.

from icingaweb2.

nilmerg avatar nilmerg commented on July 20, 2024

Works for me:
image

object Host "switch" {
    check_command = "dummy"
    check_interval = 5m
    retry_interval = 1m

    vars.dummy_state = 2
}

object Host "pc1" {
    check_command = "dummy"
    check_interval = 5m
    retry_interval = 1m

    vars.dummy_state = 2
}

object Service "pc1-disk" {
    check_command = "dummy"
    check_interval = 5m
    retry_interval = 1m

    host_name = "pc1"

    vars.dummy_state = 3
}

object Dependency "pc1-switch" {
  parent_host_name = "switch"

  child_host_name = "pc1"

  states = [ Up ]

  disable_checks = true
}

from icingaweb2.

joshua-koch-vv avatar joshua-koch-vv commented on July 20, 2024
  1. Do you have a working example with apply rules too?
  2. Where did you find that view to show the children of a host?

from icingaweb2.

nilmerg avatar nilmerg commented on July 20, 2024
  1. No. But I don't think that this makes a difference anyway.
  2. That's from Icinga DB Web, the detail view of the downtime on the parent host

from icingaweb2.

joshua-koch-vv avatar joshua-koch-vv commented on July 20, 2024

Hi, I installed Icinga DB Web now.
The downtime including services of the child hosts is working now but only with the Icinga DB Web UI.

With the default monitoring UI module it is still not working.

from icingaweb2.

nilmerg avatar nilmerg commented on July 20, 2024

What is not working?

There's no difference how monitoring and Icinga DB Web create downtimes. Both do that by contacting the Icinga 2 API, if it works with Icinga DB Web, it should with monitoring as well. The only difference is how parent/child relations are visualized, as that's only done in Icinga DB Web.

from icingaweb2.

joshua-koch-vv avatar joshua-koch-vv commented on July 20, 2024

When I create a downtime via the monitoring module, the child hosts receive a downtime but not the services of the child hosts, even if I check the box "All Services".
If I create the downtime via Icinga DB Web, the services of the child hosts also get a downtime.

from icingaweb2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.