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/24 19:17] – 127.0.0.1 | informatica:linux:nagios [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 531: | 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 612: | 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.1295896639.txt.gz · Last modified: (external edit)
