<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@agent.id}" form_id = "edit_agent_#{@agent.id}" dialog_id = "edit_#{@agent.id}" url = agent_path view_only = (@view_only) @title_section = t('agents.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @agent.name @help_link_anchor = HELP_URL_CONFIG['agents']['agent_settings'] %> <% form_for @agent, :html => { :id => form_id, :class => "edit_agent", :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-general", :section_title => t('common.general_title')}) do %>

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

<%= h @agent.name %>

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

<%= h @agent.description %>

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

<%= h @agent.tag_list %>

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

<%= h @agent.alias_list %>

<%= t_label('agents.job_shell') %>

<%= h @agent.job_shell %>

<%= t_label('agents.product_rel_mod') %>

<%= version_label(@agent) %>

<%= t_label('agents.port_number') %>

<%= h @agent.port_number %>

<%= t_label('agents.ip_address') %>

<%= h @agent.ip_address %>

<%= t_label('agents.operating_system') %>

<%= h @agent.operating_system %>

<%= t_label('agents.cpu_information') %>

<%= h @agent.cpu_information %>

<%= t_label('agents.timezone') %>

<%= h @agent.time_zone %>

<%= t_label('agents.no_password_enabled') %>

<%= h @agent.no_password_enabled_text %>

<%= t_label('agents.agent_name_clustering') %>

<%= h @agent.agent_name_clustering_text %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent-offline-notification", :section_title => t('agents.offline_notification')}) do %>

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

<%= @agent.snmp_notification %>

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

<% if @agent.email_notification.is_a? Array%> <%= formatted_list_of_usernames(@agent.email_notification ) %> <% else %> <%= @agent.email_notification %> <% end %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent-diagnostic", :section_title => t('agents.diagnostic')}) do %>

<%= t_label('agents.logging_level') %>

<% if @agent.logging_level == Agent::LOGGING_LEVEL_INFORMATIONAL %> <%= t "agents.informational" %> <% elsif @agent.logging_level == Agent::LOGGING_LEVEL_DEBUG %> <%= t "agents.debug" %> <% elsif @agent.logging_level == Agent::LOGGING_LEVEL_TRACE %> <%= t "agents.trace" %> <% else %> <%= t "agents.unknown_status" %> <% end %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "agent-standby-server", :section_title => t("agents.standby_override")}) do %> <% if (@agent.standby_server_override.nil? || @agent.standby_server_override.strip.length < 1) || (@agent.standby_port_override.nil? || @agent.standby_port_override < 1) %>

<%= t_label('system_settings.standby_server') %>

<%= t('common.not_configured') %>

<% else %>

<%= t_label('system_settings.standby_server') %>

<%= @agent.standby_server_override%>:<%= @agent.standby_port_override %>

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