<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Questions using negate?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I have a device on my network that I normally should not be able to reach so</FONT>
<BR><FONT SIZE=2>would like to use the check_ping to see if I can reach it. What it should</FONT>
<BR><FONT SIZE=2>actually do though is report as OK if unreachable and as DOWN if reachable,</FONT>
<BR><FONT SIZE=2>and negate sounds like it should fit the bill, but doesn't seem to be</FONT>
<BR><FONT SIZE=2>working. I don't know if I am doing something wrong or if it only works</FONT>
<BR><FONT SIZE=2>with certain plugins, but here is the command I am running:</FONT>
</P>
<P><FONT SIZE=2>When I use the following line, I get a "negate: Unknown argument - w".</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>command_line $USER1$/negate $USER1$/check_ping -H $ARG1$ -w 1000.0,100% -c \</FONT>
<BR><FONT SIZE=2>1000.0,100% -p 5</FONT>
</P>
<P><FONT SIZE=2>So, I try putting the command it is running in quotes (see below) and I get</FONT>
<BR><FONT SIZE=2>a "/usr/rest/of/path/negate problem - No data recieved from host" error</FONT>
<BR><FONT SIZE=2>message.</FONT>
</P>
<P><FONT SIZE=2>command_line $USER1$/negate "$USER1$/check_ping -H $ARG1$ -w 1000.0,100% \</FONT>
<BR><FONT SIZE=2>-c 1000.0,100% -p 5"</FONT>
</P>
<P><FONT SIZE=2>I did update the plugins to the most recent version available, so a negate</FONT>
<BR><FONT SIZE=2>-V returns "negate (nagios-plugins 1.3.0) 1.5". Could anyone let me know</FONT>
<BR><FONT SIZE=2>what I am doing wrong?</FONT>
</P>
<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>David</FONT>
</P>
</BODY>
</HTML>