miércoles, 16 de febrero de 2011

Monitorizando NICE Perform con Nagios


Se puede monitorizar mediante SNMP el  estado de los diferentes servidores y servicios que componen el sistema Perform.


Comandos para incluir en el fichero  /etc/nagios-plugins/config/snmp.cfg



####### NICE #######

# VOICE LOGGER
# LOGGER
# INTEGER {noError(1), warning(2), error(3), criticalError(4) }
define command{
        command_name    check_snmp_logger_general_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.3.2.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Logger general status'
        }
define command{
        command_name    check_snmp_logger_loggin_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.3.2.3.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Loggin status'
        }
define command{
        command_name    check_snmp_logger_capture_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.3.2.4.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Capture status'
        }
define command{
        command_name    check_snmp_logger_backup_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.3.2.5.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Backup status'
        }

# INTERACTION SERVER (INTEGRATIONS)
# CLS
# INTEGER {noError(1), warning(2), error(3), criticalError(4) }
define command{
        command_name    check_snmp_ias_ctidriver_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.1.1.2.11 -P 2c  -w ,3:4  -c 1:3 -u 'CTI driver status'
        }
define command{
        command_name    check_snmp_ias_connectionmanager_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.1.1.2.12 -P 2c  -w ,3:4  -c 1:3 -u 'Connection Manager status'
        }
define command{
        command_name    check_snmp_ias_integrationdispatch_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.1.1.2.15 -P 2c  -w ,3:4  -c 1:3 -u 'Integration Dispatch status'
        }
define command{
        command_name    check_snmp_ias_capi_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.11.1 -P 2c  -w ,3:4  -c 1:3 -u 'Integration Dispatch status'
        }
define command{
        command_name    check_snmp_ias_engine1_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.11.2 -P 2c  -w ,3:4  -c 1:3 -u 'Engine1 status'
        }
define command{
        command_name    check_snmp_ias_conectioninterface_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.11.4 -P 2c  -w ,3:4  -c 1:3 -u 'Conection Interface status'
        }
define command{
        command_name    check_snmp_ias_engine2_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.12.2 -P 2c  -w ,3:4  -c 1:3 -u 'Engine2 status'
        }
define command{
        command_name    check_snmp_ias_cti_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.12.3 -P 2c  -w ,3:4  -c 1:3 -u 'CTI status'
        }
define command{
        command_name    check_snmp_ias_interactionsclientmanager_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.12.5 -P 2c  -w ,3:4  -c 1:3 -u 'Interactions Client Manager status'
        }
define command{
        command_name    check_snmp_ias_engine3_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.4.2.1.2.15.2 -P 2c  -w ,3:4  -c 1:3 -u 'Engine3 status'
        }

# INTERACTION SERVER
# CLS
# INTEGER {noError(1), warning(2), error(3), criticalError(4) }
define command{
        command_name    check_snmp_ias_resourcemanager_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.2.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Resource Manager status'
        }
define command{
        command_name    check_snmp_ias_callserver_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.3.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Call Server status'
        }
define command{
        command_name    check_snmp_ias_schedulerserver_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.4.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Scheduler Server status'
        }
define command{
        command_name    check_snmp_ias_databaseserver_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.5.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'Database Server status'
        }
define command{
        command_name    check_snmp_ias_clsdispatcher_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.6.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'CLS dispatcher status'
        }
define command{
        command_name    check_snmp_ias_clsmonitor_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.8.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'CLS monitor status'
        }
define command{
        command_name    check_snmp_ias_trs_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.2.9.2.0 -P 2c  -w ,3:4  -c 1:3 -u 'TRS status'
        }

# APLICATION SERVER
# APS
#   applicationErrorType
define command{
        command_name    check_snmp_aps_systemadministrator_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.5.1.1.2.1 -P 2c  -w ,3:4  -c 1:3 -u 'System administrator status'
        }
define command{
        command_name    check_snmp_aps_ruleengine_status
        command_line    /usr/lib/nagios/plugins/check_snmp -H   $HOSTADDRESS$  -t 60 -C public  -o .1.3.6.1.4.1.3167.1.5.1.1.2.2 -P 2c  -w ,3:4  -c 1:3 -u 'Rule engine status'
        }

Es mecesario configurar el servicio SNMP en todos los servidores windows para que acepten peticiones de nuestra máquina de Nagios añadiendo la IP.



Básicamente todos estos comandos lo que hacen es consultar mendiante un snmpget un OID que contiene el estado de un determinado proceso, si el estado es 1, es que esta correcto  {noError(1), warning(2), error(3), criticalError(4) }.

Este seria el aspecto en Nagios de un interaction server.


No hay comentarios: