[prev in list] [next in list] [prev in thread] [next in thread] 

List:       os-sim-users-es
Subject:    Re: [Os-sim-users-es] Monitoreando PC (nuevo)
From:       Reynier_Pérez_Mira <rperezm () uci ! cu>
Date:       2009-09-04 19:32:17
Message-ID: 4AA16B41.8030609 () uci ! cu
[Download RAW message or body]

Christian D. Latorre wrote:
> Bien, eso lo puedes hacer perfectamente con Nagios y su plugin NRPE. Con 
> ello puedes monitorizar tanto el estado de los servicios en cuanto a sus 
> variables de red (respuesta de red, latencia, banner, etc) hasta 
> variables internas (TNS de Oracle, carga nominal de procesamiento, carga 
> de memoria, estado de procesos, numero de usuarios, estado del disco). 
> Eso si, te recomiendo estudiar algo acerca de los archivos de 
> configuracion de Nagios y la forma en que OSSIM los maneja... para 
> evitar que OSSIM borre los cambios que hagas en un archivo de host de 
> nagios al reiniciar ossim-server.
> 

Hola nuevamente:
He estado estudiando un poco y he intentado configurar las cosas. Lo 
primero que hice fue poner un NRPE como me dijiste en el servidor que 
quiero monitorear. Para ello seguí los pasos de la documentación 
oficial. Luego instale el plugin NRPE en el servidor que tengo dedicado 
al monitoreo (donde está el OSSIM instalado). Comprobé los siguientes 
comandos:

#/usr/local/nagios/libexec/check_nrpe -H 10.32.1.100 -c check_users
USERS OK - 2 users currently logged in |users=2;5;10;0
# /usr/local/nagios/libexec/check_nrpe -H 10.32.1.100 -c check_load
OK - load average: 0.00, 0.00, 0.00|load1=0.000;15.000;30.000;0; 
load5=0.000;10.000;25.000;0; load15=0.000;5.000;20.000;0;

Por lo que me da a entender que tanto el plugin del lado del OSSIM como 
del lado del servidor están funcionando sin problema alguno.

He creado el fichero /etc/nagios3/conf.d/linux-box.cfg con el siguiente 
contenido:
define host{
         name                    linux-box
         use                     generic-host
         check_period            24x7
         check_interval          5
         max_check_attempts      10
         check_command           check-host-alive
         notification_period     24x7
         notification_interval   30
         notification_options    d,r
         contact_groups          admin
         register                0
         }

Y el fichero /etc/nagios3/conf.d/ossim-configs/hosts/10.32.1.100.cfg con 
el siguiente contenido:
define host{
         host_name       BD PostgreSQL & MySQL Server
         alias           SVEXPBD01
         address         10.32.1.100
         use             linux-box
         }

#Check CPU Load
define service{
         use                     generic-service
         hostname                BD PostgreSQL & MySQL Server
         service_description     CPU Load
         check_command           check_nrpe!check_load
         }

#Check Logged Users
define service{
         use                     generic-service
         hostname                BD PostgreSQL & MySQL Server
         service_description     Users
         check_command           check_nrpe!check_users
         }
#Check Available Space
define service{
         use                     generic-service
         hostname                BD PostgreSQL & MySQL Server
         service_description     Space Available
         check_command           check_nrpe!check_sda4
         }

#Check Total Processes
define service{
         use                     generic-service
         hostname                BD PostgreSQL & MySQL Server
         service_description     Processes Running
         check_command           check_nrpe!check_total_procs
         }

#Check Zombie Processes
define service{
         use                     generic-service
         hostname                BD PostgreSQL & MySQL Server
         service_description     Zombie Processes
         check_command           check_nrpe!check_zombie_procs
         }

He reiniciado todo:
#/etc/init.d/ossim-server restart
#/etc/init.d/ossim-framework restart
#/etc/init.d/ossim-agent restart

Cuando intento acceder al menú (Monitors->Availability) me sale el 
siguiente error:

==================================================================
Whoops!

Error: Could not read host and service status information!

The most common cause of this error message (especially for new users), 
is the fact that Nagios is not actually running. If Nagios is indeed not 
running, this is a normal error message. It simply indicates that the 
CGIs could not obtain the current status of hosts and services that are 
being monitored. If you've just installed things, make sure you read the 
documentation on starting Nagios.

Some other things you should check in order to resolve this error include:

    1. Check the Nagios log file for messages relating to startup or 
status data errors.
    2. Always verify configuration options using the -v command-line 
option before starting or restarting Nagios!

Make sure you read the documentation on installing, configuring and 
running Nagios thoroughly before continuing. If all else fails, try 
sending a message to one of the mailing lists. More information can be 
found at http://www.nagios.org.
==================================================================

He revisado los logs y me he topado con lo siguiente:
[1252113595] Warning: Host '10.32.1.100' has no services associated with it!

¿Qué estoy haciendo mal o que no estoy haciendo?

Un saludo
-- 
Ing. Reynier Pérez Mira

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Os-sim-users-es mailing list
Os-sim-users-es@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/os-sim-users-es

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic