Changeset 6610
- Timestamp:
- Jan 16, 2009, 3:22:29 AM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 12 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/urls.py
r6525 r6610 14 14 (r'^view/nodelist/$', 'exodus.views.viewNodelist'), 15 15 (r'^view/node/(?P<node>.+)/$', 'exodus.views.viewNode'), 16 (r'^nagios/$', 'exodus.views.nagios'),17 16 18 17 # Content views … … 26 25 # config urls 27 26 (r'^config/(?P<version>.+)/(?P<node>.+)/(?P<file>.+)$', 'exodus.views.configFile'), 28 27 28 # Nagios configuration 29 url(r'^view/nagios/$', 'exodus.urls.direct_to_template', {'template': 'viewNagios.html'}, "csvIndex"), 30 (r'^view/nagios/exodus.cfg$', 'exodus.views.viewNagios'), 31 29 32 # 3th party/embedded database browser 30 33 (r'^databrowse/(.*)', databrowse.site.root), -
trunk/exodus/views.py
r6525 r6610 67 67 node = Node.objects.get(name=node) 68 68 69 # Extra stati ctics information for use of generation69 # Extra statistics information for use of generation 70 70 server = {} 71 71 server['host'] = gethostname() … … 75 75 mimetype='text/plain') 76 76 77 def nagios(request):77 def viewNagios(request, file): 78 78 nodes = Node.objects.all() 79 return render_to_response('nagios.txt', {'nodes' : nodes},80 79 interfaces = Interface.objects.all() 80 return render_to_response('nagios/exodus.cfg', {'nodes' : nodes}, mimetype='text/plain') 81 81 82
Note:
See TracChangeset
for help on using the changeset viewer.