Re: Script to monitor https
Lon Hohberger <[email protected]> Wed, 16 May 2007 15:01:24 -0400
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
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.