Monitored processes

<% monitored_procs.each do |mproc| %> <% active = all_procs.select{|p| p.cmdline =~ /#{mproc[:cmdline]}/i } if (active && active.count > 0) active.each do |ap| %> <% end %> <% else %> <% end %> <% end %>
pid procname is active?
<%= ap.pid %> <%= ap.cmdline %> Yes
None <%= mproc[:cmdline] %> No
Attach new process to monitor