<br><font size=2 face="sans-serif">Hi there,</font>
<br>
<br><font size=2 face="sans-serif">Your final command to invoke check_disk
is "check_nrpe!check_disk!$_HOSTDISKWARNING$!$_HOSTDISKCRITICAL$".
Passing this to check_nrpe will only get check_disk as an argument passed
through to nrpe (since your check_nrpe-command is "$USER1$/check_nrpe
-H $HOSTADDRESS$ -p $_HOSTNRPE_PORT$ -c $ARG1$"). This in turn starts
the check_disk-command via NRPE without any arguments (because '_HOSTDISKWARNING'
and '_HOSTDISKCRITICAL' will get passed as ARG2 and ARG3 to check_nrpe)
and in the end will cause check_disk only see a -w and -c option without
thresholds.</font>
<br>
<br><font size=2 face="sans-serif">I think what needs to be done is pass
the whole command with escaped bang-characters to check_nrpe like this:</font>
<br><font size=2 face="sans-serif">check_nrpe!check_disk\!$_HOSTDISKWARNING$\!$_HOSTDISKCRITICAL$</font>
<br><font size=2 face="sans-serif">or maybe even enclose it in single or
double quotes so it gets passed through as 1 argument to check_nrpe.....</font>
<br>
<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>
<br>
<br><font size=2 face="sans-serif">HTH</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 10:43</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><tt><font size=2>>after that - change the testing to work the way
you want it<br>
<br>
Hello, i'm testing that but I can't understand what is wrong on my<br>
configurations.<br>
(blame_nrpe e ricompiling it's ok)<br>
On nrpe.cfg I defined this command:<br>
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$<br>
<br>
<br>
And on nagios server I've this definitions:<br>
</font></tt><a href=http://pastebin.com/7uZRcMk9><tt><font size=2>http://pastebin.com/7uZRcMk9<br>
<br>
Also enabling debug on nrpe deamon I see nothing during the command on
messages:<br>
May 19 08:21:54 blabla xinetd[24320]: START: nrpe pid=24336 from=192.168.234.234<br>
May 19 08:21:54 blabla nrpe[24336]: INFO: SSL/TLS initialized. All<br>
network traffic will be encrypted.<br>
May 19 08:21:54 blabla xinetd[24320]: EXIT: nrpe status=0 pid=24336<br>
duration=0(sec)<br>
<br>
<br>
Any suggest or documentation?<br>
<br>
Thank's!<br>
<br>
------------------------------------------------------------------------------<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<br>
</font></tt></a></a>
<br>