http status does not work (5.10)

Issue #128 resolved
Eugen Mayer created an issue

My config : http://goo.gl/pj0hjV

And getting

root@host/etc/monit/conf.d # monit -t
/etc/monit/conf.d/dw.cfg:12: syntax error 'status'

(using 5.10)

Comments (6)

  1. Tildeslash repo owner

    The status option needs to be before the timeout option (timeout is protocol independent option, whereas the status is for the http protocol only). Correct syntax:

        if failed
                host a.b.c.d
                port 443
                protocol https
                request "/user"
                status = 200
                with timeout 20 seconds
                then alert
    
  2. Log in to comment