Changeset 6615
- Timestamp:
- Jan 16, 2009, 5:47:29 PM (17 years ago)
- Location:
- trunk/exodus/templates/nagios
- Files:
-
- 3 added
- 3 edited
-
exodus.cfg (modified) (1 diff)
-
interface.nagios (added)
-
object.nagios (modified) (1 diff)
-
services/check_if.nagios (modified) (2 diffs)
-
services/dependend_interface.nagios (added)
-
services/dependend_snmp.nagios (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/templates/nagios/exodus.cfg
r6612 r6615 1 {# 2 Main template for nagios configuration. 3 Nagios object templates can be identified with the .nagios extension 4 5 todo: 6 for parent child relations (as far as possible in nagios) detect them 7 and make use of the 'parents' directive in the object.cfg. 8 ? possibly inserted in template with template tags ? 9 #} 1 {# Main template for nagios configuration. #} 2 {# Nagios object templates can be identified with the .nagios extension #} 3 {# #} 4 {# TODO: #} 5 {# for parent child relations (as far as possible in nagios) detect them #} 6 {# and make use of the 'parents' directive in the object.cfg. #} 7 {# ? possibly inserted in template with template tags ? #} 10 8 11 9 {% for node in nodes %} 10 {# generate host definition #} 12 11 {% include "nagios/object.nagios" %} 12 13 {# generate service definitions #} 13 14 {% include "nagios/services/check_snmp.nagios" %} 14 15 {% include "nagios/services/check_dns.nagios" %} 15 16 {% include "nagios/services/check_pen.nagios" %} 16 17 {% include "nagios/services/check_version.nagios" %} 17 {% include "nagios/services/check_if.nagios" %} 18 19 {# generate interface services and dependencies #} 20 {% include "nagios/interface.nagios" %} 18 21 {% endfor %} -
trunk/exodus/templates/nagios/object.nagios
r6612 r6615 1 1 define host { 2 2 host_name {{ node.name }} 3 {# alias {{ node.name + '.' + node.network.name }} #} 4 alias {{ node.name }} 3 alias {{ node.name }}.{{ node.network.name }} 5 4 use nodes 6 5 address {{ node.masterip }} -
trunk/exodus/templates/nagios/services/check_if.nagios
r6612 r6615 1 {% for nic in node.interface_set.all %}2 1 define service { 3 2 host_name {{ node.name }} … … 7 6 servicegroups all_interfaces 8 7 } 9 {% ifnotequal nic nic.link %}10 define servicedependency{11 host_name {{ node.name }}12 service_description Check interface {{ nic.iface }}13 dependent_host_name {{ nic.link.node }}14 dependent_service_description Check interface {{ nic.link.iface }}15 execution_failure_criteria w,u,c16 }17 {% endifnotequal %}18 {% endfor %}
Note:
See TracChangeset
for help on using the changeset viewer.
