Comments (12)
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.
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.
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.
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.
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.
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.
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.
- Do you have a working example with apply rules too?
- Where did you find that view to show the children of a host?
from icingaweb2.
- No. But I don't think that this makes a difference anyway.
- That's from Icinga DB Web, the detail view of the downtime on the parent host
from icingaweb2.
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.
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.
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)
- Graphs disappear during refresh HOT 2
- Allow for global travel back in time in Icingaweb2
- PHP 8.x Fatal Error when Announcement is set HOT 2
- Settings menu flyout closes too fast / easy
- Monitoring IDO Resource asked in setup wizard HOT 1
- `oci`: Document `TNS_ADMIN` environment variable
- Usability: User preferences and general preferences (cog wheel) is placed where the browsers link preview is
- LdapConnection.php - Undefined array key LDAP_CONTROL_PAGEDRESULTS HOT 1
- Dashlets twice in dashboard & not deletable HOT 4
- Underscores in DB backend names not working HOT 2
- Feature Request / allow fontawsome icons as menu items
- Warn the user if Icinga DB is used as configuration database HOT 25
- Browser timezone information 'lost' after a day
- add service state icons to host-list HOT 1
- Web UI crashes for certain html plugin output HOT 5
- Remote auth: Take user groups from a header
- Allow DBMigrationHook to migrate sqlite databases
- PHP deprecation errors
- Custom navigation items: Improve target Single Column URL HOT 1
- Login against Postgres DB is case-sensitive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icingaweb2.