%inherit file="base.html"/>
% for endpoint, stat_endpoint in endpoints.items():
% for watcher, options in controller.get_client(endpoint).watchers:
% if watcher not in controller.get_client(endpoint).plugins:
${options['numprocesses']}
${options['cmd']} ${options['args']}
${options['shell']}
${options['uid']}
${options['gid']}
% endif
% endfor
<%def name='draw_graph_div(watcher, name=None, display_status=False, socket=False, endpoint=None)'>
${name or watcher}
%if display_status:
%endif
%if socket:
Reads
0
%else:
CPU
0 %
Mem
0 %
%endif
%def>
${draw_graph_div('circus', endpoint=stat_endpoint)}
${draw_graph_div('circusd-stats', endpoint=stat_endpoint)}
%if controller.get_client(endpoint).embed_httpd:
${draw_graph_div('circushttpd', 'circushttpd', endpoint=stat_endpoint)}
%endif
%if controller.get_client(endpoint).use_sockets:
${draw_graph_div('socket-stats', 'Socket Activity (
see all the sockets for the endpoint)', socket=True, endpoint=stat_endpoint)}
%endif
%for plugin in controller.get_client(endpoint).plugins:
${draw_graph_div(plugin, plugin.split(':')[1].replace('-', '.'), True, endpoint=stat_endpoint)}
%endfor