[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hobbit] More than just green/red for HTTP cont= tests?
- To: hobbit (at) hswn.dk
- Subject: [hobbit] More than just green/red for HTTP cont= tests?
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Thu, 28 Dec 2006 16:21:42 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=onzy3MlFaOgqY8Ua3JCfmD89E0rQNw/9CwGrQaAIOzsahX/Fz2MUR9bhQmx8gC1VmI5ikMvMG9g4pA9YDKZc8YBYmtRGRiuJ7Ae58CqQTcvGgmEzgpfVyJyeBTvGGKNNWJMvPrzRz4BQmGnB9prvXSTnFb/4LQhD9I5HmQVCvXM=
Maybe I missed it, but I couldn't find this question anywhere in the hobbit
mailing list archives...
Is there a way to have multiple HTTP cont= tests for a single web page, that
are for different
content checks for a different status color? I currently have Hobbit
monitoring several
webpages which themselves are like mini-Hobbit display pages. Depending on
the status of
those pages, I'd like hobbit to display either green, yellow, or red.
Currently, the cont= test
only checks if the content exists; if it does, it's green, otherwise, it's
red.
What I'm thinking is, is there a way to say something like
cont[=column];url;[expected_data_regexp];[alternate_data_regexp]
Where if "expected_data_regexp" is matched, the status is green. If it
isn't matched,
it tries to match "alternate_data_regexp". If *that* is matched, the status
is yellow.
If neither are matched, the status is reg.
Also, let me know if you all think this is going a little beyond the scope
of Hobbit. Perhaps
I should be doing this test with an external script, rather than using an
http cont= test. The
only problem would be, I'd have to make the script be able to read and parse
an http page...
Gary B.