NRPE: No output returned from plugin error

yuris yuris at smtp.com
Thu Jul 1 13:12:26 CEST 2010


well,

./check_nrpe -H centos.host.com -n -c check_load
CHECK_NRPE: Error receiving data from daemon

and I see this in centos.host syslog "nrpe[22928]: Error: Could not 
complete SSL handshake. 1" when issue command with "-n" option.

--
wbr,
yuris


Assaf Flatto wrote:
> Assaf Flatto wrote:
>   
>> yuris wrote:
>>   
>>     
>>> Hi all,
>>>
>>> I have this weird trouble with getting nrpe agents work. My nagios 
>>> server hosts on Debian box while agents on Debian and Centos (all 
>>> installed from official binary packages) and the problem is check_nrpe 
>>> always returns this "NRPE: No output returned from plugin" error when I 
>>> check NRPE on any Centos host and this is true with all plugins - all of 
>>> them does not return anything. I turned on debug at one Centos host but 
>>> still it does not show me anything, when I run from nagios host:
>>>
>>> ./check_nrpe -H centos.host.com -c check_load
>>>
>>> I always get "NRPE: Unable to read output" and there is nothing in 
>>> syslog at agent's host in spite of debug is on.
>>>
>>> My assumption was that command definitions on Centos host side use path 
>>> to plugins that is different from Debian, for example:
>>>
>>> command[check_load]="/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 
>>> 30,25,20" [Debian host]
>>> command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 
>>> 30,25,20" [Centos host]
>>>
>>> but I made symbolic link so that plugins could be called by the same 
>>> path - it didn't help. When I run command locally, all works just fine:
>>>
>>> su nrpe -c "/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20"
>>> OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; 
>>> load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0;
>>>
>>> while from nagios server:
>>>
>>> ./check_nrpe -H centos.host.com -c check_load
>>> NRPE: Unable to read output
>>>
>>> The weird part of it is that all plugins work fine on debian hosts. 
>>> Nagios uses the same host, service and command definitions for all 
>>> monitored hosts (both debian and centos) and I really wonder what's 
>>> wrong with centos nrpe agents :/
>>>
>>> If anyone have any ideas, please try to help.
>>>
>>> P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents 
>>> versions are the same on Debian and Centos (v.2.12).
>>>
>>>   
>>>     
>>>       
>> from first look it seems that one of your server has SSL installed on it 
>> and the other does not and nagios -by default - assumes ( command 
>> definitions) to use nrpe with ssl .
>>
>> Try to execute the command on the CentOS hosts , but add "-n " after the 
>> host IP , and see if that will help .
>>
>> Assaf
>>
>>   
>>     
> Clarification :
>
> ./check_nrpe -H centos.host.com -n -c check_load
>
>
>   


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list