Profundizando nagios.pdf

Vista previa de texto
When the 'www.verisign.com' server returns its content within 5 seconds, a
STATE_OK will be returned. When the server returns its content but exceeds
the 5-second threshold, a STATE_WARNING will be returned. When an error
occurs, a STATE_CRITICAL will be returned.
CHECK CERTIFICATE: check_http -H www.verisign.com -C 14
When the certificate of 'www.verisign.com' is valid for more than 14 days, a
STATE_OK is returned. When the certificate is still valid, but for less than 14
days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when
the certificate is expired.
Ejemplo desde un script
#!/bin/sh
/usr/local/nagios/libexec/check_http -H $1 -p 50000 -u /irj/portal -A
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" -k "AcceptLanguage: es-ES" -s "Bienvenido"
check_ifoperstatus
Este comando comprueba el estado de operación de interfaces de red remotas
por medio de SNMP v1 o SNMP v3.
check_ifstatus
Este comando comprueba el estado general de interfaces de red remotas por
medio de SNMP v1 o SNMP v3.
check_imap
Este comando realiza conexiones contra un servidor IMAP para comprobar su
estado de funcionamiento. Permite generar advertencias y errores críticos.
Definir como comando :
define command{
command_name
command_line
}
check_imap
$USER1$/check_imap -H '$HOSTADDRESS$'
Chequear IMAP con SSL
define command {
command_name
command_line
}
check_simap
$USER!$/plugins/check_imap -p 993 -H '$HOSTADDRESS$' -S
Definir como servicio:
define service{
use
host_name
service_description
check_command
}
generic-service
nombre_host
imaps
check_simap
check_ircd
Este comando comprueba el funcionamiento de un servidor de IRC remoto.
