Did you find anything wrong with my configuration?

Br

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

> On Thursday 22 June 2017 at 14:52:08, Umar Draz wrote:
>
> > Here is
> >
> > apply Service for (http_vhost => config in host.vars.http_vhosts) {
> >    import "generic-service"
> >    check_command = "http"
> >    vars += config
> > }
>
> > On Thu, Jun 22, 2017 at 5:48 PM, Antony Stone wrote:
> > > On Thursday 22 June 2017 at 14:40:15, Umar Draz wrote:
> > > > HI Antony
> > > >
> > > > Here is what I have conf file
> > > >
> > > > object Host "mysite" {
> > > >
> > > >    address = "173.212.216.101"
> > > >    check_command = "http"
> > > >    vars.http_vhosts["www.umardraz.com"] = {
> > > >
> > > >       http_uri = "/"
> > > >       http_ssl = "true"
> > > >
> > > >    }
> > > >
> > > > }
> > > >
> > > > I hope this time google will not do anything wrong with format
> > >
> > > Okay; that looks a lot better :)
> > >
> > > Can you share the "apply Service" definition as well please?
>
> Well, I've just put that Host definition into my own Icinga2 config, and
> it's
> working fine (I already have the Service definition; it's standard).
>
> I've confirmed that the server is accessible on port 443 from my Icinga
> monitor, and is not accessible on port 80:
>
> $ telnet 173.212.216.101 80
> Trying 173.212.216.101...
> telnet: Unable to connect to remote host: Connection refused
>
> $ telnet 173.212.216.101 443
> Trying 173.212.216.101...
> Connected to 173.212.216.101.
> Escape character is '^]'.
>
> I get http://al.dehy.de/Pics/UmarDraz.png as a check result.
>
>
> If it's still not working for you, what's the output from
> "icinga2 object list --name mysite" ?
>
>
> Antony.
>
>
> --
> Late in 1972 President Richard Nixon announced that the rate of increase of
> inflation was decreasing.   This was the first time a sitting president
> used a
> third derivative to advance his case for re-election.
>
>  - Hugo Rossi, Notices of the American Mathematical Society
>
>                                                    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