- Timestamp:
- Jan 17, 2009, 3:56:22 PM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 1 added
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus
-
Property svn:ignore
set to
*.pyc
-
Property svn:ignore
set to
-
trunk/exodus/templates/nagios/exodus.cfg
r6615 r6617 1 # This configuration is generated on {% now "G:i j-n-Y" %} by exodus 2 # You can fetch the latest config @ exodus under view/nagios 3 {% for node in nodes %} 4 {% include "nagios/object.nagios" %}{# generate host definition #} 5 {% include "nagios/services/check_snmp.nagios" %}{# generate service definitions #} 6 {% include "nagios/services/check_dns.nagios" %} 7 {% include "nagios/services/check_pen.nagios" %} 8 {% include "nagios/services/check_version.nagios" %} 9 {% include "nagios/interface.nagios" %}{# generate interface services and dependencies #} 10 {% endfor %} 1 11 {# Main template for nagios configuration. #} 2 12 {# Nagios object templates can be identified with the .nagios extension #} … … 6 16 {# and make use of the 'parents' directive in the object.cfg. #} 7 17 {# ? possibly inserted in template with template tags ? #} 8 9 {% for node in nodes %}10 {# generate host definition #}11 {% include "nagios/object.nagios" %}12 13 {# generate service definitions #}14 {% include "nagios/services/check_snmp.nagios" %}15 {% include "nagios/services/check_dns.nagios" %}16 {% include "nagios/services/check_pen.nagios" %}17 {% include "nagios/services/check_version.nagios" %}18 19 {# generate interface services and dependencies #}20 {% include "nagios/interface.nagios" %}21 {% endfor %} -
trunk/exodus/templates/nagios/interface.nagios
r6615 r6617 1 {# This template file coordinates specific service checks for the various interface types #}2 1 {% for nic in node.interface_set.all %} 3 {% include nagios/services/check_if.nagios} 4 {# if it's a managed interface create a dependency to it's master#} 5 {% ifnotequal nic nic.link %} 6 {% include nagios/services/dependend_interface.nagios} 7 {% endifnotequal %} 2 {% include "nagios/services/check_if.nagios" %} 3 {% ifnotequal nic nic.link %}{# If the node is a client make it depend of it's master #} 4 {% include "nagios/services/depend_interface.nagios" %} 5 {% endifnotequal %} 8 6 {% endfor %} -
trunk/exodus/templates/nagios/object.nagios
r6615 r6617 1 1 define host { 2 host_name 3 alias 4 use 5 address 6 check_command 7 hostgroups 8 notes 9 notes_url 10 icon_image 11 icon_image_alt 2 host_name {{ node.name }} 3 alias {{ node.name }}.{{ node.network.name }} 4 use nodes 5 address {{ node.masterip }} 6 check_command check_alive 7 hostgroups {{ node.network.name }} 8 notes This configuration is generated on {% now "G:i j-n-Y" %} by exodus 9 notes_url http://rick.wleiden.net/exodus{% url exodus.views.viewNode node.name %} 10 icon_image nodes.png 11 icon_image_alt Node {{ node.name }} 12 12 statusmap_image nodes.gd2 13 13 } -
trunk/exodus/templates/nagios/services/check_dns.nagios
r6610 r6617 1 1 define service { 2 3 4 5 2 host_name {{ node.name }} 3 service_description Check DNS 4 check_command check_dns 5 use generic_service 6 6 } -
trunk/exodus/templates/nagios/services/check_if.nagios
r6615 r6617 1 1 define service { 2 host_name {{ node.name }} 3 use check_if 2 host_name {{ node.name }} 4 3 service_description Check interface {{ nic.iface }} 5 check_command check_if!{{ nic.ip }} 6 servicegroups all_interfaces 4 check_command check_if!{{ nic.ip }} 5 servicegroups all_interfaces {# todo: different interfaces in different groups#} 6 use generic_service 7 7 } -
trunk/exodus/templates/nagios/services/check_pen.nagios
r6610 r6617 1 1 define service { 2 3 4 5 2 host_name {{ node.name }} 3 service_description Check PEN 4 check_command check_dns_proxy_wl 5 use generic_service 6 6 } -
trunk/exodus/templates/nagios/services/check_snmp.nagios
r6610 r6617 1 1 define service { 2 3 4 5 2 host_name {{ node.name }} 3 service_description Check SNMP 4 check_command check_uptime 5 use generic_service 6 6 } -
trunk/exodus/templates/nagios/services/check_version.nagios
r6610 r6617 1 1 define service { 2 3 4 5 2 host_name {{ node.name }} 3 service_description Check OS version 4 check_command check_version 5 use generic_service 6 6 } 7 8 7 define servicedependency{ 9 host_name 10 service_description 11 dependent_host_name 12 dependent_service_description 13 execution_failure_criteria 8 host_name {{ node.name }} 9 service_description Check OS version 10 dependent_host_name {{ node.name }} 11 dependent_service_description Check SNMP 12 execution_failure_criteria w,u,c 14 13 }
Note:
See TracChangeset
for help on using the changeset viewer.