[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] content tests (Yet another content check question)
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] content tests (Yet another content check question)
- From: Charles Jones <jonescr (at) cisco.com>
- Date: Thu, 10 Aug 2006 10:08:42 -0700
- Authentication-results: sj-dkim-3.cisco.com; header.From=jonescr@cisco.com; dkim=pass ( 60 extraneous bytes; sig from cisco.com verified; );
- Dkim-signature: a=rsa-sha1; q=dns; l=8697; t=1155229635; x=1156093635; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=jonescr@cisco.com; z=From:Charles=20Jones=20<jonescr@cisco.com> |Subject:Re=3A=20[hobbit]=20content=20tests=20(Yet=20another=20content=20check=20 question); X=v=3Dcisco.com=3B=20h=3DVnyHVM6azIwnEy8swq3bWCeGe5U=3D; b=QgwGHHj4tYKcLJBd0oVvUdgiNO6bMRmyogpEDvEg8E+IbXFWjW0FzkW+ONhH6NRMuopq2DUG mQc/fR4grS5kxwk6AZDl4iue7WQItINUWHpvcLbJVM7hc0jDOHcbUI+C;
- References: <44DA6C14.2060908@cisco.com> <44DA728E.6090401@cisco.com> <44DA77A0.30000@cisco.com>
- User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Bleh. In addition to my other questions, I now have another.
I need to do a content check, on a proxy/vhost...is this possible?
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 www.myhost.com, as well as doing a content check on the result.
So far I have been able to hit the vhost url via:
http://www.myhost.com:8000=1.2.3.4/some/test.php
And a content check via:
cont=http;http://www.myhost.com/some/test.php;SUCCESS (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)
Is there a way to combine the two? I tried something like:
cont=http;http://www.myhost.com:8000=1.2.3.4/some/test.php;SUCCESS
But it didn't work. I didn't really expect it to but figured I would try
before I asked :)
-Charles
Charles Jones wrote:
Also while I'm mucking about with content checks, I have another
question. I added two content checks:
1.2.3.4 web-8 # ssh pulldata TRENDS:*,disk:disk|disk1
cont=http;http://prodsite.foo.com/monitor.php;SUCCESS
cont=http;http://prodsite2.foo.com/amialiveornot.php;SUCCESS
When I check the http status, I see the first content check only. :
Wed Aug 9 23:55:58 2006: Content OK
http://prodsite.foo.com/monitor.php - Testing URL <http://aqmt-prod.cisco.com/monitor.php> yields:
SUCCESS
However, when I go to the "info" column, it shows that both URLs are
being checked:
Checked with ping:Yes
Content checks: http://prodsite.foo.com/monitor.php
<http://aqmt-prod.cisco.com/monitor.php> must return 'SUCCESS'
http://prodsite2.foo.com/amialiveornot.php
<http://reports-prod.cisco.com/amialiveornot.php> must return 'SUCCESS'
How do I get both content checks to display in the http status area?
If this is not possible, will alerts still be sent if either content
check fails?
-Charles
Charles Jones wrote:
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.
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.
I'm open to any other suggestions or comments.
-Charles
Charles Jones wrote:
Is it possible to have the results of the HTTP test as well as the
CONT test both displayed in the http status area?
In other words, "cont=http;http://www.foo.com/blah/;SUCCESS"
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 :-)