<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Olivier Mugabonake schrieb:
<blockquote cite="mid56f32e2105041104015402d713@mail.gmail.com"
 type="cite">
  <pre wrap="">Thanks for your reply

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">Did you try this as the User under which is Nagios running? Or just as root?
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
I did so just as root not as nagios user

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">I hope you don't try to insert "/usr/nagios/libexec/check_nrpe -H
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->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%
        }
  </pre>
</blockquote>
Looks not so bad, but:<br>
<br>
Is your NRPE Daemon on the other side configured to handle Arguments?<br>
<br>
Your command definition gives the arguments -w 25% and -c 15%.<br>
<br>
First of all, you should have a look at the nrpe.cfg on the remote host
and check the command_names.<br>
<br>
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!!!)<br>
<br>
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...<br>
<br>
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%...<br>
<br>
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.<br>
<blockquote cite="mid56f32e2105041104015402d713@mail.gmail.com"
 type="cite">
  <pre wrap="">
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 <a class="moz-txt-link-rfc2396E" href="mailto:b00mer@gmx.net"><b00mer@gmx.net></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Olivier Mugabonake schrieb:

    </pre>
    <blockquote type="cite">
      <pre wrap="">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.


      </pre>
    </blockquote>
    <pre wrap="">Did you try this as the User under which is Nagios running? Or just as root?

    </pre>
    <blockquote type="cite">
      <pre wrap="">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"



      </pre>
    </blockquote>
    <pre wrap="">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)

    </pre>
    <blockquote type="cite">
      <pre wrap="">nrpe and nsca are running and correctly configured on nagios server
and remoteHost.

Please help me.


      </pre>
    </blockquote>
    <pre wrap="">...we will try...

    </pre>
    <blockquote type="cite">
      <pre wrap="">-------------------------------------------------------
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.
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null




      </pre>
    </blockquote>
    <pre wrap="">Best regards,
Hendrik

    </pre>
  </blockquote>
  <pre wrap=""><!----><<


  </pre>
</blockquote>
<br>
</body>
</html>