This http check really something strange for me

look at that

curl -I https://www.secureteen.com/
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 22 Jun 2017 18:16:47 GMT
Content-Type: text/html; charset=UTF-8

But here is icinga2 service output

HTTP OK: HTTP/1.1 301 Moved Permanently - 386 bytes in 0.256 second
response time

Why?




On Thu, Jun 22, 2017 at 9:10 PM, Antony Stone <
antony.st...@icinga.open.source.it> wrote:

> On Thursday 22 June 2017 at 17:57:08, Umar Draz wrote:
>
> > Ok thanks for this dummy check.
> >
> > One more issue
> >
> > I have this url  https://www.umardraz.com/elab/
>
> So try putting that into your check:
>
> > here is my host.conf
> >
> > object Host "mysite" {
> >    check_command = "dummy"
> >   address = "umardraz.com"
> >   vars.http_vhosts["www.umardraz.com"] = {
> >     http_uri = "/elab"
>
>         http_url = "https://www.umardraz.com/elab/";
>
> >     http_ssl = "true"
> >   }
> > }
>
> Works for me.
>
>
> Antony.
>
> PS: Your server is still not responding to pings - you should fix that (as
> per
> Gerald's recommendation).
>
> --
> Perfection in design is achieved not when there is nothing left to add, but
> rather when there is nothing left to take away.
>
>  - Antoine de Saint-Exupery
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to