<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@agent_event_monitor.id}" form_id = @agent_event_monitor.new_record? ? "new_agent_event_monitor" : "edit_agent_event_monitor_#{@agent_event_monitor.id}" dialog_id = "edit_#{@agent_event_monitor.id}" url = @agent_event_monitor.new_record? ? agent_event_monitors_path : agent_event_monitor_path view_only = @view_only agent_event_monitor_id = @agent_event_monitor.id @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = @agent_event_monitor.name @help_link_anchor = HELP_URL_CONFIG['product_info']['about_product'] %> <% form_for @agent_event_monitor, :html => { :id => form_id, :class => "edit_agent_event_monitor", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent_event_monitor-general", :section_title => t('common.general_title')}) do %>

<%= t_label('common.name') %>

<%= @agent_event_monitor.name %>

<%= t_label('common.description') %>

<%= @agent_event_monitor.description %>

<%= t_label('common.tags') %>

<%= @agent_event_monitor.tag_list %>

<%= t_label('common.agent') %>

<%= @agent_event_monitor.agent.name unless @agent_event_monitor.agent.nil? %>

<%= t_label('agent_event_monitors.agent_event_monitor.event_type') %>

<%= @agent_event_monitor.event_monitor_type_main_text %>

<%= t_label('agent_event_monitors.agent_event_monitor.days_to_retain_history') %>

<%= @agent_event_monitor.days_to_retain %>

<%= t_label('agent_event_monitors.agent_event_monitor.send_snmp_trap') %>

<%= @agent_event_monitor.snmp_notification %>

<%= t_label('agent_event_monitors.agent_event_monitor.send_email') %>

<%= @agent_event_monitor.email_notification %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent_event_monitor-cycle", :section_title => t('agent_event_monitors.agent_event_monitor.cycle_information_title')}) do %>

<%= t_label('common.status') %>

<%= @agent_event_monitor.status %>

<%= t_label('agent_event_monitors.agent_event_monitor.event_valid_from') %>

<%= @agent_event_monitor.from_time_formatted %>

<%= t_label('common.to_upper_case_t') %>

<%= @agent_event_monitor.to_time_formatted %>

<% if !@agent_event_monitor.type_manual? %>

<%= t_label('agent_event_monitors.agent_event_monitor.monitor_for_event_every') %>

<%= "#{@agent_event_monitor.cycle_time} #{t('agent_event_monitors.agent_event_monitor.seconds')}" %>

<% end %> <% end %> <% if @agent_event_monitor.type_manual? %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent_event_monitor-manual", :section_title => t('agent_event_monitors.agent_event_monitor.manual_event_properties_title'), :summary_only => true }) do %>

<%= t_label('agent_event_monitors.agent_event_monitor.event_type') %>

<%= @agent_event_monitor.event_monitor_type_text %>

 

<%= t('agent_event_monitors.agent_event_monitor.manual_event_desc_one') %>

 

<%= t('agent_event_monitors.agent_event_monitor.manual_event_desc_two') %>

<% end %> <% elsif @agent_event_monitor.type_file? %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent_event_monitor-file", :section_title => t('agent_event_monitors.agent_event_monitor.file_event_properties_title')}) do %>

<%= t_label('agent_event_monitors.agent_event_monitor.event_type') %>

<%= @agent_event_monitor.event_monitor_type_text %>

<%= t_label('agent_event_monitors.agent_event_monitor.path') %>

<%= @agent_event_monitor.agent_event_file.file_path %>

<% if @agent_event_monitor.type_file_changed? %>

<%= t_label('agent_event_monitors.agent_event_monitor.changed_attributes') %>

<%= @agent_event_monitor.agent_event_file.changed_attributes_text %>

<% elsif @agent_event_monitor.type_file_threshold? %>

<%= t_label('agent_event_monitors.agent_event_monitor.threshold_attributes') %>

<% if @agent_event_monitor.agent_event_file.greater_than_flag %>

<%= @agent_event_monitor.agent_event_file.threshold_increase_attributes %>

 

