On 5/1/07, gordonh <[EMAIL PROTECTED]> wrote:
In the /IpService/Privileged/http class monitoring there is a "Send String" and a "Expected
Regex" fields. I think I can figure out a regular expression for the expected return assuming it is
using the standard regular expression syntax. But what can be put into the "Send String" field
that is meaningful?
Some of the things I would like to be able to do are:
* Visit the default home page given by the IP. Maybe this is the default.
* Have it monitor a specific virtual host on a server. This is what I'm most
interested in doing.
* Can it pull from a full URL?
What would you put into this "Send String" to do any of the above items?
I haven't tested if the send string supports newlines, but the
following might work:
* Default home page send string: GET / HTTP/1.0\n\n
* Virtual host send string: GET / HTTP/1.1\nHost: vhost.mydomain.com\n\n
* Full URL on a vhost: GET /base/path/file.html HTTP/1.1\nHost:
vhost.mydomain.com\n\n
As you mentioned, you'd use the expected regex to verify some string
in the returned text.
--
Chet Luther
[EMAIL PROTECTED]
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users