<br><font size=2 face="sans-serif">I think that's fine. It all depends
on what you want to pass to the command itself (in this case the /usr/locall.nagios/libexec/check_disk-plugin).
If f.i. -w "$ARG1$" can use space-seperated values (which it
can't, but just for arguments sake), then you have to specify (in nrpe.cfg)
the (single- or) double-quotes.</font>
<br>
<br><font size=2 face="sans-serif">Personally I tend not to use quoting
in nrpe.cfg since in most cases it is not necessary, but there might be
reasons to explicitly enclose such arguments in quotes.....</font>
<br><font size=2 face="sans-serif"><br>
Met vriendelijke groet/with kind regards,<br>
          Ludse Verhoeven<br>
 <br>
AIX System Engineer<br>
T: +31 10 400 2440<br>
F: +31 10 400 2891<br>
E: ludse.verhoeven@vopak.com<br>
<br>
<br>
Visit / Postal Address: <br>
<br>
</font><a href=http://www.vopak.com/><font size=2 face="sans-serif">http://www.vopak.com<br>
<br>
<br>
</font></a>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Enrico Zimol <lomiz.mail@gmail.com></b>
</font>
<p><font size=1 face="sans-serif">19/05/2010 16:46</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Nagios Users List <nagios-users@lists.sourceforge.net></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Nagios Users List <nagios-users@lists.sourceforge.net></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-users] NRPE with command
arguments</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>On 19 May 2010 11:13, Ludse Verhoeven <</font><a href=mailto:ludse.verhoeven@vopak.com><font size=3 color=blue><u>ludse.verhoeven@vopak.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif">Not sure if this works like it is supposed
to (haven't tested it myself), but qua syntax this seems more correct.</font><font size=3>
</font>
<br><font size=3> <br>
That worked fine :)<br>
Other question, where exactly I've to insert quotes on nrpe.cfg commands
to prevent code injection?<br>
I think like this:<br>
[nrpe.cfg]<br>
[...]<br>
command[check_disk]=/usr/local/nagios/libexec/check_disk -w <b>"</b>$ARG1$<b>"</b>
-c <b>"</b>$ARG2$<b>"</b><br>
[...]<br>
<br>
Is it right?<br>
<br>
Thank's!<br>
<br>
-- <br>
Enrico "lomiz" Zimol</font><tt><font size=2>------------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
</font></tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><tt><font size=2>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</font></tt></a>
<br>