<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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"><base href="x-msg://218/">
<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>
</body>
</html>