<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nsclient++ Parameters</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>Has anyone any idea on my problem ?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>if I define a command in the NSC.ini of windows like
:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>check_file_size=inject CheckFileSize ShowAll
MaxWarn=1024M $ARG1$ File:WIN=c:\WINDOWS\*.*</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>and a
command in Nagios as:</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>#NRPE
Test<BR>define command {<BR>
command_name
check_nrpe_win_size<BR>
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666
-c check_file_size -a $ARG1$<BR>
}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>and
the service template as:</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>define
service{<BR>
name
nrpe_drive-tmpl<BR>
use
remote-service<BR>
service_description
NRPE Drive Status<BR>
check_command
check_nrpe_win_size!'MaxCrit=8192M'<BR>
register
0<BR> }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>It
should result in the client receiving:</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><SPAN class=857595011-27022007><FONT face=Arial
color=#0000ff size=2>check_file_size=inject CheckFileSize ShowAll
MaxWarn=1024M MaxCrit=8192M File:WIN=c:\WINDOWS\*.*</FONT></SPAN>
<DIV><SPAN class=857595011-27022007></SPAN><SPAN class=857595011-27022007><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007>CHECK_NRPE: Received 0 bytes from daemon.
Check the remote server logs for error messages.</SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>And in
the windows log:</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2>2007-02-27 12:51:59: error:.\NRPEListener.cpp:308: NRPEException: Request
contained arguments (not currently allowed).</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>If I
define the command in NSC.ini as:</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007><FONT face=Arial color=#0000ff
size=2>check_file_size=inject CheckFileSize ShowAll
MaxWarn=1024M MaxCrit=8192M
File:WIN=c:\WINDOWS\*.*</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>and I call it as:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>#NRPE
Test<BR>define command {<BR>
command_name
check_nrpe_win_size<BR>
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666
-c check_file_size <BR>
}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>and
the service template as:</FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2>define
service{<BR>
name
nrpe_drive-tmpl<BR>
use
remote-service<BR>
service_description
NRPE Drive Status<BR>
check_command
check_nrpe_win_size<BR>
register
0<BR>
}</FONT></SPAN></DIV></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>everything works fine, but I don't want to define the
"tuning parameters"on the clients. It would be a nightmare to change them
later.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>By the way Nagios is version 2.7 and the client is the
last version released on <FONT
size=2>2006-12-02</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>Regards,</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007>Davide</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff size=2><SPAN
class=857595011-27022007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=857595011-27022007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
nagiosplug-help-bounces@lists.sourceforge.net
[mailto:nagiosplug-help-bounces@lists.sourceforge.net] <B>On Behalf Of
</B>D.Parise@iaea.org<BR><B>Sent:</B> 26 February 2007 17:59<BR><B>To:</B>
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> [Nagiosplug-help]
Nsclient++ Parameters<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Dear All,</FONT> </P>
<P> <FONT face=Arial size=2>There is
something I do not understand:</FONT> </P>
<P><FONT face=Arial size=2>1) I have NSClient++ running on a windows Xp
machine.</FONT> <BR><FONT face=Arial size=2>2) I define a command in the NSC.ini
</FONT></P>
<P><FONT face=Arial size=2>[NRPE Handlers]</FONT> <BR><FONT face=Arial
size=2>check_uptime=inject checkUpTime MinWarn=1d MinWarn=12h</FONT> </P>
<P><FONT face=Arial size=2>3) I call the command with </FONT></P>
<P><FONT face=Arial size=2>./check_nrpe -H 161.5.116.1 -c check_uptime
</FONT></P>
<P><FONT face=Arial size=2>and everything works fine</FONT> </P>
<P><FONT face=Arial size=2>The question is: how should I define the command in
the in the NSC.ini to read the parameters through the -a option the net
check_nrpe command ?</FONT></P>
<P><FONT face=Arial size=2>Regards</FONT> </P><BR>
<P><FONT face=Arial size=2>Davide Parise</FONT> <BR><FONT face=Arial
size=2>Safeguards Systems Analyst</FONT> <BR><FONT face=Arial size=2>Division of
Technical Support (SGTS)</FONT> <BR><FONT face=Arial size=2>International Atomic
Energy Agency (IAEA) </FONT><BR><FONT face=Arial size=2>Tel.: +43 1 2600 26496
(Office)</FONT> <BR><FONT face=Arial size=2>Fax: +43 1 2600 29317 (21st
Floor)</FONT> <BR><FONT face=Arial size=2>e-mail: d.parise@iaea.org</FONT>
</P><BR><BR>
<DIV>
<P>This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this communication
to others. Also please notify the sender by replying to this message and then
delete it from your system. </P></DIV></BODY></HTML>