No output returned from plugin

Andreas Ericsson ae at op5.se
Mon Apr 11 15:29:58 CEST 2005


Olivier Mugabonake wrote:
> Hi, It's again me, about remote monitoring.
> 
> 
>> First of all, you should have a look at the nrpe.cfg on the remote host and
>>check the command_names.
> 
> 
> command_names specified in /etc/nagios/nrpe.cfg of remote Host are the
> same as those used in checkcomands.cfg of the nagios server (for
> concerned commands)
> 
> 
>>If you want to give the warning and critical thresholds from your
>>checkcommands.cfg through nrpe to your nrpe Daemon on the other side you
>>have to allow the nrpe daemon to handle with arguments (This ist not
>>recommend because of security reasons!!!)
>> 
>> If you even want this your checkcommand has to be such: check_nrpe -H
>>mx1srv3 -c check_disk1 -a 25 [SPACE] 15 and the command_name on the remote
>>nrpe.cfg has to interpret these args as $ARG1$ $ARG2$ and so on...
>> 
>> If have enabled the argument parsing of nrpe and it just won't work, have a
>>look about the '%' Chars... I am not sure if you have to tell him this
>>chars. Just try the values 25 and 15 instead of 25% and 15%...
> 
>   
> 
> 
> I changed my nrpe.cfg file on remote host like this: 
> ....
> command[check_disk1]=/usr/nagios/libexec/check_disk $ARG1$ $ARG2$
> ....
>  And then I changer my checkommands.cfg file on nagios server like this:
> # 'check_local_disk_mx1srv3' command definition
> define command{
>         command_name    check_disk_mx1srv3
>         command_line    /usr/nagios/libexec/check_nrpe -H mx1srv3 -c
> check_disk1  -a 25  15
>         }
> 
> After enabling debog option in nrpe.cfg, and running this command from
> nagios server
> 
> /usr/nagios/libexec/check_nrpe -H mx1srv3 -c check_disk1 15 25
> 

check_nrpe --help
Read the part about arglist.

> I received some thing like this in my nagios web interface : O bytes
> received from the daemon: check log messages on remote host..
> 
> After a look in my log file on remote host, I got some thing like "
> nrpe: can't parse arguments"
> 
> So, my problem remains: I can't monitor any thing on remote hosts
> using my web based interface, but I can when using command line.
> I
> 
> 
> 
> 
> On Apr 11, 2005 1:43 PM, Hendrik Baecker <b00mer at gmx.net> wrote:
> 
>> Olivier Mugabonake schrieb: 
>> Thanks for your reply
>>
>> 
>> 
>> 
>> Did you try this as the User under which is Nagios running? Or just as
>>root?
>> 
>> I did so just as root not as nagios user
>>
>> 
>> 
>> 
>> I hope you don't try to insert "/usr/nagios/libexec/check_nrpe -H
>> 
>> remoteHost -c >>check_disk1" as check_command in your services.cfg...
>>
>>I defined the command above in the checkcommands.cfg file, in
>>servece.cfg file I just gave the the name of the command
>>
>>To be more explicit here is a part of my services.cfg file :
>>
>> host_name mx1srv3
>> check_command check_disk_mx1srv3
>>
>>And this is the concerned part of my checkcommand.cfg file
>>
>>define command{
>> command_name check_disk_mx1srv3
>> command_line /usr/nagios/libexec/check_nrpe -H mx1srv3 -c
>>check_disk1 -w 25% -c 15%
>> }
>> 
>> Looks not so bad, but:
>> 
>> Is your NRPE Daemon on the other side configured to handle Arguments?
>> 
>> Your command definition gives the arguments -w 25% and -c 15%.
>> 
>> First of all, you should have a look at the nrpe.cfg on the remote host and
>>check the command_names.
>> 
>> If you want to give the warning and critical thresholds from your
>>checkcommands.cfg through nrpe to your nrpe Daemon on the other side you
>>have to allow the nrpe daemon to handle with arguments (This ist not
>>recommend because of security reasons!!!)
>> 
>> If you even want this your checkcommand has to be such: check_nrpe -H
>>mx1srv3 -c check_disk1 -a 25 [SPACE] 15 and the command_name on the remote
>>nrpe.cfg has to interpret these args as $ARG1$ $ARG2$ and so on...
>> 
>> If have enabled the argument parsing of nrpe and it just won't work, have a
>>look about the '%' Chars... I am not sure if you have to tell him this
>>chars. Just try the values 25 and 15 instead of 25% and 15%...
>> 
>> Another chance is to enable the debug at your nrpe daemon (nrpe.cfg
>>debug=1) and have a look at your system log when nagios connects to.
>>
>> 
>> I also set the specified permissions on the external command file
>>(/var/nagios/rw )
>>(it belongs to nagios and apache users)
>>
>>Hope my problem is more clear I'll send you any other information you need.
>>Thanks
>>
>>
>>On Apr 11, 2005 12:36 PM, Hendrik Baecker <b00mer at gmx.net> wrote:
>> 
>> 
>> Olivier Mugabonake schrieb:
>>
>> 
>> 
>> Hello there,
>>
>>I 'm running nagios 1.2 on a linux gentoo.
>>I would like to monitor hosts other than where nagios is intalled.
>>when I run this
>>nagios-server etc # /usr/nagios/libexec/check_nrpe -H remoteHost -c
>>check_disk1
>>
>>I receive the right status of disks on remoteHost.
>>
>>
>> 
>> Did you try this as the User under which is Nagios running? Or just as
>>root?
>>
>> 
>> 
>> My problem is this:
>>when I define the above command in services config file to be
>>automatically handled by nagios, I receive this status on my nagios
>>web interface:"No output returned from plugin"
>>
>>
>>
>> 
>> I hope you don't try to insert
>>"/usr/nagios/libexec/check_nrpe -H remoteHost -c check_disk1"
>>as check_command in your services.cfg...
>>
>>Normaly you define your check_command "PATH/check_nrpe ARGS" in your
>>checkcommands.cfg with a nagios command_name like nrpe and this
>>command_name you should have in your service definition.
>>How did you do?
>>
>>Perhaps you can send the used parts out of your configs (services.cfg,
>>checkcommands.cfg)
>>
>> 
>> 
>> nrpe and nsca are running and correctly configured on nagios server
>>and remoteHost.
>>
>>Please help me.
>>
>>
>> 
>> ...we will try...
>>
>> 
>> 
>> -------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>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
>>
>>
>>
>>
>> 
>> Best regards,
>>Hendrik
>>
>> 
>> <<
>>
>>
>> 
>> 
>>
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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