Home

Manual de instalación de CACTI y SNMP

image

Contents

1. 4 CONFIGURACION DE CACTI ni 8 ADMINISTRACION DE PLATAFORMA 10 CONFIGURACION DEL SNMP PARA MONITOREO REMOTO 11 CONFIGURACION DE COMUNIDAD Y TIPO DE ACCESO 12 MONITOREO e R is Esas 13 ESTATUS ACTUAL DEL SISTEMA CACTI JJ 15 MODULO 1 INTRODUCCI N Cacti es una completa soluci n para la generaci n de gr ficos en red dise ada para aprovechar el poder de almacenamiento y la funcionalidad para gr ficas que poseen las aplicaciones RRDtool Esta herramienta desarrollada en PHP provee un pooler gil plantillas de gr ficos avanzadas m ltiples m todos para la recopilaci n de datos y manejo de usuarios Tiene una interfaz de usuario f cil de usar que resulta conveniente para instalaciones del tama o de una LAN as como tambi n para redes complejas con cientos de dispositivos Qu es una RRDtool RRDtool es el acr nimo de Round Robin Database tool o sea que se trata de una herramienta que trabaja con una BD que maneja Planificaci n Round robin Esta t cnica trabaja con una cantidad fija de datos y un puntero al elemento actual El modo en que trabaja una base de datos utilizando Round Robin es el siguiente se trata la BD como si fuera un c rculo sobrescribiendo los datos almac
2. i Bomu ad Farr p Han NUNT E uum DE P Hill REO AEA B Bud m rm A A dd i Hani HEAD AA ERE DAA um seca D RKE aimi Cara m Oh uma s m umma binis aea ss domom i Party Deo Parras Pdo bkrragt om uma a Ya Ml TU Lu E ENTERA BEST E RE A m um as Kari E ada a im d p E mam AE PRE H ES ESEFFF EE Ei ES ER mim domom cam mob mom mme KU ER s u mm mna ti Busk Hoang i kia Fd K ENE m umm EL hei Ps Li i i BIL E LESS F m T er Fri Li TN m 9 tat Late cy cn EO VIO TM Log Da Ll im Ur dics ge eU greg c c dates gt Bi asari Puce LA A 4 c3 04 E Tram ep ST E a Carnet DA a OLET a Own LG cm A Br dro scan Dore s mz s E NDICE CACTI INTRODUCCI N o 3 INSTALACION DE CACTI Y PAQUETERIAS
3. cacti Mozilla Firefox File Edit View History Bookmarks Tools Help E bo v BY Google Most Visited Getting Started Latest Headlines Server Fortinet Firmwar gt cacti np v Cacti Installation Guide Make sure all of these values are correct before continuing FOUND RRDTool Binary Path The path to the rrdtool binary Jusr bin rrdtool OK FILE FOUND FOUND PHP Binary Path The path to your PHP binary file may require a php recompile to get this file Jusr bin php OK FILE FOUND FOUND snmpwalk Binary Path The path to your snmpwalk binary JJusr bin snmpwalk OK FILE FOUND FOUND snmpget Binary Path The path to your snmpget binary Jusr bin snmpget OK FILE FOUND FOUND snmpbulkwalk Binary Path The path to your snmpbulkwalk binary JJusr bin snmpbulkwalk OK FILE FOUND FOUND snmpgetnext Binary Path The path to your snmpgetnext binary Jusr bin snmpgetnext OK FILE FOUND FOUND Cacti Log File Path The path to your Cacti log file r log cacti cacti log OK FILE FOUND SNMP Utility Version The type of SNMP you have installed Required if you are using SNMP v2c or don t have embedded SNMP support in PHP NET SNMP 5 x RRDTool Utility Version The version of RRDTool that you have installed RRDTool 1 3 x NOTE Once you click Finish all of your settings will be saved and your database will
4. Coordinaci n General Secretar a MORELOS de Gobierno Digital IORELOS de Hacienda Secretar a lt de Innovacion Secretaria MORELOS ini i MORELOS Ciencia y Tecnolog a PODER EJECUTIVO de Administraci n 22 y MANUAL TECNICO DE INSTALACI N CACTI LEN Eb pa Yes o pois w der L a caca pao dla id 1D a lt gt j pa Y Pi F ty B Erem n EL E SET TE c uar5s a mmm Ie I pn Caria Doi VAS Done ceps ama a _ 1 homi n mln a Pert 171 MORADA A E Ca as TX rr F 3 za cR n2 RAO Sg 1 E k li TIT E W ai LI CA CO SEED _ _ Le rm 0 l ini nd E mai waman wamamama Hand miiia PADO UXDG iZ EEEE p an pend F E LH r RA araq AAT Mirian ruar K B derar R A IT T Fu W Ku md um m DAS EA uar VRBE Z i x wiwata m W Deren HE premo ri We F S LS LIE um
5. a O a uy 2 a 10 0 2 6 cacti graph php action view amp local_graph_id 38 amp rra_id all MODULO 5 CONFIGURACION DEL SNMP PARA EL MONITOREO DE HOST REMOTOS CONFIGURACION DEL SNMP PARA EL MONITOREO DE HOST REMOTOS Una vez instalado y configurado el cacti es momento de a adir m s hosts o devices para monitorear PASO 1 INSTALAR EL DEMONIO SNMPD EN EL HOST REMOTO 1 apt get install snmpd PASO 2 CONFIGURAR EL ACCESO HEMOTO DEL MONITOR AL HOST REMOTO Para que el host donde est instalado el cacti sea capaz de acceder v a snmp al demonio del host remoto tenemos que editar el fichero view plaincopy to clipboardprint 1 nano w etc default snmpd Y asegurarnos de que las siguientes opciones queden as view plaincopy to clipboardprint 1 SNMPDRUN yes 2 SNMPDOPTS Lsd Lf dev null u snmp I smux p var run snmpd pid 11 El contenido del fichero completo quedar a This file controls the activity of snmpd and snmptrapd i MIB directories usr share snmp mibs is the default but i including it here avoids some strange problems export MIBDIRS usr share snmp mibs i snmpd control yes means start daemon SNMPDRUN yes i snmpd options use syslog close stdin out err SNMPDOPTS Lsd Lf dev null u snmp I smux p var run snmpd pid 9 snmptrapd control yes means start daemon As of net snmp version 10 5 0 master agentx support must be enabled in snmpd b
6. be upgraded if this is an upgrade You can change any of the settings on this screen at a later time by going to Cacti Settings from within Cacti Luego de dar Finish nos mostrar una ventana de login a la administraci n del servidor cacti Donde ser necesario poner unas credenciales por defecto la cual seguidamente nos obligar a cambiar por un password diferente Login to Cacti Mozilla Firefox File Edit View History Bookmarks Tools Help lt v E A http localhost cacti index php 9 8 Google Most Visitedv e Getting Started Latest Headlines Mail Serverv Fortinet Firmwar Y 9 Login to Cacti E User Login Please enter your Cacti user name and password below User Name Password Login MODULO 4 ADMINISTRACION DE PLATAFORMA Men consol En este men nosotros podremos entrar a ver los graficos plugins dispositivos que estamos monitoreando Console Mozilla Firefox ER o d S File Edit View History Bookmarks Tools Help bh ru 19 Console L pe q 10 0 26 cacti index php Cii B Google 2 Most Visited Getting Started Galer a de Web Slice J Sitios sugeridos Console Logged in as admin Logout gt z gt tic co o e dl You are now logged into Cacti You can follow these basic steps to get started Version 0 8 71 pi e Create devices for network Management e Create graph
7. manually or if your database has already been installed and configured you should refuse this option Details on what needs to be done should most likely be provided in usr share doc cacti Otherwise you should probably choose this option Configure database for cacti with dbconfig common Aqu se nos solicitar el password de acceso al servidor de Mysql debemos escribir el password que le declaramos en la instalaci n del MySQL Server rootialynx File Edit View Terminal Tabs Help Configuring cacti Please provide the password for the administrative account with which this package should create its MySQL database and user Password of the database s administrative user A Ok Podemos tambien poner un password diferente para el usuario y base de datos de phpmyadmin en nuestro caso y por efectos de laboratorio utilizaremos el mismo del root se recomienda usar password diferentes para los usuarios que creemos para los accesos a la base de datos de MySQL E roty ES File Edit View Terminal Tabs Help root lynx rootOnsl x Package configuration Please provide a password for cacti to register with the database server If left blank a random password will be generated MySQL application password for cacti lt Cancel gt Repetimos el password puesto en el prompt anterior a rootalynx mC sb yKsxs 3 NES File Edit View Terminal Tabs Help root lynx 3 rootOnsl x P
8. DISMAN EVENT MIB sysUpTimeInstance Timeticks 1446404 4 begin_of_the_skype_highlighting 1446404 4 end of the skype highlighting 01 04 04 SNMPv2 MIB sysContact 0 STRING Root configure etc snmp snmpd local conf SNMPv2 MIB sysName O0 STRING virt129 SNMPv2 MIB sysLocation O STRING Unknown configure etc snmp snmpd local conf SNMPv2 MIB sysORLastChange O Timeticks 0 0 00 00 00 SNMPv2 MIB SysORID 1 OID SNMP FRAMEWORK MIB snmpFrameworkMIBCompliance SNMPv2 MIB SysORID 2 OID SNMP MPD MIB snmpMPDCompliance SNMPv2 MIB SysORID 3 OID SNMP USER BASED SM MIB usmMIBCompliance SNMPv2 MIB sysORID 4 OID SNMPv2 MIB snmpMIB SNMPv2 MIB sysORID 5 TCP MIB tcpMIB SNMPv2 MIB SysORID 6 OID IP MIB ip SNMPv2 MIB SysORID 7 OID UDP MIB udpMIB SNMPv2 MIB SysORID 8 OID SNMP VIEW BASED ACM MIB vacmBasicGroup SNMPv2 MIB sysORDescr 1 STRING The SNMP Management Architecture MIB SNMPv2 MIB sysORDescr 2 SNMPv2 MIB sysORDescr 3 STRING The management information definitions for the SNMP User based Security Model SNMPv2 MIB sysORDescr 4 STRING The MIB module for SNMPv2 entities SNMPv2 MIB sysORDescr 5 STRING The MIB module for managing TCP implementations SNMPv2 MIB sysORDescr 6 ions SNMPv2 MIB sysORDescr 7 STRING The MIB module for managing UDP implementations SNMPv2 MIB sysORDescr 8 STRING View based Access Control Model for SNMP STRING
9. The MIB for Message Processing and Dispatching STRING The MIB module for managing IP and ICMP implementat SNMPv2 MIB sysORUpTime 1 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 2 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 3 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 4 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 5 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 6 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 7 Timeticks 0 0 00 00 00 SNMPv2 MIB sysORUpTime 8 Timeticks 0 0 00 00 00 MODULO 7 MONITOREO Este es un ejemplo de un equipo e cual estamos monitoreando en DGSTIC es un switch hp procurve ubicado en la localidad de jojutla Morelos 13 Monitoreo de uso de CPU Graphs gt Tree Mode Mozilla Firefox File Edit View History Bookmarks Tools Help mo o Graphs gt Tree Mode a amp 10 0 2 6 cacti graph view php action tree amp tree id 1 amp leaf id 14 C g Google P amp Most Visited Getting Started Galer a de Web Slice Sitios sugeridos console Graphs gt Tree Mode Logged in as admin Logout m l Default Tree Graph Filters Host Servidor Cacti Presets Custom y From 2013 04 30 15 04 a To 2013 05 01 15 04 F4 1Day Refresh Clear Search Graphs per Page 10 Thumbnails Previous Showing Graphs 1 to 10 of 30 1 2 3 Tree Default Tree gt Host Jojutla Switch Joj
10. ackage configuration Password confirmation lt Cancel gt Indicamos con qu tipo de servidor web trabajar el servicio de Cacti que para este caso ser con apache2 A E File Edit View Terminal Tabs Help rootiilynx 3 root ns1 3 Package configuration which kind of web server should be used by cacti Select None if you would like to configure your webserver by hand Webserver type Apache Apache SSL E IN ALL None lt Cancel gt MODULO 3 CONFIGURACION DE CACTI Ahora nos toca configurar el servidor de Cacti para lo cual ser necesario accesar servidor atraves de un navegador de la siguiente manera http ip del servidor cacti Donde nos aparecer un Wizar para la primera instalaci n Click en Next cacti Mozilla Firefox File Edit History Bookmarks Tools Help lt Q E ES Es http localhost cacti install gt Google em Most visited Getting Started 55 Latest Headlines Mail Server Fortinet Firmwar Y S En v Cacti Installation Guide Thanks for taking the time to download and install cacti the complete graphing solution for your network Before you can start making cool graphs there are a few pieces of data that cacti needs to know Make sure you have read and followed the required steps needed to install cacti before continuing Install information can be found for Unix and W in 32 based operating system
11. ad de manejo de usuarios embebida para as hacer posible agregar un usuario y darle permisos a ciertas reas de Cacti Esto permite tener usuarios que puedan cambiar par metros de un gr fico mientras que otros s lo pueden ver los gr ficos Asimismo cada usuario mantiene su propia configuraci n de vista de gr ficos MODULO 2 INSTALACI N DE CACTI Y SUS PAQUETERIAS Este manual describe la instalaci n y configuraci n de Cacti en un sistema Linux Ubuntu server 12 04 Paso 1 Entramos en modo root su e sudo su root Paso 2 Actualizaci n del sistema base e apt get update Paso 3 Instalamos Apache 2 PHP versi n 5 y MySQL 1 apt get install apache2 administradorservidor B Hle Edit View Search Terminal Help administrador servidor sudo apt get install apache2 sudo password for administrador Bj 2 apt get install mysql server mysql common administrador Oservidor File Edit View Search Terminal Help administradoreservidor sudo install mysql server mysql common sudo password for administrador 3 apt get install php5 php5 mysal php5 gd rootOservidor File Edit View Search Terminal Help root 6servidor sudo apt get install php5 php5 mysql php5 gd Paso 4 Reiniciamos servicio apache 3 etc init d apache2 restart rootf servidor laz na File Edit View Search Terminal Help root servidor sudo etc init d apache2 start Starting web server apa
12. che2 apache2 Could not reliably determine the server s fully qualified domain name using 127 0 1 1 for ServerName httpd pid 2057 already running OK root servidor Paso 5 Instalamos las rrdtool y el snmp 4 apt get install rrdtool snmp Paso 6 Instalaci n de las librer as necesarias para jpeg png y gd2 5 apt get install libipeg62 libjpeg62 dev libpng12 0 libpng12 dev libgd2 xpm dev Paso 7 Reiniciamos Apache 1 etc init d apache2 restart Paso 8 Instalamos Cacti 1 apt get install cacti cacti spine En este paso se nos pedir Una vez ejecutado el comando anterior el prompt de instalaci n nos mostrar el siguiente Wizard Seleccionamos OK y damos Enter rootolynx File Edit View Terminal Tabs Help root lynx Configuring libphp adodb WARNING include path for php has changed libphp adodb is no longer installed in usr share adodb New installation path is now usr share php adodb Please update your php ini file Maybe you must also change you web server configuraton Le indicamos que si deseamos instalar la base de Cacti a trav s del prompt root lynx File Edit View Terminal Tabs Help root lynx Configuring cacti The cacti package must have a database installed and configured before it can be used This can be optionally handled with dbconfig common gt If you an advanced database administrator and know that you want to perform this configuration
13. efore snmptrapd 11 can be run See snmpd conf 5 for how to do this 12 TRAPDRUN no 13 snmptrapd options use syslog 14 TRAPDOPTS Lsd p var run snmptrapd pid 15 create symlink on Debian legacy location to official RFC path 16 SNMPDCOMPAT yes oOo N NN U1 gt UNA MODULO 6 CONFIGURACION DE COMUNIDAD Y TIPO DE ACCESO PASO 3 CONFIGURAR LA COMUNIDAD Y EL TIPO DE ACCESO En el host remoto editamos el fichero de configuraci n del snmpd 1 nano w etc snmpd snmpd conf Comentamos todas las lineas que comienzan por com2sec Y a adimos la siguiente linea 1 com2sec readonly default public En la cual le estamos diciendo que el acceso sea de s lo lectura y que la comunidad se llama public PASO 4 REINICIAMOS SNMPD EN EL HOST REMOTO 1 etc init d snmpd restart Una vez completados estos 4 pasos desde el host de monitoreo donde hemos instalado el cacto podemos probar el acceso remoto con la siguiente linea 1 snmpwalk v 2c c public 94 23 85 84 O bien con la siguiente linea que dar un resultado mas corto 1 snmpwalk v 2c c public 94 23 85 84 system 12 El cual debe ser algo parecido a esto 10 11 12 15 14 15 16 17 18 19 20 21 22 235 24 25 26 27 28 29 30 31 SNMPv2 MIB sysDescr O STRING Linux virt129 2 6 32 3 pve 1 SMP Fri Sep 3 12 48 27 CEST 2010 i686 SNMPv2 MIB sysObjectID O NET SNMP MIB netSnmpAgentOIDs 10
14. enados una vez alcanzada la capacidad de la BD La capacidad de la BD depende de la cantidad de informaci n como historial que se quiera conservar Qu puedo hacer con esta herramienta Puedo a trav s de Cacti representar gr ficamente los datos almacenados en la RRD uso de conexi n a internet datos como temperatura velocidad voltaje n mero de impresiones etc La RRD va a ser utilizada para almacenar y procesar datos recolectados v a SNMP En definitiva para hacer uso de una RRDtool lo que se necesita es un sensor para medir los datos y poder alimentar al RRDtool con esos datos Entonces la RRDtool crea una base de datos almacena los datos en ella recupera estos datos y bas ndose en ellos Cacti crea gr ficos en formato PNG Gr ficos Una vez que una o m s fuentes de datos son definidas una gr fica de RRDtool puede ser creada usando los datos obtenidos Cacti permite crear pr cticamente cualquier gr fica utilizando todos los est ndares de tipos de gr ficas de RRDtool y funciones de consolidaci n No s lo se puede crear gr ficos basados en la RRDtool sino que tambi n hay varias formas de mostrarlas Junto con una lista de vistas est ndar y una vista preliminar tambi n existe una vista en rbol la cual permite colocar gr ficos un rbol jer rquico para prop sitos organizacionales Manejo de usuarios Dadas las muchas funciones que ofrece Cacti la herramienta cuenta con la funcionalid
15. ro servidor se encuentre funcionando en el navegador tecleamos la direcci n ip la cual le asignamos a nuestro servidor cacti Mn irefox En lit View hp ry Bookmark Help ttp 10 0 2 6 im M _ E E lal Most Visited Getting Started Galer a de Web Slice Sitios sugeridos It works This is the default web page for this server The web server software is running but no content has been added yet Posteriormente entramos a cacti tecleando http 10 0 2 6 cacti recordando que la direcci n 10 0 2 6 es la direcci n de nuestro servidor as que remplazar amos esta direcci n por la ip que le asignamos dependiendo el caso Login to Cacti Mozilla Firefox File Edit View History Bookmarks Tools Help m gt lt Login to Cacti inm amp 10 0 2 6 cacti e Google PIE A 2 Most Visited Getting Started Galer a de Web Slice Sitios sugeridos E E a User Login Please enter your Cacti user name and password below User Name Password Login La contrase a por default para entrar a cacti es usuario admin password admin 15
16. s Also if this is an upgrade be sure to reading the Upgrade information file Cacti is licensed under the GNU General Public License you must agree to its provisions before continuing This program is free software you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software Foundations either version Z of the License or at your option any later version This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty otf MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the NU General Public License for more details Next gt gt Seleccionamos New Install cacti Mozilla Firefox File Edit View History Bookmarks Tools Help lt MV E x AN http localhostjcacti install index php Most Visited Getting Started Latest Headlines Mail Servers Fortinet Firmiwar Y EG ng m UE LEN Cacti Installation Guide Please select the type of installation New Install The following information has been determined from Cacti s configuration file If it is not correct please edit include config php before continuing Database User cacti Database Hostname Databaser cacti Server Operating System Type unix Si todos las rutas nos aparecen en con un mensaje de OK FILE FOUND podemos entonces dar por finalizada la instalaci n dando click en Finish
17. s for your new devices Graph Management __ e View your new graphs Data Sources Devices Collection Methods Data Queries Data Input Methods I i Graph Templates Host Templates Data Templates Import Export Import Templates Export Tem plates Settings System Utilities User Management Logout User 4 10 Men graphs En este men podemos ver las gr ficas del host u switch que estemos monitoreando esta parte de graphs nos da los datos como lo son trafico uso del CPU entre otros Graphs gt Tree Mode Mozilla Firefox File Edit View History Bookmarks Tools Help m ll Graphs gt Tree Mode p lt Y 10 0 2 6 cacti graph view php action tree amp tree id 1 amp leaf id 8 amp select first true C l PLY A Most Visited Getting Started Galer a de Web Slice g Sitios sugeridos ASS console graphs Graphs gt Tree Mode Default Tree Graph Filters Host Servidor Cacti Presets Last Day y From 2013 09 30 14 57 9 2013 10 01 14 57 T 1Day X Refresh Clear Host Jojutla Switch SE Grano paraa 10 aedis Showing All Graphs Tree Default Tree gt Host Servidor Cacti Servidor Cacti Logged in Users a O a 18 00 Tue 00 00 Tue 06 00 Tue 12 00 From 2013 09 30 14 57 26 To 2013 10 01 14 57 26 Ml Users Curren E 2 Average 2 Maximum 2 Servidor Cacti Processes
18. utla Switch CPU Usage 6 0 O 5 0 a 40 v 3 0 v 220 2 0 1 0 0 0 Tue 18 00 Wed 00 00 Wed 06 00 Wed 12 00 From 2013 04 30 15 04 00 To 2013 05 01 15 04 00 E CPU Usage Current 6 Average 5 Maximum 6 Jojutla Switch MAC Count A 12 10 8 6 4 2 7 Monitoreo de trafico Graphs gt Tree Mode Mozilla Firefox File Edit View History Bookmarks Tools Help a am Graphs gt Tree Mode Cr lt 10 0 2 6 cacti graph view php action tree amp tree id 1 amp leaf id 14 amp page 2 C H Google P Most Visited Getting Started Galer a de Web Slice Sitios sugeridos B Inbound Current 0 00 Average 0 00 Maximum 0 00 ll Outbound Current 0 00 Average 0 00 Maximum 0 00 Jojutla Switch Traffic 45 A 600 O 500 0 400 300 a 200 E 100 0 Tue 18 00 Wed 00 00 Wed 06 00 Wed 12 00 From 2013 04 30 15 04 00 To 2013 05 01 15 04 00 B Inbound Current 416 45 Average 418 76 Maximum 618 72 ll Outbound Current 272 79 Average 277 86 Maximum 490 64 Jojutla Switch Traffic 46 80 O 70 Y y 60 50 40 2 go 5 20 2 10 0 Tue 18 00 Wed 00 00 Wed 06 00 Wed 12 00 From 2013 04 30 15 04 00 To 2013 05 01 15 04 00 B Inbound Current 29 83 Average 28 22 Maximum 32 38 ll Outbound Current 79 88 Average 78 25 Maximum 82 43 Jojutla Switch Traffic 47 a 40 u 14 m MODULO 8 ESTATUS ACTUAL DEL SISTEMA CACTI Para verificar que nuest

Download Pdf Manuals

image

Related Search

Related Contents

AKAIMS - Behavioral Health Compliance Solutions, LLC  RAS50YHA User manual  Pioneer HTZ777DVD Home Theater System User Manual  Desa CGN18B User's Manual  Ditec CS12E - DITEC ENTREMATIC  Kontron User's Guide  Midi-Pyrénées - Ministère du travail, de l`emploi et de la formation    SoftTime Diamond Edition User Manual  Samsung AQV09MSAN manual de utilizador  

Copyright © All rights reserved.
Failed to retrieve file