meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previa | |||
| seguridad:monitorizacion:cacti [262013/12/ 23:47] – Page moved from aplicaciones:cacti to seguridad:monitorizacion:cacti lc | seguridad:monitorizacion:cacti [182023/01/ 13:37] (actual) – editor externo 127.0.0.1 | ||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| + | {{tag> cacti}} | ||
| + | ====== Cacti 0.8.7d ====== | ||
| + | |||
| + | ===== Requisitos ===== | ||
| + | |||
| + | Debemos instalar los repositos de RPMForge, para instalarlo de una manera mas facil: desde binario. | ||
| + | |||
| + | <code bash> | ||
| + | wget http:// | ||
| + | rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm | ||
| + | </ | ||
| + | |||
| + | Tambien instalamos mysql-server y las fuentes, ya que al no haber instalado Cent OS con entorno grafico no estan instaladas. Cacti las utiliza para mostrar los graficos. | ||
| + | |||
| + | <code bash> | ||
| + | yum install mysql-server xorg-x11-fonts-Type1 | ||
| + | </ | ||
| + | |||
| + | ===== Instalacion de cacti ===== | ||
| + | |||
| + | Para instalar cacti solo tendremos que hacer una llamada a yum. Este se descargara todas las librerias necesarias, servidor apache, php, rrdtool, snmpd, etc. | ||
| + | |||
| + | <code bash> | ||
| + | yum install cacti net-snmp-utils | ||
| + | </ | ||
| + | |||
| + | ==== Sin RPMForge ==== | ||
| + | |||
| + | Si por casualidad no funciona el reposito RPMForge y tenemos que instalarlo a mano, los paquetes necesarios son: | ||
| + | httpd, snmpd, net-snmp net-snmp-utils, | ||
| + | |||
| + | ===== Configuracion ===== | ||
| + | |||
| + | ==== MySQL ==== | ||
| + | |||
| + | Una vez instalado todo esto, iniciamos los servicios, le ponemos contraseña al root, creamos un usuario para cacti e importamos la base de datos que se encuentra en el directorio de instalacion de cacti. | ||
| + | |||
| + | <code bash> | ||
| + | service mysqld start | ||
| + | service httpd start | ||
| + | service snmpd start | ||
| + | |||
| + | mysqladmin -u root password 1qaz2wsx | ||
| + | |||
| + | mysql -u root -p | ||
| + | mysql> GRANT USAGE ON *.* TO ' | ||
| + | mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, LOCK TABLES, ALTER ON cacti.* TO ' | ||
| + | mysql> flush privileges; | ||
| + | mysql> exit | ||
| + | |||
| + | mysql cacti -u cacti -p < / | ||
| + | </ | ||
| + | |||
| + | ==== Config.php ==== | ||
| + | |||
| + | Editamos el archivo config.php del directorio /include dentro de cacti. Le ponemos lo que corresponda con nuestro servidor de mysql. | ||
| + | |||
| + | <code bash> | ||
| + | vim / | ||
| + | |||
| + | $database_default = " | ||
| + | $database_hostname = " | ||
| + | $database_username = " | ||
| + | $database_password = " | ||
| + | </ | ||
| + | |||
| + | ==== Apache ==== | ||
| + | |||
| + | Por defecto solo el servidor tiene acceso a la pagina de cacti http:// | ||
| + | |||
| + | <code bash> | ||
| + | vim etc/ | ||
| + | |||
| + | Alias /cacti/ / | ||
| + | < | ||
| + | DirectoryIndex index.php | ||
| + | Options -Indexes | ||
| + | AllowOverride all | ||
| + | order deny,allow | ||
| + | deny from all | ||
| + | allow from 192.168.1.0/ | ||
| + | AddType application/ | ||
| + | php_flag magic_quotes_gpc on | ||
| + | php_flag track_vars on | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Cacti ==== | ||
| + | |||
| + | Ahora solo tenemos que ir a http:// | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | ===== Ejemplos monitorización ===== | ||
| + | Start in the Console by clicking Data Templates in the Templates section. Click Add in the top right corner and enter the values from the following screenshot. Then click Save. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Afterwards create two more Data Templates based on the next two screenshots. | ||
| + | |||
| + | |||
| + | |||
| + | The Data Templates tell Cacti which values (OIDs) to monitor. | ||
| + | |||
| + | Next, go to Graph Templates in the Templates section. As before click Add in the top right corner and define the following two Graph Templates: Fortigate – System Resources and Fortigate – Total Sessions. The System Resources graph will monitor CPU and memory utilization in one combined graph. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Next create a Host Template as per the screenshot below. | ||
| + | |||
| + | |||
| + | |||
| + | Now you are ready to start monitoring firewalls. Under Management go to Devices and click Add. Define a new device. Sample values are in the screenshot. | ||
| + | |||
| + | That’s it. Graphs will start to update after Cacti’s next polling cycle. | ||
| + | |||
| + | === Monitorizar Fortigate === | ||
| + | http:// | ||
| + | |||
| + | === Monitorizar máquina Aire=== | ||
| + | http:// | ||
| + | |||
| + | ===== Links ===== | ||
| + | - http:// | ||
| + | - http:// | ||
| + | - http:// | ||
| + | - https:// | ||
| + | - http:// | ||
| + | - http:// | ||
| + | - http:// | ||
| + | - http:// | ||
| + | - https:// | ||
| + | - http:// | ||
| + | - http:// | ||
| + | - http:// | ||