<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Bleh. In addition to my other questions, I now have another.<br>
<br>
I need to do a content check, on a proxy/vhost...is this possible?<br>
<br>
In other words I have a host, web1 with IP 1.2.3.4, with apache running
on port 8000. I need to do a vhost check against 1.2.3.4 with the
hostname <a class="moz-txt-link-abbreviated" href="http://www.myhost.com">www.myhost.com</a>, as well as doing a content check on the result.<br>
<br>
So far I have been able to hit the vhost url via:<br>
<a class="moz-txt-link-freetext" href="http://www.myhost.com:8000=1.2.3.4/some/test.php">http://www.myhost.com:8000=1.2.3.4/some/test.php</a><br>
<br>
And a content check via:<br>
cont=http;<a class="moz-txt-link-freetext" href="http://www.myhost.com/some/test.php;SUCCESS">http://www.myhost.com/some/test.php;SUCCESS</a>   (no port
specified for myhost.com because it goes through a load balancer on
port 80...only way it will work since cont has no option to pass the
vhost)<br>
<br>
Is there a way to combine the two? I tried something like:<br>
cont=http;<a class="moz-txt-link-freetext" href="http://www.myhost.com:8000=1.2.3.4/some/test.php;SUCCESS">http://www.myhost.com:8000=1.2.3.4/some/test.php;SUCCESS</a><br>
<br>
But it didn't work. I didn't really expect it to but figured I would
try before I asked :)<br>
<br>
-Charles<br>
<br>
Charles Jones wrote:
<blockquote cite="mid44DA77A0.30000@cisco.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Also while I'm mucking about with content checks, I have another
question.  I added two content checks:<br>
  <br>
1.2.3.4    web-8  # ssh pulldata TRENDS:*,disk:disk|disk1
cont=http;<a class="moz-txt-link-freetext"
 href="http://prodsite.foo.com/monitor.php;SUCCESS">http://prodsite.foo.com/monitor.php;SUCCESS</a>
cont=http;<a class="moz-txt-link-freetext"
 href="http://prodsite2.foo.com/amialiveornot.php;SUCCESS">http://prodsite2.foo.com/amialiveornot.php;SUCCESS</a><br>
  <br>
When I check the http status, I see the first content check only. :<br>
  <h3> Wed Aug 9 23:55:58 2006: Content OK</h3>
  <pre><a class="moz-txt-link-freetext"
 href="http://prodsite.foo.com/monitor.php">http://prodsite.foo.com/monitor.php</a> - Testing <a
 href="http://aqmt-prod.cisco.com/monitor.php">URL</a> yields:
SUCCESS
  </pre>
  <br>
However, when I go to the "info" column, it shows that both URLs are
being checked:<br>
  <br>
Checked with ping:Yes<br>
Content checks: <a href="http://aqmt-prod.cisco.com/monitor.php">http://prodsite.foo.com/monitor.php</a> 
must return 'SUCCESS'<br>
                            
  <a href="http://reports-prod.cisco.com/amialiveornot.php">http://prodsite2.foo.com/amialiveornot.php</a> 
must return 'SUCCESS'<br>
  <br>
How do I get both content checks to display in the http status area?<br>
If this is not possible, will alerts still be sent if either content
check fails?<br>
  <br>
-Charles<br>
  <br>
Charles Jones wrote:
  <blockquote cite="mid44DA728E.6090401@cisco.com" type="cite">FYI Just
for fun I gave it a try (specifying the column name as "http"), and it
appears to work - rather I get the content check in the http column,
but the "normal" http status that shows the header and whatnot isn't
there, so I'm guessing that hobbit just displays the last status type
it received for that column. <br>
    <br>
Since the content check will still turn red and trigger an alert if
http itself goes down, this may be all that I need. The only problem I
could foresee is maybe someone could click the http status in between
the times that the normal status is reported, and the content status is
reported, so they would get just the normal status...due to the timing
of that I doubt it would ever happen so I'm not too worried. <br>
    <br>
I'm open to any other suggestions or comments. <br>
    <br>
-Charles <br>
    <br>
Charles Jones wrote: <br>
    <blockquote type="cite">Is it possible to have the results of the
HTTP test as well as the CONT test both displayed in the http status
area? <br>
In other words, "cont=http;<a class="moz-txt-link-freetext"
 href="http://www.foo.com/blah/;SUCCESS">http://www.foo.com/blah/;SUCCESS</a>"
      <br>
      <br>
I'm not suggesting that the default be that way, I can think of many
cases where it would be desirable to have a separate "http" and
"content" columns. I'm just trying to have as few columns as possible
:-) <br>
    </blockquote>
  </blockquote>
  <br>
</blockquote>
<br>
</body>
</html>