Profundizando nagios.pdf

Vista previa de texto
Ejemplos: check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB
check_disk -w 100M
'^/oracle/SID/data.*$'
-c
50M
-C
-w
1000M
-c
500M
-g
sidDATA
-r
Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r
regex
are grouped which means the freespace thresholds are applied to all disks
together
check_disk -w 100M -c 50M -C -w 1000M -c 500M -p /foo -C -w 5% -c 3% -p /bar
Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use
100M/50M
Definir como comando:
define command{
command_name
command_line
}
check_all_disks
$USER1$/check_disk -w '$ARG1$' -c '$ARG2$'
Definir como servicio
define service{
use
host_name
service_description
check_command
}
generic-service
nombre_host
Disk Space
check_all_disks!20%!10%
check_disk_smb
Planificación, especificación, diseño y evaluación de redes Este comando
funciona exactamente igual que check_disk pero realiza la comprobación
utilizando samba para realizar la comprobación de volúmenes compartidos en
quipos remotos, en redes Windows.
Perl Check SMB Disk plugin for Nagios
Usage: check_disk_smb -H <host> -s <share> -u <user> -p <password>
1. w <warn> -c <crit> [-W <workgroup>] [-P <port>]
-H, –hostname=HOST
Nombre NetBIOS del servidor
-s, –share=STRING
Recurso compartido a testear
-W, –workgroup=STRING
Grupo de trabajo o dominio usado (Default "WORKGROUP")
-u, –user=STRING
Usuario a loguearse en el servidor. (Defaults "guest")
-p, –password=STRING
Contraseña para loguearse en el servidor. (Defaults NULL)
-w, –warning=INTEGER or INTEGER[kMG]
Percent of used space at which a warning will be generated (Default: 85%)
-c, –critical=INTEGER or INTEGER[kMG]
Percent of used space at which a critical will be generated (Defaults: 95%)
-P, –port=INTEGER
