<div dir="ltr"><div>When I enter</div>
<div>define command {<br> command_name check_http_path<br> command_line /usr/local/nagios/libexec/check_http -H '$ARG1$' -u '$ARG2$' -w $ARG3$ -c $ARG4$<br>}<br></div>
<div>it gives error </div>
<div>Name or service not known<br>HTTP CRITICAL - Unable to open TCP socket</div>
<div> </div>
<div>thx<br><br> </div>
<div class="gmail_quote">On Tue, Mar 10, 2009 at 11:33 AM, Harry John <span dir="ltr"><<a href="mailto:irvine.harris@gmail.com">irvine.harris@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">
<div>Hello friends,</div>
<div>First of all thanks for ur immense support..</div>
<div>But im making some mistake,I get this error from nagios webpage</div>
<div> </div>
<div>
<table border="0">
<tbody>
<tr>
<td>Current Status:</td>
<td>
<div> CRITICAL </div> (for 0d 0h 42m 23s)</td></tr>
<tr>
<td valign="top">Status Information:</td>
<td>(Return code of 127 is out of bounds - plugin may be missing)</td></tr></tbody></table></div>
<div> </div>
<div>My command.cfg is as follows</div>
<div> </div>
<div># 'check_http' command definition
<div class="im"><br>define command{<br> command_name check_http<br></div> command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$<br> }</div>
<div># 'check_http_path'
<div class="im"><br>define command {<br> command_name check_http_path<br></div> command_line check_http -H '$ARG1$' -u '$ARG2$' -w $ARG3$ -c $ARG4$</div>
<div>}</div>
<div> </div>
<div>i've the check_http plugin at /usr/local/nagios/libexec/check_http (with chown nagios.nagios)</div>
<div> </div>
<div>Should I change the commandline as it is just IP?</div>
<div>Thanks,</div>
<div>Harry</div>
<div>
<div></div>
<div class="h5">
<div> </div>
<div><br><br><br> </div>
<div class="gmail_quote">On Tue, Mar 10, 2009 at 12:14 AM, Justin Pasher <span dir="ltr"><<a href="mailto:justinp@newmediagateway.com" target="_blank">justinp@newmediagateway.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Justin Pasher wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Harry John wrote:<br> <br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi friends,<br> am just wondering how to monitor a website as<br><a href="http://172.168.1.1:82/xap/murl2?language=en" target="_blank">http://172.168.1.1:82/xap/murl2?language=en</a><br>
define service{<br>use generic-service ; Inherit default values from a template<br>host_name remotehost<br>service_description HTTP<br>check_command check_http<br>}<br>How do I fit this link here?<br> <br></blockquote>
<br></div>
<div>define service {<br> use generic-service ; Inherit default values from a template<br> host_name remotehost<br> service_description HTTP<br> check_command check_http_path!<a href="http://172.168.1.1:82/" target="_blank">172.168.1.1:82</a> <<a href="http://172.168.1.1:82/xap/murl2?language=en" target="_blank">http://172.168.1.1:82/xap/murl2?language=en</a>>!/xap/murl2?language=en <<a href="http://172.168.1.1:82/xap/murl2?language=en" target="_blank">http://172.168.1.1:82/xap/murl2?language=en</a>>!25!50<br>
}<br> <br></div></blockquote><br>Agh.. stupid Thunderbird. It should look like this:
<div><br><br>define service {<br> use generic-service ; Inherit default values from a template<br> host_name remotehost<br> service_description HTTP<br></div> check_command check_http_path!172.168.1.1:82!/xap/murl2?language=en!25!50<br>
}<br><br><br><br>-- <br><font color="#888888">Justin Pasher<br></font></blockquote></div><br></div></div></div></blockquote></div><br></div>