Changeset 6619


Ignore:
Timestamp:
Jan 18, 2009, 3:23:34 PM (16 years ago)
Author:
maarten
Message:

Only get configurations for nodes that have the status "up"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/templates/nagios/exodus.cfg

    r6618 r6619  
    1010# Objects configuration #
    1111#########################
    12 {% for node in nodes %}
     12{% for node in nodes %}{% ifequal node.status "up" %}
    1313{% include "nagios/object.nagios" %}
    1414{% include "nagios/services/check_snmp.nagios" %}{# generate service definitions #}
     
    1717{% include "nagios/services/check_version.nagios" %}
    1818{% include "nagios/interface.nagios" %}{# generate interface services and dependencies #}
    19 {% endfor %}
     19{% endifequal %}{% endfor %}
    2020{# Main template for nagios configuration.                               #}
    2121{# Nagios object templates can be identified with the .nagios extension  #}
Note: See TracChangeset for help on using the changeset viewer.