<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">




<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 78.0pt 1.0in 78.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Hi Marc,</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><b><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;font-weight:bold'>This is my command in commands.cfg :</span></font></b></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><i><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;font-style:italic'>define command{</span></font></i></p>

<p class=MsoPlainText><i><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;font-style:italic'>        command_name    check_http</span></font></i></p>

<p class=MsoPlainText><i><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;font-style:italic'>        command_line   
$USER1$/check_http -I $HOSTADDRESS$               </span></font></i></p>

<p class=MsoPlainText><i><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;font-style:italic'>        }</span></font></i></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>I executed the following command :</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>./check_http -I 199.107.237.196 -H 
ww12.1800flowers.com -u /signin.do -p 80 -P "email=</span></font>svenugopaal@gmail.com&password=podhum"
-s "welcome venu"</p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>and it threw </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>HTTP CRITICAL - string not found|time=0.080070s;;;0.000000
size=38300B;;;0</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Any idea why ?</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>FYI : the password has been changed and now is not
"podhum".</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Thanks</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Venu</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>-----Original Message-----<br>
From: Marc Powell [mailto:marc@ena.com] <br>
Sent: Thursday, January 22, 2009 8:46 PM<br>
To: nagios-users@lists.sourceforge.net<br>
Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>On Jan 22, 2009, at 7:55 AM, Venugopal S wrote:</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>></span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>> Hi Marc,</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>></span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>> Thanks for the reply. I am even now vague about
how to proceed.</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>></span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>> Let me tell you the need :</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>></span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>> I have to open
http://ww12.1800flowers.com/signin.do and enter my</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>> email(svenugopaal@gmail.com) and
password("podhum") in order to login.</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Looking at the source of the page, the sign-in form
has the following  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>pertinent fields --</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>            <input type="text"
name="email" maxlength="100" value=""
style="width: </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>120px" class="textfield"></span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>            <input type="password"
name="password" maxlength="64" value=""  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>style="width:120px"
class="textfield"></span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>                                                                                                            </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>The field names that would be passed as the POST are
'email' and  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>'password'. Now, I don't know what command{}
definitions you have for  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>check_http or how they're configured so I'll show you
how to create a  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>new one very specific to this test --</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>define command {</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>            command_name                       check_flowers_login</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>            command_line              $USER1$/check_http
-I $HOSTADDRESS$ -H  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>ww12.1800flowers.com -u /signin.do -P  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>"email=svenugopaal@gmail.com&password=podhum"</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>}</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Set that as the check_command for a service associated
with the host  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>and nagios will verify that the web server does not
return an HTTP  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>error after login. Note that if your server returns a
standard 200  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>response indicating OK even if there is a login error
(most likely),  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>you'll want to identify a word or string of text that
should appear in  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>the page after successful login, but not for a
failure, and look for  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>that with the -s parameter --</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>define command {</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>            command_name                       check_flowers_login</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>            command_line              $USER1$/check_http
-I $HOSTADDRESS$ -H  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>ww12.1800flowers.com -u /signin.do -P  </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>"email=svenugopaal@gmail.com&password=podhum"
-s "you are logged in"</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>}</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>> Though this looks like a lot of hand holding, I
have no other go.</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>My charge is 1 local specialty beer for all Hand
Holding Help.</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>--</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Marc</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>------------------------------------------------------------------------------</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>This SF.net email is sponsored by:</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>SourcForge Community</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>SourceForge wants to tell your story.</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>http://p.sf.net/sfu/sf-spreadtheword</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>_______________________________________________</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Nagios-users mailing list</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>Nagios-users@lists.sourceforge.net</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>https://lists.sourceforge.net/lists/listinfo/nagios-users</span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>::: Please include Nagios version, plugin version (-v)
and OS when reporting any issue. </span></font></p>

<p class=MsoPlainText><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt'>::: Messages without supporting info will risk being
sent to /dev/null</span></font></p>

</div>

</body>

</html>

<table><tr><td bgcolor=#ffffff><font color=#000000>This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no  liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.<br>
The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. <br>
<br>
www.aztecsoft.com<br>
</font></td></tr></table>