[Nagiosplug-help] problem with nrpe return status

Alok Pandey alok.padey at gmail.com
Tue Oct 21 09:49:23 CEST 2008


Hi Andy,
Thanks , it works .
The fix i had made was, added  an option -c to the main 
command.template  file in the nrpe section, and it's rock's.
 
Thanks
Alok Pandey

 Andy Shellam wrote:
> Hi Alok,
>
> Somebody else had the same issue recently, they'd missed off the "-c" 
> option on their command line.
>
> From your first e-mail, does it work if you add "-c" before 
> "check_users?" I'm not sure why it should work correctly from your 
> shell prompt - it certainly doesn't for me (running Debian) - see here:
>
> # /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 check_users
> NRPE v2.12.
>
> # /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_users
> check_users: Warning threshold must be a positive integer
> Usage:check_users -w <users> -c <users>
>
> # /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_users -a 2 3
> USERS OK - 1 users currently logged in |users=1;2;3;0
>
> Regards,
>
> Andy
>
> Alok Pandey wrote:
>> Hi Baizeau,
>> I agree with you but i like to remind you that execution of same 
>> command form Shell prompt at monitoring host , returns the desired 
>> result.
>> The problem is only , when we try to monitor the status of remote 
>> host through webserver , then the STATUS column always shows NRPE 
>> version instead of full description.
>> Any idea ?
>> Can any one show me some light , were to look for the cause of problem.
>>
>> Thanks
>> Alok Pandey
>> Baizeau Alexandre wrote:
>>>
>>> Hi Alok
>>>
>>> Apparently your configuration problem is localized on your 
>>> monitoring host.
>>>
>>> Maybe you did not configure corectly you service .
>>>
>>> If Nagios show only his version it that it’s execute the following 
>>> command : check_nrpe -H localhost
>>>
>>> That means that your NRPE daemon on your client doesn’t know that he 
>>> should perform a check_user.
>>>
>>> I would need more information about your service definition for 
>>> check_user
>>>
>>> Sorry for my poor english
>>>
>>> Alexandre Baizeau
>>>
>>> *De :* Alok Pandey [mailto:alok.padey at gmail.com]
>>> *Envoyé :* vendredi, 17. octobre 2008 12:49
>>> *À :* nagiosplug-help at lists.sourceforge.net
>>> *Objet :* Re: [Nagiosplug-help] problem with nrpe return status
>>>
>>> Hi All,
>>>
>>> I would like to thanks you all for your great support . I am a 
>>> newbie (both to nagios and for this list).
>>> Below I have tried to be specific as i can:
>>>
>>> For testing remote host,
>>> I had added a linux host to monitoring host (again linux) by 
>>> installing nrpe and nagios related plugins.
>>> Problem is whenever Ii execute command from monitoring host from 
>>> shell prompt, it runs successfully and returns the desired result.
>>> eg : Monitoring host
>>> nagios]$ ./bin/check_nrpe -H 192.168.0.110 check_users
>>> results : 3 user , with load details (perfectly ok ) *
>>> BUT
>>> *when I watch it's status using web, In status it always shows only 
>>> nrpe version (i.e NRPE2.X). without any details.
>>> like
>>> *"NUM OF USERS OK 10-17-2008 15:52:05 3d 0h 28m 10s 1/4 NRPE v2.12 "
>>>
>>> *Can any one suggest me , were to look to fix this issue.
>>> Some details are as :
>>> Nagios 3.0rc2
>>> Nrpe v2.12 (both on monitoring host as well as on client)
>>>
>>> any suggestions are welcome..!
>>> thanks in advance .*
>>>
>>> --Alok Pandey*
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> ------------------------------------------------------------------------- 
>>>
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win 
>>> great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in 
>>> the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> _______________________________________________
>>> Nagiosplug-help mailing list
>>> Nagiosplug-help at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>>> ::: Please include plugins version (-v) and OS when reporting any 
>>> issue. ::: Messages without supporting info will risk being sent to 
>>> /dev/null
>>>   
>>
>> ------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------- 
>>
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win 
>> great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the 
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Nagiosplug-help mailing list
>> Nagiosplug-help at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>> ::: Please include plugins version (-v) and OS when reporting any 
>> issue. ::: Messages without supporting info will risk being sent to 
>> /dev/null
>>   
>





More information about the Help mailing list