Icinga2 | dependencies
Imagine, you have a Switch with 3 NAS on it - the NAS are not often used and Switched off like the Switch itself.
so
the Host-Check to the NAS should only be when Switch is on and hostalive!
the NAS-Service-Check should only be if the NAS ist up = hostalive!
# cd /etc/icinga2/conf.d | |||
# mkdir dependence | |||
# cd dependence | |||
# vi switch2nas.conf | |||
object Dependency "switch2nas" { parent_host_name = "swt-03.kozo.ch" child_host_name = "NAS-01.kozo.ch" child_host_name = "NAS-02.kozo.ch" child_host_name = "NAS-03.kozo.ch" states = [ Up ] disable_checks = true disable_notifications = true } |
|||
Go to the Host you wish to add the dependency This will by a Host - Host dependency if the Switch swt-03 is down the NAS-01 get unrechable marked |
object Dependency "nas-01-swt-03" { |
||
# icinga2 daemon -C | |||
# systemctl reload icinga2 | |||
# systemctl status icinga2 | |||
# multitail /var/log/icinga2/icinga2.log |
-
-
Quellle/Source:
-
-
-
- Icinga2 Doc | Dependency
- Icinga2 Doc | Dependencies
- Icinga2 Doc | Apply Dependencies to Hosts and Services
-
-
-
-
-
-
-
- -
modul-icinga-articlelist
- ✔ Icinga2 | (spez)Plugins | define path
- ✔ Icinga2 | add NAS-Qnap (check_qnap3)
- ✔ icinga2 | check_ssl_cert
- 01 ✔ Install graphite for incibaweb2 on Debian 9
- 02 Icinga2 Modul Director on Debian9
- 90_(Solved) Icinga error: icinga2: Can't send external Icinga command to the local command file "/var/run/icinga2/cmd/icinga2.cmd": Permission denied.
- 99_(solved) error after enter token
- add a client to Icinga / or Remove the client save
- critical/icinga-app: Another instance of Icinga already running with PID
- first Install check_nwc_health
- Icinga config
- Icinga2 | add a Windows Client to Icinga2 Master
- Icinga2 | add Cisco Switch 3560 Familie
- Icinga2 | add FreeNAS
- Icinga2 | add Fritzbox 7490
- Icinga2 | add Icinga2 Client (CentOS 7) to a Master (r2.10.3-1)
- Icinga2 | add Icinga2 Client to a Master (r2.9.0-1)
- Icinga2 | add NAS-Drobo
- Icinga2 | add OpnSense Check (check_opnsense)
- Icinga2 | add Proxmox
- Icinga2 | add Raspberry Pi (Debian9)
- Icinga2 | add service to a hostgroup
- Icinga2 | add Supermicro IPMI
- Icinga2 | add USV/UPS
- Icinga2 | check_logfiles
- Icinga2 | ClamAV ¦ check_clamav
- icinga2 | dashing test
- Icinga2 | define (setup) the Master
- Icinga2 | define Hostgroup & add Host to a Hostgroup
- Icinga2 | dependencies
- Icinga2 | Gude Expert Power Control 8220 Serie
- Icinga2 | notification telegram & Email
- Icinga2 | send email notification only once (on time)
- Icinga2 | snmp
- Icinga2 | SNMP Unifi Pro AP
- Icinga2 | Upgrade Information
- icinga2 |apt wrapper |-NOK 24.08.2018
- icinga2 |check_log
- icinga2 Problems
- Muster
- Path and Links to the documentation
- plugin - Servie - Host
- show Version & Check's & nice icinga2 commands
- tmpl-24x7-host-mail