Script to monitor https
Lon Hohberger
lhh at redhat.com
Wed May 16 19:01:24 UTC 2007
On Tue, May 15, 2007 at 09:36:56PM +0000, Mohamed HADROUJ (Gmail) wrote:
> >If you're referring to the piranha check script, here's one we used:
> >
> >#!/bin/bash
> >TEST=`/usr/bin/lynx -head -dump https://$1 2>/dev/null | grep -c
> >"HTTP/1.1 200 OK" `
> >if [ "$TEST" == "1" ]
> >then
> > echo "OK"
> >else
> > echo "FAIL"
> >fi
expect = "OK"
send_program = "my_script_here"
?
--
Lon Hohberger - Software Engineer - Red Hat, Inc.
More information about the Piranha-list
mailing list