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 (nag...@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<
doranc...@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 <
> jhos...@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" <doranc...@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 <
> brayb...@gmail.com>
> > > escribió:
> > >
> > > > Que distribución es el cliente ?
> > > >
> > > > El 26 de septiembre de 2014, 9:24, Jhosman Lizarazo - Ubuntu
> Colombia <
> > > > jhos...@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
> > > doranc...@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
> doranc...@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

Responder a