ok, I realized I was being a dolt ad downloaded the CVS repository
version.

I ran ./autogen.sh then make to make myself a binary.

It seems to run fine if I only use http, but crash if I include an https
URL in my monitrc.  The monitrc is attached.  

-ben


set daemon 120 # Poll at 2-minute intervals
set httpd port 8093 and use address localhost
        allow localhost
        allow admin:monit
set logfile /var/log/monit.log
set alert [EMAIL PROTECTED]
            with mail-format {
    from: [EMAIL PROTECTED]
    subject: $SERVICE $EVENT
    message: $DATE
}


check host SearchNoResults with address www.simplyhired.com
        if failed url
                
http://www.simplyhired.com/index.php?&state=searchresult&miles=75&q=plumber&l=94110&submit_btn=search
                and content == "jobs 1 -"
                with timeout 30 seconds
                then alert

check host SearchDidntReturn with address www.simplyhired.com
        if failed port 80 send 
                "GET 
/index.php?dstate=searchresult&state=searchresult&miles=&sortby=date&keywords=pink+elephant&location=ca
 HTTP/1.0\r\nHost: www.simplyhired.com\r\n\r\n" 
                expect "HTTP/1.1 200 OK.*\r\n" 
                with timeout 30 seconds
                then alert
        depends on FrontApacheDown

check host FrontApacheDown with address www.simplyhired.com
        if failed url http://www.simplyhired.com/aboutus.html
                and content == "writing a good haiku"
                then alert

check host SecureApacheDown with address secure.simplyhired.com
        if failed url https://secure.simplyhired.com/aboutus.html
                and content == "writing a good haiku"
                then alert

check host SecureNoResults with address secure.simplyhired.com
        if failed url
                
https://secure.simplyhired.com/index.php?&state=searchresult&miles=75&q=plumber&l=94110&submit_btn=search
                and content == "jobs 1 -"
                with timeout 30 seconds
                then alert

check host Blog with address blog.simplyhired.com
        if failed url
                http://blog.simplyhired.com/
                and content == "<title>SimplyBlog"
                with timeout 30 seconds
                then alert

Attachment: signature.asc
Description: Digital signature

_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev

Reply via email to