<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">HI Assaf.<div><br></div><div>Thanks for replying to my email</div><div><br></div><div>this is the output of the command</div><div><br></div><div><div>$ ./check_users -w 5 -c 10</div><div><b>USERS OK - 1 users currently logged in |users=1;5;10;0</b></div><div><br></div><div><div><div>On Sep 22, 2010, at 2:19 AM, Assaf Flatto wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div text="#000000" bgcolor="#ffffff">
    On 22/09/10 02:09, Jonathan Wiggins wrote:
    <blockquote cite="mid:1E5D41F3-84F2-4551-AC8F-4FCC26258141@salon.com" type="cite">
      <div>
        <div>
          <div># The following examples use hardcoded command
            arguments...</div>
          <div><br>
          </div>
          <div>command[check_users]=/usr/lib64/nagios/plugins/check_users
            -w 5 -c 10</div>
          <div>command[check_load]=/usr/lib64/nagios/plugins/check_load
            -w 15,10,5 -c 30,25,20</div>
          <div>command[check_hda1]=/usr/lib64/nagios/plugins/check_disk
            -w 20% -c 10% -p /dev/hda1</div>
          <div>command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs
            -w 5 -c 10 -s Z</div>
          <div>command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs
            -w 150 -c 200</div>
          <div> </div>
          <div><br>
          </div>
          <div># The following examples allow user-supplied arguments
            and can</div>
          <div># only be used if the NRPE daemon was compiled with
            support for</div>
          <div># command arguments *AND* the dont_blame_nrpe directive
            in this</div>
          <div># config file is set to '1'.  This poses a potential
            security risk, so</div>
          <div># make sure you read the SECURITY file before doing this.</div>
          <div><br>
          </div>
          <div>#command[check_users]=/usr/lib64/nagios/plugins/check_users
            -w $ARG1$ -c $ARG2$</div>
          <div>#command[check_load]=/usr/lib64/nagios/plugins/check_load
            -w $ARG1$ -c $ARG2$</div>
          <div>#command[check_disk]=/usr/lib64/nagios/plugins/check_disk
            -w $ARG1$ -c $ARG2$ -p $ARG3$</div>
          <div>#command[check_procs]=/usr/lib64/nagios/plugins/check_procs
            -w $ARG1$ -c $ARG2$ -s $ARG3$</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>that's the entry in the .cfg file, if I run this for
            example, you can see it does give me output:</div>
          <div>
            <div><b>/usr/lib64/nagios/plugins/check_nrpe -H localhost</b></div>
            <div><b>NRPE v2.12</b></div>
          </div>
          <div><b><br>
            </b></div>
          <div>but other than that, I just run the command as below?</div>
          <div><b>/usr/lib64/nagios/plugins/check_nrpe -H localhost -c
              check_users</b>    (I'm confused on this part - does this
            particular "check_users" need this at the end? " -w 5 -c 10"
              when that's done, I get <i>Unable To read output </i>)</div>
          <div><br>
          </div>
          <div>i've checked permissions also on the
            /usr/lib64/nagios/plugins/* directories and only the
            ../nagios/ directory has nagios.nagios as the owner, the
            rest have root.root  -- i've seen permissions listed in
            other forums as the possible culprit, but my permissions
            seem right?  I've only got "nagios" listed as the nrpe_user
            and the nrpe_group  in the nrpe.cfg file -- do I need to add
            "nrpe" and/or "root" to this?</div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    when you try running one of the command localy on the remote machine
    what is the output ?<br>
    <br>
    "/usr/lib64/nagios/plugins/check_users -w 5 -c 10 " - what does this
    command return ?<br>
    <br>
    Assaf<br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Never,Ever Cut A Deal With a Dragon 


Next year I will be doing the London to Paris bike ride to 
raise money for the DogTrust (<a class="moz-txt-link-abbreviated" href="http://www.dogstrust.co.uk/">www.dogstrust.co.uk</a>) .
Please Sponsor me at <a class="moz-txt-link-freetext" href="http://www.justgiving.com/Assaf-Flatto">http://www.justgiving.com/Assaf-Flatto</a></pre>
  </div>

------------------------------------------------------------------------------<br>Start uncovering the many advantages of virtual appliances<br>and start using them to simplify application deployment and<br>accelerate your shift to cloud computing.<br><a href="http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________">http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________</a><br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/nagios-users<br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</blockquote></div><br></div></div></body></html>