Gestión de Traps SNMP Carlos Vicente Servicios de Red

Slides:



Advertisements
Presentaciones similares
Cable & Wireless Panamá. Entrar a Inicio, Programas y buscar Windows Live.
Advertisements

Ir a… Saying what you are going to do. When you talk about things you are planning to do in the future, you say what you are going to do. To talk about.
Meta: be able to write with no errors on infinitive triggers and agreement Entrada: Escribir-reflecion Escribir de la casa Para salir: use an infinitve.
Estar Forms PRESENTPRETERITEIMPERFECT estoyestuveestaba estásestuvisteestabas estáestuvoestaba estamosestuvimosestábamos estáisestuvisteisestabais estánestuvieronestaban.
Hacer in Time Expressions
Carlos Vicente Servicios de Red Universidad de Oregon
Carlos Vicente Servicios de Red Universidad de Oregon
2008 Mérida, Venezuela Mediciones de retardo con Smokeping Walc de Noviembre Hervey Allen Con Materias de Carlos Vicente.
Cacti: Monitoreo de Tendencias
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Carlos Armas Roundtrip Networks Hervey Allen NSRC.
Carlos Armas Roundtrip Networks Hervey Allen NSRC.
Carlos Armas Roundtrip Networks Corp.. Instalar y proveer sistemas rápido! Eliminar tareas repetitivas La configuración de los sistemas tiende a la divergencia.
E-science grid facility for Europe and Latin America CeCalCULA Ambientes y Herramientas para la e-Investigación Mérida, Portales.
Enchúlame la Máquina SQL Server 2005
SABER VS. CONOCER © Rino Avellaneda, 2008 Edited, Havala Gilane, 2009.
Im doing a survey about luxuries and necessities. What do you think about buying a flashlight? Its a necessity when we dont have electricity. ¡Hola! Yo.
ALC 63 jueves el 7 de enero Please have your verb flash cards on your desk.
Por una vida sana: Nuestra Clase
USING THE INTERNET. 2 Concept 6.1 What Is the Internet? The Internet is millions of computers from all parts of the world connected so that they can communicate.
IR- to go voy vamos vas vais va van
El Imperfecto!!!!!! We have learned about the preterit now its time to learn about the other past tense….
2003 HYPACK MAX Training Seminar1 Sample Monepts – Flying Along a Planned Line in 3D Terrain Viewer (3DTV) One of the flight modes in 3D TV is LNW.
2003 HYPACK MAX Training Seminar1 Sample Belgium Test Inputting Tag Line information into HYPACK® MAX In the old days, a Tag Line was anchored to.
Por y para Youve probably noticed that there are two ways to express for in Spanish: PorPara In this presentation, well look at how these two prepositions.
Negative words deny the existence of people and things or contradict statements, for instance, no one or nothing. Spanish negative words have corresponding.
The Present Tense of tener (to have)
Repaso: Negative words and time constructions
ARQUITECTURA DE COMPUTADORES - PIPELINING
Time Expression with Hacer
The Present Tense of ir (to go)
Both Spanish and English use the present progressive, which consists of the present tense of the verb to be and the present participle (the -ing form in.
SQL Server 2005 ADO.NET Javier Fernández Rodríguez Noviembre 2005, Sevilla Javier Fernández Rodríguez Noviembre 2005, Sevilla.
Carlos Vicente Servicios de Redes Universidad de Oregón
El pretérito The preterite tense is used to talk about actions that occurred in the past. These events occurred and ended at specific times These events.
Programando con Hilos POSIX* Intel Software College.
Programación con OpenMP* Intel Software College. Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or.
Si (If) clauses describe a condition or event upon which another condition or event depends. Sentences with si clauses consist of a si clause and a main.
Servicios De Internet.. Integrantes: Gemma Cedillo Saucedo Delia Alejandra Castillo Almazán Jorge Alberto Arregoytia Garcia Adriana Lara Mata Aleida Villegas.
LUIS GONZALES SÁNCHEZ RESPONSABLE PROCESO DE REGISTRO DE DNI DE ESTUDIANTES UNIDAD DE GESTIÓN EDUCATIVA LOCAL LAMAS UNIDAD EJECUTORA 305.
Base de datos y Microsoft Access
Entrada y salida Fundamentos de programación/Programación I
ERASMO AGUILAR SIG FARQ UNI
Answer the following on my voic ( *Say your name AND block*) in complete sentences: 1. ¿Están tus bisabuelos vivos o muertos? ¿Recuerdas.
ADMINISTRACION DE REDES
Los Días de la Semana Como se dice on un día en español To say on a day (ie: On Monday) in Spanish: 1.Place the definite article before the day. 2.The.
SNMP Simple Network Management Protocol
PL/SQL Francisco Moreno Universidad Nacional. Funciones Si un procedimiento tiene solo un parámetro de salida, se puede remplazar por una función y esta.
Seminario de Lenguajes A – Opción Ada Seminario de Lenguajes A – Opción Ada – Raúl Champredonde1 Packages –Unidad de compilación que permite la especificación.
MORE STRANGE VERBS Spanish IB. Initial Activity---Toman Apuntes Please add these stem-changers to your notes (or red packet) and study them. Poder (o-ue)
Past Progressive. 1. The imperfect endings for estar are: estabaestábamos Estabas Estabaestaban 2. Object pronouns go before the verb or are attached.
Antonio Gámir TSP – Windows Client Microsoft Ibérica.
Bienvenido a Technet Summit Forefront Client Security.
Migración y actualización hacia SharePoint. Ventajas de actualizar hacia Windows Sharepoint Services 3.0 y hacia Office SharePoint Server 2007 Aproximaciones.
Seminario de Lenguajes A – Opción Ada Seminario de Lenguajes A – Opción Ada – Raúl Champredonde1 Overloading de subprogramas procedure Put(Item: in integer;
Seminario de Lenguajes A – Opción Ada Seminario de Lenguajes A – Opción Ada – Raúl Champredonde1 Subprogramas –Encabezamiento –Declaraciones –Cuerpo –Encabezamiento.
Control de versiones usando PowerBuilder y Subversion
Administración de Servidores de Bases de Datos Bases de Datos de Usuarios Caso particular Adaptive Server Enterprise.
THOMSON SCIENTIFIC Updates for April Copyright 2006 Thomson Corporation 2 2 Actualizaciones Actualizaciones a las herramientas Refine y Analyze.
Escribe una lista de expresiones que indican el subjuntivo.
Copyright © 2008 Vista Higher Learning. All rights reserved  In Spanish, as in English, the object of a preposition is the noun or pronoun that.
Ruteo – continuación - Forouzan, capítulo 6.
HACER In Time Expressions.
ECOM-6030 PASOS PARA LA INSTALACIÓN DE EASYPHP Prof. Nelliud D. Torres © - Derechos Reservados.
Cómo asignar IP Address estáticos en un host
Sistemas de monitorización
© 2017 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: EIGRP Tuning and Troubleshooting Scaling Networks.
Redes de Petri Coloreadas
DHCP - Principios básicos de routing y switching.
Equipo Dual – ST8050 Programación Abril / 2014
Transcripción de la presentación:

Gestión de Traps SNMP Carlos Vicente Servicios de Red Universidad de Oregon

Contenido Qué son los traps snmp Herramientas: snmptrapd snmptt Integración con Nagios

Gestión de Traps Los agentes snmp en dispositivos como routers, switches, printers, servidores, etc. pueden enviar alarmas (traps) cuando ocurren ciertos eventos: Se “cae” una interfaz Se estropea el ventilador de un router La carga de procesos excede un límite Se llena una partición de disco Un UPS cambia de estado Es necesario un mecanismo inteligente para notificar al administrador sólo cuando interesa

Gestión de traps Una vez recogidos los traps, es útil hacer dos cosas: Notificar inmediatamente al NOC de ciertos eventos Generar reportes diarios (tipo top-ten)‏

Traps y Syslog Es útil convertir los traps en mensajes Syslog y enviarlos al servidor syslog central Un único sitio donde ir a buscar mensajes Preferiblemente, con una base de datos

snmptrapd + snmptt + Nagios snmptrapd : Daemon incluído en paquete Net-SNMP Simplemente recibe los traps via UDP y los pasa a algún gestionador snmptt = SNMP Trap Translator Se integra con snmptrapd y permite manipular los traps con más flexibilidad Ciertos traps pueden ser capturados por snmptt con reglas de selección y enviados a otro software como Nagios La integración con Nagios resuelve el problema de las notificaciones Re-utilización de: grupos de contacto, períodos, mecanismo de mensajes a beepers, etc.

traps, syslog y Nagios

Configuración snmptrapd /etc/snmp/snmptrapd.conf: # Permitir las comunidades snmp siguientes: authCommunity log,execute public authCommunity log,execute walc # Delegar toda la gestión a snmptt traphandle default /usr/sbin/snmptthandler

Ejecución de snmptrapd Ver: man snmptrapd Opciones que nos interesan: -t : No enviar mensajes syslog (lo haremos con otra herramienta) -On : No traducir OIDs numéricos a nombres En Ubuntu (/etc/default/snmpd): TRAPDOPTS='-t -On -p /var/run/snmptrapd.pid'

configuración snmptt /etc/snmp/snmptt.ini [General] mode = daemon dns_enable = 1 net_snmp_perl_enable = 1 translate_log_trap_oid = 1 translate_value_oids = 1 translate_enterprise_oid_format = 1 translate_trap_oid_format = 1 translate_varname_oid_format = 1 translate_integers = 1 keep_unlogged_traps = 1 [DaemonMode] daemon_fork = 1 daemon_uid = snmptt spool_directory = /var/spool/snmptt/ sleep = 1 use_trap_time = 1 [Logging] stdout_enable = 0 syslog_enable = 1 syslog_level = info syslog_facility = local6 [TrapFiles] snmptt_conf_files = /etc/snmp/snmptt.conf

configuración snmptt /etc/snmp/snmptt.conf OID EVENT mteTriggerFired .1.3.6.1.2.1.88.2.0.1 "Status Events" Normal FORMAT $* # Evitar notificaciones diciendo que el valor es 'null' MATCH $*:!(\(null\)$)‏ EXEC echo $* | mail -s “ALARMA” root@localhost SDESC Notification that the trigger indicated by the object instances has fired, for triggers with mteTriggerType 'boolean' or 'existence'. Variables: 1: mteHotTrigger 2: mteHotTargetName 3: mteHotContextName 4: mteHotOID 5: mteHotValue EDESC Expresión Regular Acción

snmpttconvertmib Utilitario para automatizar la creación de configuraciones snmptt a partir de un archivo MIB Ahorra mucho tiempo Requisito: El directorio donde está la MIB debe estar incluido en la lista mibdirs del archivo /etc/snmp/snmp.conf

snmpttconvertmib Ejemplo: snmpttconvertmib --in /usr/local/netdisco/mibs/cisco/CISCO-ERR-DISABLE-MIB.my --out /etc/snmp/snmptt.conf.cisco.errdisable # MIB: CISCO-ERR-DISABLE-MIB (file:/usr/local/netdisco/mibs/cisco/CISCO-ERR-DISABLE-MIB.my) converted on Tue Oct 28 18:10:05 2008 using snmpttconvertmib v1.2 EVENT cErrDisableInterfaceEvent .1.3.6.1.4.1.9.9.548.0.1.1 "Status Events" Normal FORMAT The cErrDisableInterfaceEvent is generated when an interface $* SDESC The cErrDisableInterfaceEvent is generated when an interface or {interface, vlan} is error-disabled by the feature specified in cErrDisableIfStatusCause. Variables: 1: cErrDisableIfStatusCause EDESC

Snmpttconvertmib Luego de generar el archivo, hay que incluirlo en la lista: En snmptt.ini: [TrapFiles] snmptt_conf_files = <<END /etc/snmp/snmptt.conf /etc/snmp/snmptt.conf.cisco.errdisable END

Ejecución de snmptt /etc/init.d/snmptrapd start Nota: En Ubuntu: TRAPDRUN=yes usar /etc/init.d/snmpd start /etc/init.d/snmptt start

Ejercicio Configurar snmptt para enviar traps cuando las interfaces “se caen”. Usar snmpttconvertmib y la “IF-MIB” Usar el comando mail para enviar la alarma a root@localhost Comprobar enviando traps desde el enrutador En Cisco, configurar así: snmp-server enable traps snmp linkdown linkup snmp-server trap link ietf snmp-server host 192.168.0.10 version 2c public

Integración con Nagios EVENT mteTriggerFired .1.3.6.1.2.1.88.2.0.1 "Status Events" Normal FORMAT $* EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP 2 "$*" define service{ name generic-trap active_checks_enabled 0 service_description TRAP is_volatile 1 check_command check-host-alive; max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 passive_checks_enabled 1 check_period none notification_interval 31536000 notification_period 24x7 notification_options c notifications_enabled 1 flap_detection_enabled 0 contact_groups nobody register 0 }

Integración con Nagios define service{ name generic-trap active_checks_enabled 0 service_description TRAP is_volatile 1 check_command check-host-alive; max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 passive_checks_enabled 1 check_period 24x7 notification_interval 31536000 notification_period 24x7 notification_options c notifications_enabled 1 flap_detection_enabled 0 check_freshness 1 freshness_threshold 86400 contact_groups nobody register 0 } use generic-trap host_name router1 contact_groups grupo-routers

Consideraciones de Seguridad Restringir el tráfico de traps en el servidor central Sólo permitir que sus equipos envíen logs Por ejemplo, usar iptables: # iptables -A INPUT -s 192.168.1.0/24 -p udp --dport 162 -j ACCEPT # iptables -A INPUT -s 0/0 -p udp --dport 162 -j REJECT

Referencias http://www.net-snmp.org http://www.snmptt.org