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 19:20] – 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 16: | Line 19: | ||
| sudo aptitude update && sudo aptitude install nagios3 | sudo aptitude update && sudo aptitude install nagios3 | ||
| + | |||
| Line 39: | Line 43: | ||
| cfg_dir=/ | cfg_dir=/ | ||
| + | **IMPORTANTE** | ||
| + | 1. Se pueden crear subdirectorios en / | ||
| + | 2. Todos los archivos de configuración tienen que acabar en .cfg | ||
| ===== Anfitrión ===== | ===== Anfitrión ===== | ||
| Line 144: | Line 151: | ||
| Grabamos y salimos | Grabamos y salimos | ||
| + | |||
| Line 190: | Line 198: | ||
| < | < | ||
| allowed_hosts=monitor.jj.com | allowed_hosts=monitor.jj.com | ||
| - | command[check_disk]=/ | + | command[check_disk]=/ |
| </ | </ | ||
| - | En este caso habilitamos el comando ' | + | En este caso habilitamos el comando ' |
| + | |||
| + | **RECOMENDADO**: | ||
| + | |||
| + | sudo vim / | ||
| Reiniciar el servicio: | Reiniciar el servicio: | ||
| Line 519: | 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 600: | 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.1295378406.txt.gz · Last modified: (external edit)