<% end %> <% if @agent_event_monitor.agent_event_file.less_than_flag %>

<%= @agent_event_monitor.agent_event_file.threshold_decrease_attributes %>

<% end %>
<% elsif @agent_event_monitor.type_file_added? %>

<%= t_label('agent_event_monitors.agent_event_monitor.added_attributes') %>

<%= @agent_event_monitor.agent_event_file.added_attributes %>

<%= t_label('agent_event_monitors.agent_event_monitor.eof_marker') %>

<% if @agent_event_monitor.agent_event_file.no_eof_marker? %>

<%= @agent_event_monitor.agent_event_file.no_eof_marker %>

<% elsif @agent_event_monitor.agent_event_file.text_eof_marker? %>

<%= @agent_event_monitor.agent_event_file.text_eof_marker %>

 

<%= @agent_event_monitor.agent_event_file.text_eof_marker_encoding %>

 

<% elsif @agent_event_monitor.agent_event_file.hex_eof_marker? %>

<%= @agent_event_monitor.agent_event_file.hex_eof_marker %>

<% end %>
<% end %> <% end %> <% elsif @agent_event_monitor.type_directory? %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent_event_monitor-directory", :section_title => t('agent_event_monitors.agent_event_monitor.directory_event_properties_title')}) do %>

<%= t_label('agent_event_monitors.agent_event_monitor.event_type') %>

<%= @agent_event_monitor.event_monitor_type_text %>

<%= t_label('agent_event_monitors.agent_event_monitor.path') %>

<%= @agent_event_monitor.agent_event_file.file_path %>

<% if @agent_event_monitor.type_directory_changed? %>

<%= t_label('agent_event_monitors.agent_event_monitor.changed_attributes') %>

<%= @agent_event_monitor.agent_event_file.changed_attributes_text %>

<% elsif @agent_event_monitor.type_directory_threshold? %>

<%= t_label('agent_event_monitors.agent_event_monitor.threshold_attributes') %>

<% if @agent_event_monitor.agent_event_file.greater_than_flag %>

<%= @agent_event_monitor.agent_event_file.threshold_increase_attributes %>

 

<% end %> <% if @agent_event_monitor.agent_event_file.less_than_flag %>

<%= @agent_event_monitor.agent_event_file.threshold_decrease_attributes %>

<% end %>
<% elsif @agent_event_monitor.type_directory_added? %>

<%= t_label('agent_event_monitors.agent_event_monitor.added_attributes') %>

<%= @agent_event_monitor.agent_event_file.added_attributes %>

<% end %> <% end %> <% elsif @agent_event_monitor.type_process? %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent_event_monitor-process", :section_title => t('agent_event_monitors.agent_event_monitor.process_event_properties_title')}) do %>

<%= t_label('agent_event_monitors.agent_event_monitor.event_type') %>

<%= @agent_event_monitor.event_monitor_type_text %>

<% if @agent_event_monitor.type_process_started? %>

<%= t_label('agent_event_monitors.agent_event_monitor.process_started_attributes') %>

<% if !@agent_event_monitor.agent_event_process.process_name.blank? %>

<%= @agent_event_monitor.agent_event_process.process_command_attributes %>

 

<% end %> <% if !@agent_event_monitor.agent_event_process.user_name.blank? %>

<%= @agent_event_monitor.agent_event_process.process_user_attributes %>

 

<% end %>

<%= @agent_event_monitor.agent_event_process.process_active_time %>

<% elsif @agent_event_monitor.type_process_ended? %>

<%= t_label('agent_event_monitors.agent_event_monitor.process_ended_attributes') %>

<% if !@agent_event_monitor.agent_event_process.process_name.blank? %>

<%= @agent_event_monitor.agent_event_process.process_command_attributes %>

 

<% end %> <% if !@agent_event_monitor.agent_event_process.user_name.blank? %>

<%= @agent_event_monitor.agent_event_process.process_user_attributes %>

<% end %>
<% end %> <% end %> <% end %>
<%= standard_buttons(button_id) %>
<% end %>