Changeset 6522 for trunk


Ignore:
Timestamp:
Dec 30, 2008, 9:59:35 PM (16 years ago)
Author:
roland
Message:

Added a nagios file for Richard.

Location:
trunk/exodus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/urls.py

    r6517 r6522  
    1414    (r'^view/nodelist/$', 'exodus.views.viewNodelist'),
    1515    (r'^view/node/(?P<node>.+)/$', 'exodus.views.viewNode'),
     16    (r'^nagios/$', 'exodus.views.nagios'),
    1617
    1718    # config urls
  • trunk/exodus/views.py

    r6517 r6522  
    3535            mimetype='text/plain')
    3636
     37def nagios(request):
     38    nodes = Node.objects.all()
     39    return render_to_response('nagios.txt', {'nodes' : nodes},
     40            mimetype='text/plain')
     41
Note: See TracChangeset for help on using the changeset viewer.