wombat.ch

your Partner for Network Design and CMS

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" {
     parent_host_name = "swt-03.kozo.ch"
     child_host_name = "NAS-01.kozo.ch"
      states = [ Up ]
      disable_checks = true
      ignore_soft_states = true
     disable_notifications = true
 }

 
       
       
       
       
       
       
       
  #   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

RSS Feed


Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed_WID.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_BuergerCERT.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaAnnouncements): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaSecurityNews): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000152:SSL routines::unsafe legacy renegotiation disabled in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): Failed to enable crypto in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://tools.cisco.com/security/center/psirtrss20/CiscoSecurityAdvisory.xml): failed to open stream: operation failed in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 530 guests and no members online

We have 557 guests, no bots and no members online