[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: monitoring a return code 200 only page
From: |
Jan-Henrik Haukeland |
Subject: |
Re: monitoring a return code 200 only page |
Date: |
Mon, 24 Sep 2012 14:10:26 +0200 |
On Sep 24, 2012, at 11:12 AM, Jean-Luc Bassereau <address@hidden> wrote:
> Hello,
>
> I'm trying to monitor a host that only delivers an empty web page with a 200
> return code (btw, it's only a healthcheck page of another application running
> on it).
> I'm not able to monitor it through monit with these settings :
>
>
> if failed URL http://myhost:9180/myapp
> then alert
>
>
> This check always appears as failed on the web page.
>
> Any advice on the settings I should try for this ?
The above test should work, just tested myself. Please make sure that there are
no redirects etc from the server. You can also run Monit in debug mode to see
the status code returned by the server: monit -Iv