Dispatchers

The dispatchers spawn an XMLRPC server per scan and provide statistics for all running server instances.
This interface allows you to "Attach" to (see the output of), pause, resume and shutdown instances.

<%= erb :flash, {:layout => false} %> <% stats.each_pair do |d_url, dispatcher_stats| %>

@<%=escape( d_url )%> - <%=dispatcher_stats['running_jobs'].size%> running scans, <%=i=0;dispatcher_stats['running_jobs'].each{ |job| i+= proc_mem( job['proc']['rss'] ).to_i }; i.to_s%>MB RAM usage.

<%if !dispatcher_stats['running_jobs'].empty? %>
<%= csrf_tag %>
<%end%> <% if !dispatcher_stats['running_jobs'].empty? %> <% dispatcher_stats['running_jobs'].each do |job| %> <%if !job['paused'] %> <% else %> <% end %> <% end %>
PID Port Owner State Start time (Server-side) Current time (Server-side) Runtime Memory consumption Action
<%=job['pid']%> <%=job['port']%> <%=job['owner']%>RunningPaused<%=job['starttime'].to_time%> <%=job['currtime'].to_time%> <%=secs_to_hms( job['runtime'] )%> <%=proc_mem( job['proc']['rss'] )%> MB <% if !( job['owner'] =~/WebUI helper/ ) %>
<%if !job['paused'] %>
<%= csrf_tag %>
<%end%> <%if job['paused'] %>
<%= csrf_tag %>
<% end %> <% end %>
<%= csrf_tag %>
<% else %> There are no running scans at the moment. <% end %>

<% end %>