
SNMP
Check_AKCP_SP2
Description:
Proyecto para monitorear AKCP SensorProbe2 con nagios.
Current Version
Last Release Date
June 23, 2009
Compatible With
Owner
Project Files
File | Description |
---|---|
akcp_con_nagios.txt | check_akcp_sp2 |
akcp.gif | AKCP SP2 en Nagios |
Project Notes
Basicamente vamos a monitorear los sensores AKCP SP2 con los siguientes procedimientos:
Este ejemplo lo vamos a realizar con el puerto 1.
PASO 1: Editar el archivo commands.cfg:
> vi /usr/local/nagios/etc/commands.cfg
#Temperatura del Puerto 1
define command{
command_name check_akcp_temperatura1
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w $ARG1$:$ARG2$ -c $ARG3$:$ARG4$ -C $ARG5$ -l Temperatura -u Grados
}
#Humedad del Puerto 1
define command{
command_name check_snmp_humedad1
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0 -w $ARG1$:$ARG2$ -c $ARG3$:$ARG4$ -C $ARG5$ -l Humedad -u %
}
#Temperatura Puerto 2
define command{
command_name check_akcp_temperatura2
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.1 -w $ARG1$:$ARG2$ -c $ARG3$:$ARG4$ -C $ARG5$ -l Temperatura -u Grados
}
#Humedad del Puerto 2
define command{
command_name check_snmp_humedad2
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.3854.1.2.2.1.17.1.3.1 -w $ARG1$:$ARG2$ -c $ARG3$:$ARG4$ -C $ARG5$ -l Humedad -u %
}
Nota: Si usted tiene el sensor conectado por el puerto 1, deben utilizar los comandos check_akcp_temperatura1 y check_snmp_humedad1. Pero si tienen utilizando el sensor por el puerto 2, entonces deben utilizar check_akcp_temperatura2 y check_snmp_humedad2. Recuerde que los AKCP SensorProbe2 tienen 2 puertos y usted simplemente elija el puerto de su preferencia.
#################################################################
Paso 2: Creamos el servicio para humedad y temperatura
# warning sera cuando la humedad sea desde 43% hasta 46%
# Critical sera cuando la humedad sea desde 47% hasta 99%
define service{
use generic-service
host_name SENSOR_AKCP
service_description Humedad
check_command check_akcp_humedad1!46!43!99!47!public
}
define service{
use generic-service
host_name SENSOR_AKCP
service_description Temperatura
check_command check_akcp_temperatura1!27!25!99!28!public
}
Reviews
(0)
Add a Review
Page Sections
Project Stats
Rating
0 (0)
Favorites
0
Views
148,025