<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page errorPage="../error.jsp"%> <%@ page import="nagios.utilities.*,nagios.ConfigurationObjects.*;" %> CONFIGURAR CONTACTO

CONFIGURAR CONTACTO

<% ContactTO contacto = null; ContactTO[] plnts = null; ContactTO plantilla = null; ContactgroupTO[] contactgroups = null; TimeperiodTO[] timeperiods = null; CommandTO[] commands = null; //Obtenemos los datos del request contacto = (ContactTO)request.getAttribute(Constants.DATA); plnts = (ContactTO[])request.getAttribute(Constants.TMPLAVALIABLES); plantilla = (ContactTO)request.getAttribute(Constants.TEMPLATE); timeperiods = (TimeperiodTO[])request.getAttribute(Constants.TIMEPERIODS); commands = (CommandTO[])request.getAttribute(Constants.COMMANDS); contactgroups = (ContactgroupTO[])request.getAttribute(Constants.CONTACTGROUPS); //Si se ha encontrado algo if (contacto != null && contacto.getContact_name() != null){ %>

Los campos con asterisco (*) son obligatorios
Valor Valor de la plantilla ¿Sobreescribe plantilla?
Identificador*
Nombre* <% if (plantilla != null && plantilla.getContact_name() != null) out.println(plantilla.getContact_name().getValue()); %>
checked="true" <%} %>>
Alias* <%if(plantilla != null && plantilla.getAlias().getValue() != null) out.println(plantilla.getAlias().getValue()); %>
checked="true" <%} %>>
Name (nombre como plantilla) <%if(plantilla != null && plantilla.getName().getValue() != null) out.println(plantilla.getName().getValue()); %>
Register* <%//if(plantilla != null) out.println(plantilla.getAlias().getValue()); %>
plantilla <% if(plantilla != null && plantilla.getTemplate().getValue() != null) out.println(plantilla.getTemplate().getValue()); %>
host_notification_period* <% if (plantilla != null && plantilla.getHost_notification_period().getValue() != null) out.println(plantilla.getHost_notification_period().getValue()); %>
checked="true" <%} %>>
service_notification_period* <% if (plantilla != null && plantilla.getService_notification_period() != null) out.println(plantilla.getService_notification_period().getValue()); %>
checked="true" <%} %>>
host_notification_options* [d,u,r,f,n] <%if(plantilla != null && plantilla.getHost_notification_options().getValue() != null) out.println(plantilla.getHost_notification_options().getValue()); %>
checked="true" <%} %>>
service_notification_options* [w,u,c,r,f,n] <%if(plantilla != null && plantilla.getService_notification_options().getValue() != null) out.println(plantilla.getService_notification_options().getValue()); %>
checked="true" <%} %>>
host_notification_commands <% if (plantilla != null && plantilla.getHost_notification_commands().getValue() != null) out.println(plantilla.getHost_notification_commands().getValue()); %>
checked="true" <%} %>>
service_notification_commands <% if (plantilla != null && plantilla.getService_notification_commands().getValue() != null) out.println(plantilla.getService_notification_commands().getValue()); %>
checked="true" <%} %>>
email <%if(plantilla != null && plantilla.getEmail() != null) out.println(plantilla.getEmail().getValue()); %>
checked="true" <%} %>>
pager <%if(plantilla != null && plantilla.getPager().getValue() != null) out.println(plantilla.getPager().getValue()); %>
checked="true" <%} %>>
addressx <%if(plantilla != null && plantilla.getAddressx().getValue() != null) out.println(plantilla.getAddressx().getValue()); %>
checked="true" <%} %>>
<% } %>

Modificar los grupos de contacto del usuario

e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


APLICACIÓN PARA LA GENERACIÓN Y ADMINISTRACIÓN DE LA CONFIGURACIÓN DE NAGIOS

: BRAVO ORTIZ, AGUSTÍN
: Ingeniería Telecomunicación
Contenido del proyecto: