NRPE Problems

carole verdon verdon at cict.fr
Tue Jul 13 15:15:18 CEST 2004


Have you try to execute this from command line of nagios server :

./check_nrpe -H hostaddress -n -c check_load


I note that it misses a space after the '-c' option in : 
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c$ARG1$

Perhaps that l error comes from there.

Chris Jackson-CHRJ002 wrote:

> Hi Carole,
>  
> Here is the information you requested,
>  
> From services.cfg
>  
> define service{
>         use                             linux-servers
>         host_name                       "server-name"  (sorry, company 
> policy!!!)      
>         contact_groups                  ecrl-admin
>         notification_options            c,u,r
>         service_description             LOAD_NRPE
>         check_command                   check_nrpe_nossl!check_load
> }
> define service{
>         use                             linux-servers
>         host_name                       "server-name"
>         contact_groups                  ecrl-admin
>         notification_options            c,u,r
>         service_description             DISK_NRPE
>         check_command                   check_nrpe_nossl!check_disk
> }
> define service{
>         use                             linux-servers
>         host_name                       "server-name"        
>         contact_groups                  ecrl-admin
>         notification_options            c,u,r
>         service_description             ZOMBIE_PROCS_NRPE
>         check_command                   
> check_nrpe_nossl!check_zombie_procs
> }
> define service{
>         use                             linux-servers
>         host_name                       "server-name"
>         contact_groups                  ecrl-admin
>         notification_options            c,u,r
>         service_description             TOTAL_PROCS_NRPE
>         check_command                   check_nrpe_nossl!check_total_procs
> }
>  
> From checkcommands.cfg
>  
> define command{
>         command_name check_nrpe_nossl
>         command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c$ARG1$
> }
>  
> I included the nossl version which is working more than the one trying 
> to use SSL.  The commands called relate to the commands in the 
> nrpe.cfg file, these are included below: 
>  
> # The following examples use hardcoded command arguments...
>  
> command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
> command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 
> 30,25,20
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10 -c 5 -X 
> nfs
> command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 
> -c 10 -s Z
> command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 
> 150 -c 200
>  
> As I said before, the commands above when run from the command line of 
> the remote host work perfectly.  If you need any more information 
> please let me know,
>  
> Many thanks for your help,
>  
> Chris
>  
>
>     -----Original Message-----
>     *From:* carole verdon [mailto:verdon at cict.fr]
>     *Sent:* 13 July 2004 13:21
>     *To:* Chris Jackson-CHRJ002
>     *Subject:* Re: [Nagios-users] NRPE Problems
>
>     Can you post your command definition of check_nrpe in command.cfg
>     and the services definition which using check_nrpe in service.cfg,
>     please?
>
>     It's perhaps a history of arguments.
>
>     Chris Jackson-CHRJ002 wrote:
>
>>     Hi Carole,
>>      
>>     Once again you come to my rescue!!
>>      
>>     I did what you said and added a -n switch to the command, this
>>     fixed the Handshake problems but now I just get an UNKNOWN Error
>>     receiving data from Daemon.
>>      
>>     Both host and remote host are running Mandrake Linux however one
>>     is v10 and one is v9.2, but when I execute the plugin locally on
>>     the remote host it works perfectly.  I can only assume that
>>     either the command is not being processed by the nrpe daemon
>>     correctly or that data is not being succesfully returned.  I
>>     looked in syslog but can't find any clues.
>>      
>>     A netstat -pta returns nrpe listening on port 5666 as expected.
>>      
>>     If you could help me with this problem I would be most grateful!
>>      
>>     Chris
>>
>>         -----Original Message-----
>>         *From:* carole verdon [mailto:verdon at cict.fr]
>>         *Sent:* 13 July 2004 08:42
>>         *To:* Chris Jackson-CHRJ002
>>         *Cc:* nagios-users at lists.sourceforge.net
>>         *Subject:* Re: [Nagios-users] NRPE Problems
>>
>>         It seems to me that your nrpe on nagios server is compiled
>>         with ssl. Is right?
>>
>>         If it's the case, you can use, i believe, the '-n' option of
>>         check_nrpe to disable ssl. Otherwise, you must compile again
>>         nrpe on nagios server with '--enable-ssl' option. Then, you
>>         can call the new check_nrpe as check_nrpe_nossl to not
>>         confuse with the check_nrpe compiling with ssl support.
>>
>>
>>         I see also that you copied some plugins on remote host. Is it
>>         the same version of OS? Normally, you must compile plugins
>>         directly on remote host. Perhaps, the error comes from there.
>>
>>         I hope that help you.
>>
>>         Carole.
>>
>>         Chris Jackson-CHRJ002 wrote:
>>
>>>         Hi,
>>>          
>>>         I'm having some difficulty setting up nrpe on my network.
>>>          
>>>         I have downloaded and compiled the client on the remote host
>>>         in question with ./configure --enable-ssl
>>>          
>>>         I have followed all the instructions to make the nrpe daemon
>>>         run with xinetd and netstat -pta shows nrpe listening.  I
>>>         set nagios host to use check_nrpe to execute some plugins I
>>>         copied to the remote box but I'm getting the error Could not
>>>         complete SSL handshake.  I'm sure its something to do with
>>>         me missing out some SSL configuration somewhere but I can't
>>>         see where I've gone wrong.
>>>          
>>>         I'm not really clued up on SSL and found the instructions
>>>         for installing with SSL support a bit confusing.  Can anyone
>>>         help me troubleshoot and work out why the handshake keeps
>>>         failing?
>>>          
>>>         Thanks in advance,
>>>          
>>>         Chris
>>
>
>-- 
>**********************************
>VERDON Carole
>Ingénieur Système
>CICT - Université Paul Sabatier
>118, route de Narbonne
>31062 Toulouse Cedex
>Tél.: 05.61.36.60.44
>Fax: 05.61.52.14.58
>Mail: verdon at cict.fr
>**********************************	
>    
>

-- 
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: verdon at cict.fr
**********************************	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040713/2372637c/attachment.html>


More information about the Users mailing list