Changeset 6618
- Timestamp:
- Jan 18, 2009, 5:18:39 AM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus
- Property svn:ignore
-
old new 1 1 *.pyc 2 exodus.db 3 py.conf
-
- Property svn:ignore
-
trunk/exodus/templates/nagios/exodus.cfg
r6617 r6618 1 1 # This configuration is generated on {% now "G:i j-n-Y" %} by exodus 2 2 # You can fetch the latest config @ exodus under view/nagios 3 4 ########################### 5 # Hostgroup configuration # 6 ########################### 7 {% include "nagios/hostgroup.nagios" %} 8 9 ######################### 10 # Objects configuration # 11 ######################### 3 12 {% for node in nodes %} 4 {% include "nagios/object.nagios" %} {# generate host definition #}13 {% include "nagios/object.nagios" %} 5 14 {% include "nagios/services/check_snmp.nagios" %}{# generate service definitions #} 6 15 {% include "nagios/services/check_dns.nagios" %} -
trunk/exodus/templates/nagios/object.nagios
r6617 r6618 1 {% load location %} 1 2 define host { 2 3 host_name {{ node.name }} … … 5 6 address {{ node.masterip }} 6 7 check_command check_alive 7 hostgroups {{ node.network.name }} 8 hostgroups {{ node.network.name }},{{ node.location.description|getLocationName|slugify }} 8 9 notes This configuration is generated on {% now "G:i j-n-Y" %} by exodus 9 10 notes_url http://rick.wleiden.net/exodus{% url exodus.views.viewNode node.name %} -
trunk/exodus/templatetags
-
Property svn:ignore
set to
*.pyc
-
Property svn:ignore
set to
-
trunk/exodus/views.py
r6612 r6618 8 8 9 9 10 from exodus.models import Node 10 from exodus.models import Node, Network, Location 11 11 12 12 # Views … … 77 77 def viewNagios(request): 78 78 nodes = Node.objects.all() 79 return render_to_response('nagios/exodus.cfg', {'nodes' : nodes}, mimetype='text/plain') 79 networks = Network.objects.all() 80 locations = Location.objects.all() 81 return render_to_response('nagios/exodus.cfg', {'nodes' : nodes, 'networks' : networks, 'locations' : locations}, mimetype='text/plain') 80 82 81 83
Note:
See TracChangeset
for help on using the changeset viewer.