[U-co] Monitoreo de disco con Nagios - NRPE

hugo armando manbuscay hamsam_05 en hotmail.com
Lun Sep 29 20:51:29 UTC 2014




Quizas esta de mas...
...pero cual es la respuesta desde el servidor Nagios core, cuando le consultas solo asi
 ./check_nrpe -H 192.168.160.10
o cuando le consultas cualquier otro chek (load, memory ).
En la primera debe arrojarte la version del NRPE

Quedo atento

Cordialmente

 

Hugo Armando Manbuscay

 

Movil    315 387 47 92


> From: jhosman en ubuntu.com
> Date: Mon, 29 Sep 2014 08:27:51 -0500
> To: ubuntu-co en lists.ubuntu.com
> Subject: Re: [U-co] Monitoreo de disco con Nagios - NRPE
> 
> Hola Dorance!
> 
> Muchas gracias por la respuesta, pues es mas aún extraño cuando desde el
> servidor de nagios si obtengo resultados.
> 
> $ ./check_nrpe -H 192.168.160.10 -c check_disk
> DISK OK - free space: /opt 33389 MB (74% inode=98%);|
> /opt=11156MB;37544;42237;0;46930
> 
> Vía Web:
> (No output returned from plugin)
> 
> (No output returned from plugin)
> NRPE Plugin for Nagios
> Copyright (c) 1999-2008 Ethan Galstad (nagios en nagios.org)
> Version: 2.15
> Last Modified: 09-06-2013
> License: GPL v2 with exemptions (-l for more info)
> SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
> \nUsage: check_nrpe -H <host> [ -b <bindaddr> ] [-4] [-6] [-n] [-u] [-p
> <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
> \nOptions:
> -h = Print this short help.
> -l = Print licensing information.
> -n = Do no use SSL
> -u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
> <host> = The address of the host running the NRPE daemon
> <bindaddr> = bind to local address
> -4 = user ipv4 only
> -6 = user ipv6 only
> [port] = The port on which the daemon is running (default=5666)
> [timeout] = Number of seconds before connection times out (default=10)
> [command] = The name of the command that the remote daemon should run
> [arglist] = Optional arguments that should be passed to the command.
> Multiple
> arguments should be separated by a space. If provided, this must be
> the last option supplied on the command line.
> \nNote:
> This plugin requires that you have the NRPE daemon running on the remote
> host.
> You must also have configured the daemon to associate a specific plugin
> command
> with the [command] option you are specifying here. Upon receipt of the
> [command] argument, the NRPE daemon will run the appropriate plugin command
> and
> send the plugin output and return code back to *this* plugin. This allows
> you
> to execute plugins on remote hosts and 'fake' the results to make Nagios
> think
> the plugin is being run locally.
> \n
> 
> 
> El 27 de septiembre de 2014, 17:49, Dorance Martinez Cortes<
> dorancemc en gmail.com> escribió:
> 
> > Hola Jhosman,
> >
> > Si, vi el mensaje cuando lo ejecutas localmente,
> >
> > # /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
> >  /dev/mapper/VG_opt-LV_opt
> >  DISK OK - free space: /opt 34024 MB (76% inode=98%);|
> >  /opt=10522MB;37544;42237;0;46930
> >
> > Pero no veo el output cuando lo ejecutas desde el server donde está
> > instalado el nagios core.
> >
> > # check_nrpe -H 192.168.160.10 -c check_disk
> >
> >
> >
> > El 27 de septiembre de 2014, 17:03, Jhosman Lizarazo - Ubuntu Colombia <
> > jhosman en ubuntu.com> escribió:
> >
> > > Brayan es RHEL6
> > >
> > > Dorance. Esa prueba la puse en la.publicación y tengo resultados OK
> > > El 26/09/2014 23:20, "Dorance Martinez Cortes" <dorancemc en gmail.com>
> > > escribió:
> > >
> > > > Intenta ejecutar, desde el servidor de nagios, el siguiente comando
> > > >
> > > > check_nrpe -H 192.168.160.10  -c  check_disk
> > > >
> > > > Te ejecuta correctamente? que error te aparece?
> > > >
> > > >
> > > >
> > > > El 26 de septiembre de 2014, 22:13, Brayan Bautista <
> > braybaut en gmail.com>
> > > > escribió:
> > > >
> > > > > Que distribución es el cliente ?
> > > > >
> > > > > El 26 de septiembre de 2014, 9:24, Jhosman Lizarazo - Ubuntu
> > Colombia <
> > > > > jhosman en ubuntu.com> escribió:
> > > > >
> > > > > > Buen día
> > > > > >
> > > > > > Estoy teniendo un problema con respecto al servicio Nagios/NRPE y
> > es
> > > el
> > > > > > siguiente:
> > > > > >
> > > > > > He realizado la configuración de cada uno de los archivos, pero
> > > nagios
> > > > no
> > > > > > me reconoce la respuesta entregada por NRPE en el cliente:
> > > > > >
> > > > > > *Fichero: /etc/nagios/nrpe.cfg  (cliente)*
> > > > > >
> > > > > > command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c
> > 10
> > > > > > command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5
> > > -c
> > > > > > 30,25,20
> > > > > > command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 20% -c
> > > 10%
> > > > -p
> > > > > > /dev/mapper/VG_opt-LV_opt
> > > > > > command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs
> > -w
> > > 5
> > > > -c
> > > > > > 10 -s Z
> > > > > > command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w
> > > 150
> > > > > -c
> > > > > > 200
> > > > > >
> > > > > >
> > > > > > *File: services.cfg  (Servidor)*
> > > > > > define service{
> > > > > >   use                   generic-service
> > > > > >   host_name             192.168.160.10, 192.168.160.11,
> > > 192.168.160.12
> > > > > >   service_description   Disk Space
> > > > > >   notification_options w,u,c,r
> > > > > >   check_command         check_nrpe!check_disk
> > > > > > }
> > > > > >
> > > > > > Claramente he reiniciado los servicios en el cliente y servidor y
> > > otras
> > > > > > consultas realizadas mediante NRPE se obtienen resultados, como
> > > > cantidad
> > > > > de
> > > > > > procesos, CPU y RAM el problema es con check_disk.
> > > > > >
> > > > > > *El resultado localmente obtenido con el check_disk es:*
> > > > > >
> > > > > > dev]# /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
> > > > > > /dev/mapper/VG_opt-LV_opt
> > > > > > DISK OK - free space: /opt 34024 MB (76% inode=98%);|
> > > > > > /opt=10522MB;37544;42237;0;46930
> > > > > >
> > > > > > Resultado vía web
> > > > > >
> > > > > > Disk SpaceUNKNOWN    2014-09-26 09:18:31    0d 15h 52m 53s    4/4
> > > > > > *(No output returned from plugin) *
> > > > > >
> > > > > > Alguna idea?
> > > > > >
> > > > > > --
> > > > > > Cordialmente.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Jhosman Lizarazo
> > > > > > https://launchpad.net/~jhosman
> > > > > > --
> > > > > > Al escribir recuerde observar la etiqueta (normas) de esta lista:
> > > > > > http://goo.gl/Pu0ke
> > > > > > Para cambiar su inscripción, vaya a "Cambio de opciones" en
> > > > > > http://goo.gl/Nevnx
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Un Mundo sin Windows jajaja
> > > > >
> > > > > https://wiki.ubuntu.com/braybaut
> > > > > https://launchpad.net/~braybaut
> > > > > http://braybaut.blogspot.com/
> > > > >
> > > > > Linux user: # 554550
> > > > > ubuntu user: # 35060
> > > > > --
> > > > > Al escribir recuerde observar la etiqueta (normas) de esta lista:
> > > > > http://goo.gl/Pu0ke
> > > > > Para cambiar su inscripción, vaya a "Cambio de opciones" en
> > > > > http://goo.gl/Nevnx
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Cordialmente,
> > > >
> > > >
> > > > Dorancé Martínez Cortés
> > > > (57) 320 6968121
> > > > Linux User Number 112632
> > > > Certificación ITIL Fundation 2011 ed.
> > > > Cali - Colombia
> > > > dorancemc en gmail.com
> > > > http://dmcingenieria.net
> > > > http://dmci.co
> > > >
> > > > "Si piensas que la tecnología puede solucionar tus problemas de
> > > seguridad,
> > > > está claro que ni entiendes los problemas ni entiendes la tecnología"
> > > Bruce
> > > > Schneier
> > > > --
> > > > Al escribir recuerde observar la etiqueta (normas) de esta lista:
> > > > http://goo.gl/Pu0ke
> > > > Para cambiar su inscripción, vaya a "Cambio de opciones" en
> > > > http://goo.gl/Nevnx
> > > >
> > > --
> > > Al escribir recuerde observar la etiqueta (normas) de esta lista:
> > > http://goo.gl/Pu0ke
> > > Para cambiar su inscripción, vaya a "Cambio de opciones" en
> > > http://goo.gl/Nevnx
> > >
> >
> >
> >
> > --
> >
> > Cordialmente,
> >
> >
> > Dorancé Martínez Cortés
> > (57) 320 6968121
> > Linux User Number 112632
> > Certificación ITIL Fundation 2011 ed.
> > Cali - Colombia
> > dorancemc en gmail.com
> > http://dmci.co
> >
> > "Si piensas que la tecnología puede solucionar tus problemas de seguridad,
> > está claro que ni entiendes los problemas ni entiendes la tecnología" Bruce
> > Schneier
> > --
> > Al escribir recuerde observar la etiqueta (normas) de esta lista:
> > http://goo.gl/Pu0ke
> > Para cambiar su inscripción, vaya a "Cambio de opciones" en
> > http://goo.gl/Nevnx
> >
> 
> 
> 
> -- 
> Cordialmente.
> 
> 
> 
> Jhosman Lizarazo
> https://launchpad.net/~jhosman
> -- 
> Al escribir recuerde observar la etiqueta (normas) de esta lista: http://goo.gl/Pu0ke
> Para cambiar su inscripción, vaya a "Cambio de opciones" en http://goo.gl/Nevnx

 		 	   		  


Más información sobre la lista de distribución Ubuntu-co