Monitoreo de redes Mikrotik
Monitoreo de redes Mikrotik
con SNMP
con SNMP
Freddy Bohorquez Quevedo
Este material se distribuye bajo licencia de Creative Commons Attribution-Noncommercial 3.0
(http://creativecommons.org/licenses/by-nc/3.0/)
Sobre TecTel Bolivia
• Orígenes en Redes Inalámbricas Comunitarias
• 2004. Conectividad Rural e ISP Comunitarios
• Primeras Instalaciones basadas en WRAP
• Despliegue de Redes PtP y PtMP
• 2005. Encuentro con Mikrotik RB y ROS
• 2009. Inicio de Tectel como empresa
especializada en Tecnología y
Telecomunicaciones
• 2010. Distribuidor oficial de Mikrotik
• 2014 se crea DISTRATEL, incorporando
soluciones en control y automatización.
Contenido
• Qué es SNMP?
• Cómo funciona SNMP?
• OIDs y MIBs
• Polling, querying and Traps
• SNMP en Mikrotik
• Caso de Uso en Cacti
Qué es SNMP?
SNMP – Simple Network Management Protocol
– Estándar abierto — existen cientos de herramientas
para explotarla.
– Presente en cualquier equipo de red mínimamente
decente.
SNMP usa la arquitectura manager/agent.
Qué es SNMP?
Protocolo UDP, port 161, 162
Versiones:
– V1 (1988) – RFC1155, RFC1156, RFC1157
• Especificaciones Iniciales originales
– v2 – RFC1901 ... RFC1908 + RFC2578
• Mejoras a v1, tipos de datos nuevos, GETBULK
– v3 – RFC3411 ... RFC3418
• seguridad y encriptación
Cómo funciona SNMP?
Comandos básicos o primitivas
– GET (manager -> agent)
– GET-NEXT (manager -> agent)
– GET-RESPONSE (agent -> manager)
– SET (manager -> agent)
– TRAP (agent -> manager)
MIB: Base de Información de Administración
• MIB, colección de información que está
organizada jerárquicamente, incluye:
– Identificador del Objeto (OID)
– Nombre del Objecto
– Descripción del Objecto
– Tipo de Dato (integer, text, list)
• MIB se describe usando ASN.1
• MIB estandar incluye:
– MIB-II – (RFC1213) – a group of sub-MIBs
– HOST-RESOURCES-MIB (RFC2790)
MIB Tree
ccitt(0)
root
iso(1)
org(3)
dod(6)
internet(1)
joint-iso-ccitt(3)
1.3.6.1
ciscoMgmt(9)
ciscoEnvMonMIB(13)
ciscoEnvMonObjects(1)
directory(1) mgmt(2)
experimental(3)
private(4)
ciscoEnvMonTemperatureStatusTable(3)
mib-2(1)
enterprises(1)
ciscoEnvMonTemperatureStatusEntry(1)
system(1)
snmp(11)
cisco(9)
interfaces(2)
ip(4)
ciscoEnvMonTemperatureStatusValue(3)
...
Obtención de Información
ESTACIÓÓN N
ESTACI
ADMINISTRADORA
ADMINISTRADORA
NODO
NODO
ADMINISTRADO
ADMINISTRADO
MIBMIB
UDP 161
UDP 161
??
UDP 161
UDP 161
AGENTE
AGENTE
Consulta/Solicitud de variable:
GET REQUEST
GET REQUEST
GET NEXT REQUEST
GET NEXT REQUEST
GET BULK (SNMP v.2)
GET BULK (SNMP v.2)
Respuesta a solicitud:
GET RESPONSE
GET RESPONSE
??
Modificación de Información
ESTACIÓÓN N
ESTACI
ADMINISTRADORA
ADMINISTRADORA
UDP 161
UDP 161
NODO
NODO
ADMINISTRADO
ADMINISTRADO
UDP 161
UDP 161
!!
AGENTE
AGENTE
Modificación de valor de variable:
SET REQUEST
SET REQUEST
SET NEXT REQUEST
SET NEXT REQUEST
Respuesta a solicitud:
GET RESPONSE
GET RESPONSE
!!
EJEMPLO: Se puede usar para resetear el valor de los
EJEMPLO
contadores, como el número de paquetes procesados.
Traps - Interrupciones
ESTACIÓÓN N
ESTACI
ADMINISTRADORA
ADMINISTRADORA
UDP 162
UDP 162
NODO
NODO
ADMINISTRADO
ADMINISTRADO
MIBMIB
AGENTE
AGENTE
Un Agente informa de un evento:
TRAP
TRAP
EJEMPLO: El Agente de un router
EJEMPLO
informa de que un enlace ha caído.
• Essential SNMP (O’Reilly Books) Douglas Mauro, Kevin Schmi
• Wikipedia:
http://es.wikipedia.org/wiki/Simple_Network_Management_Protocol
• SNMP: http://informatica.uv.es/iiguia/R/apuntes/snmp.ppt. Rogelio
Montañana, Universidad de Valencia, Departamento de Informática
• SNMP Link – collection of SNMP resources
http://www.snmplink.org/
• Net-SNMP Open Source SNMP tools
http://net-snmp.sourceforge.net/
• Cacti and Mikrotik - How to graph signal strength without hassle: Cacti and
Mikrotik - How to graph signal strength without hassle
Comentarios de: Network Management & Monitoring (0)
No hay comentarios