<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><STRONG><FONT face=Verdana color=#0000ff size=1><SPAN
class=218482302-16072003></SPAN></FONT></STRONG>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1>H<SPAN class=218482302-16072003>i
Moti,</SPAN></FONT></FONT></FONT></STRONG></FONT></DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1><SPAN
class=218482302-16072003></SPAN></FONT></FONT></FONT></STRONG></FONT> </DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1><SPAN class=218482302-16072003>Shouldn't it be -U
instead of -S in define command ? I tried -S , it complains about no SSL
avilable anyway. </SPAN></FONT></FONT></FONT></STRONG></FONT></DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1><SPAN
class=218482302-16072003></SPAN></FONT></FONT></FONT></STRONG></FONT> </DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1><SPAN
class=218482302-16072003></SPAN></FONT></FONT></FONT></STRONG></FONT> </DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1><SPAN
class=218482302-16072003>jack</SPAN></FONT></FONT></FONT></STRONG></FONT></DIV>
<DIV><FONT face=Tahoma size=2><STRONG><FONT face=Verdana><FONT
color=#0000ff><FONT size=1><SPAN
class=218482302-16072003></SPAN></FONT></FONT></FONT></STRONG></FONT><FONT
face=Tahoma size=2><STRONG><FONT face=Verdana><FONT color=#0000ff><FONT
size=1><SPAN
class=218482302-16072003> </SPAN></FONT></FONT></FONT></STRONG>-----Original
Message-----<BR><B>From:</B> Moti Levy [mailto:moti@flncs.com] <BR><B>Sent:</B>
Wednesday, 16 July 2003 11:37 AM<BR><B>To:</B> Yao, Jack<BR><B>Subject:</B> Re:
[Nagios-users] check http<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>in checkcommands.cfg </FONT></DIV>
<DIV><FONT face=Arial size=2># 'check_http' command definition<BR>define
command{<BR>
command_name
check_http<BR>
command_line $USER1$/check_http -H $HOSTADDRESS$
$ARG0$<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2># 'check_https' command definition<BR>define
command{
<BR> command_name
check_https<BR>
command_line $USER1$/check_http -H $HOSTADDRESS$
-S $ARG0$ <BR>
}<BR></FONT><FONT face=Arial size=2>in services.cfg </FONT></DIV>
<DIV><FONT face=Arial size=2>define
service{<BR> </FONT><FONT face=Arial
size=2>
host_name ww<BR>
service_description www<BR>
is_volatile
0<BR>
check_period
24x7<BR>
max_check_attempts
3<BR>
normal_check_interval
10<BR>
retry_check_interval
1<BR>
contact_groups
admins<BR>
notification_interval
30<BR>
notification_period
24x7<BR>
notification_options
w,c,r<BR>
check_command
check_http!-u /page.asp -t 180<BR>
}</FONT></DIV>
<DIV><FONT face=Arial size=2>this will check page.asp on www server
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jyao@aav.com.au href="mailto:jyao@aav.com.au">Yao, Jack</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagios-users@lists.sourceforge.net
href="mailto:'nagios-users@lists.sourceforge.net'">'nagios-users@lists.sourceforge.net'</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 15, 2003 7:38
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Nagios-users] check
http</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Verdana size=1><SPAN class=390554123-15072003>HI there ,
</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN class=390554123-15072003> I am new
to Nagios , trying to use check http command with argument. I can execute it
from command like this: </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN class=390554123-15072003>./ check_http
-H [hot ip address] -u /bla/bla.html</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN class=390554123-15072003>but cannot
find the right syntax to put it in services,cfg at check command. Any
advise for newbie ???</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN class=390554123-15072003>thanks
</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=1><SPAN
class=390554123-15072003>J</SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>