Browse Source

icinga2: Ignore 'planned' as well as 'offline' interfaces for OSPF check.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 6 years ago
parent
commit
5a7da19aa1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      icinga2/bird_ospf_interfaces_down_ok.txt.tmpl

+ 1 - 1
icinga2/bird_ospf_interfaces_down_ok.txt.tmpl

@@ -3,7 +3,7 @@
 #
 {%- set interfaces = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces', {}) %}
 {%- for iface, config in interfaces.items ()|sort %}
-  {%- if config.get ('_state', '') == 'planned' %}
+  {%- if config.get ('_state', '') in [ 'planned', 'offline' ] %}
 {{ iface }}
   {%- endif %}
 {%- endfor %}