# Monitorización de Avaya Definity a través del servicio SNMP v2c
#Asier López Vega 2006
# check_avaya_status; chequea el estado de ejecuacion de la centralita 5 es OK
define command{
command_name check_avaya_status
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -C public -o .1.3.6.1.4.1.6889.2.8.1.1.1.0 -c 5 -P 2c -l "Estado" -w 4:1 -c 7:6
}
#check_avaya_hw_health_power; chequea el estado electrico, si la alimentacion es Comerial o Backup
define command{
command_name check_avaya_hw_health_power
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.19.0 -C public -P 2c -r comm -l 'Tipo' -u 'Commercial or Backup'
}
# check_avaya_mayor_alarms; chequea el numero de Alarmas Mayor
define command{
command_name check_avaya_mayor_alarms
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.5.0 -C public -P 2c -c 0 -l 'Mayor' -u 'alarmas'
}
# check_avaya_minor_alarms; chequea el numero de Alarmas Minor
define command{
command_name check_avaya_minor_alarms
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.6.0 -C public -P 2c -c 0 -l 'Minor' -u 'alarmas'
}
#check_avaya_warning_alarms; chequea el numero de Warninigs
define command{
command_name check_avaya_warning_alarms
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.7.0 -C public -P 2c -w 1 -l ' ' -u 'alarmas'
}
#check_avaya_active_ip; muestra la IP del servidor activo
define command{
command_name check_avaya_active_ip
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.2.2.10.0 -C public -P 2c -l IP
}
#check_avaya_hw_server_type; muestra el tipo de HW
define command{
command_name check_avaya_hw_server_type
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.2.2.20.0 -C public -P 2c -l Tipo
}
#check_avaya_CPU_HP; muestra el consumo de CPU de los procesos de alta prioridad
define command{
command_name check_avaya_CPU_HP
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.11.0 -C public -P 2c -l 'Uso CPU (Hight priority services)' -u '%'
}
#check_avaya_CPU_CP; cosumo de CPU del Call procesing
define command{
command_name check_avaya_CPU_CP
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.12.0 -C public -P 2c -l 'Uso CPU (Call Procesing)' -u '%'
}
# check_avaya_CPU_SM; consumo del CPU de los procesos del sistema
define command{
command_name check_avaya_CPU_SM
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.13.0 -C public -P 2c -l 'Uso CPU (System Magnamet)' -u '%'
}
#check_avaya_CPU_F; % de CPU libre
define command{
command_name check_avaya_CPU_F
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.6.14.0 -C public -P 2c -l 'Uso CPU (Libre)' -u '%'
}
# check_avaya_status_trunk; chequea el estado del troncal numero $ARG1$ que le pasemos
define command{
command_name check_avaya_status_trunk
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o .1.3.6.1.4.1.6889.2.8.1.32.6.1.3.$ARG1$,.1.3.6.1.4.1.6889.2.8.1.53.6.1.7.$ARG1$,.1.3.6.1.4.1.6889.2.8.1.53.6.1.16.$ARG1$ -C public -P 2c -w ,,0:0 -c ,,0:0 -u '->',' total','fuera de servicio' -l 'Status Trunk'
}
# check_avaya_status_medpro; chequea el estado de la tarjeta $ARG1$ que le pasemios
define command{
command_name check_avaya_status_medpro
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o 1.3.6.1.4.1.6889.2.8.1.132.6.1.3.$ARG1$,1.3.6.1.4.1.6889.2.8.1.132.6.1.4.$ARG1$,1.3.6.1.4.1.6889.2.8.1.132.6.1.8.$ARG1$,1.3.6.1.4.1.6889.2.8.1.132.6.1.33.$ARG1$ -C public -P 2c -w ,,,0:0 -c ,,,0:0 -u 'IP',' Ethernet Enable','Criticals' -l 'IP-MedPro'
}
#check_avaya_all_completed_calls_in_hour; llamadas completadas en la ultima hora
define command{
command_name check_avaya_all_completed_calls_in_hour
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -t 60 -o 1.3.6.1.4.1.6889.2.8.1.111.10.0 -C public -P 2c -w 400000:200001 -c 200000:100000 -u 'Llamadas completadas hora actual' -l 'TOTAL'
}