informatica:linux:nagios
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:nagios [2011/01/18 20:12] – 127.0.0.1 | informatica:linux:nagios [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
nagios nagios3 monitorizacion smp http | nagios nagios3 monitorizacion smp http | ||
+ | |||
Line 7: | Line 8: | ||
====== Nagios ====== | ====== Nagios ====== | ||
- | nagios monitorizacion nagios3 | + | nagios monitorizacion nagios3 |
+ | |||
+ | http:// | ||
Es una herramienta de monitorización tanto de recursos privados | Es una herramienta de monitorización tanto de recursos privados | ||
Line 528: | Line 531: | ||
PROCS CRITICAL: 0 processes with command name noexiste | PROCS CRITICAL: 0 processes with command name noexiste | ||
+ | |||
===== Ejemplo: comprobar si una partición está llena ===== | ===== Ejemplo: comprobar si una partición está llena ===== | ||
Line 609: | Line 613: | ||
DISK CRITICAL - free space: / 4510 MB (72% inode=88%): | DISK CRITICAL - free space: / 4510 MB (72% inode=88%): | ||
</ | </ | ||
+ | |||
+ | ===== Configurar interfaz web ===== | ||
+ | |||
+ | |||
+ | Queremos acceder a nagios desde una interfaz gráfica. Para ello instalamos apache2 en la misma máquina: | ||
+ | |||
+ | 1. Instalar apache2 | ||
+ | |||
+ | sudo aptitude install apache2 -R | ||
+ | |||
+ | 2. Crear un usuario: | ||
+ | |||
+ | sudo htpasswd / | ||
+ | |||
+ | Teclear dos veces la contraseña | ||
+ | |||
+ | 3. Crear el siguiente archivo: | ||
+ | |||
+ | sudo vim / | ||
+ | |||
+ | Con el siguiente contenido: | ||
+ | |||
+ | < | ||
+ | |||
+ | ScriptAlias / | ||
+ | ScriptAlias / | ||
+ | |||
+ | # Where the stylesheets (config files) reside | ||
+ | Alias / | ||
+ | |||
+ | # Where the HTML pages live | ||
+ | Alias /nagios3 / | ||
+ | |||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | |||
+ | DirectoryIndex index.php | ||
+ | |||
+ | AllowOverride AuthConfig | ||
+ | Order Allow,Deny | ||
+ | Allow From All | ||
+ | |||
+ | AuthName " | ||
+ | AuthType Basic | ||
+ | AuthUserFile / | ||
+ | require valid-user | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | 4. Recargar la configuración de apache: | ||
+ | |||
+ | sudo apache2ctl reload | ||
+ | |||
+ | 5. Probar: | ||
+ | |||
+ | http:// |
informatica/linux/nagios.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1