Re: [icinga-users] https url monitoring failed

2017-06-26 Thread Gerald Vogt
On 26.06.17 21:33, Stephane Bortzmeyer wrote: On Thu, Jun 22, 2017 at 10:02:32PM +0200, Gerald Vogt wrote a message of 121 lines which said: set the vhost and uri. And also enable SNI. Many HTTP servers these days do not serve the expected vhost without SNI: Well, I don't know about "m

Re: [icinga-users] https url monitoring failed

2017-06-26 Thread Stephane Bortzmeyer
On Thu, Jun 22, 2017 at 10:02:32PM +0200, Gerald Vogt wrote a message of 121 lines which said: > set the vhost and uri. And also enable SNI. Many HTTP servers these days do not serve the expected vhost without SNI: http_sni = true > This will connect to 1.2.3.4 on port 443 and do > > GET /

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
Hi Gerald and Antony Thanks this was really helpfull :) BR Umar On Fri, Jun 23, 2017 at 1:02 AM, Gerald Vogt wrote: > Again, please don't use HTML mails. Your "curl -I" looks very much like > "curl -l" if you use HTML... > > On 22.06.17 20:23, Umar Draz wrote: > >> This http check really some

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Gerald Vogt
Again, please don't use HTML mails. Your "curl -I" looks very much like "curl -l" if you use HTML... On 22.06.17 20:23, Umar Draz wrote: 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:

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
On Thursday 22 June 2017 at 20:23:28, Umar Draz wrote: > 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 icin

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
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.2

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
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 = "um

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
Ok thanks for this dummy check. One more issue I have this url https://www.umardraz.com/elab/ here is my host.conf object Host "mysite" { check_command = "dummy" address = "umardraz.com" vars.http_vhosts["www.umardraz.com"] = { http_uri = "/elab" http_ssl = "true" } } Now I a

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Gerald Vogt
On 22.06.17 16:58, Umar Draz wrote: Hi Gerald This worked object Host "mysite" { import "generic-host" address = "173.212.216.101" vars.http_vhosts["www.umardraz.com "] = { http_uri = "/" http_ssl = "true" } } But, this is also a failed solution

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
On Thursday 22 June 2017 at 16:58:16, Umar Draz wrote: > Hi Gerald > > This worked > > object Host "mysite" { > import "generic-host" > address = "173.212.216.101" > vars.http_vhosts["www.umardraz.com"] = { > http_uri = "/" > http_ssl = "true" > } > } > > But, this is also a fai

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
Hi Gerald This worked object Host "mysite" { import "generic-host" address = "173.212.216.101" vars.http_vhosts["www.umardraz.com"] = { http_uri = "/" http_ssl = "true" } } But, this is also a failed solution I have simply disabled ping on my server. now host again marked as down

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
On Thursday 22 June 2017 at 15:36:02, Umar Draz wrote: > Please check all screenshots here > > https://www.umardraz.com/screen1.png > https://www.umardraz.com/screen2.png Copy and paste would have been sufficient :) > https://www.umardraz.com/hosts-web.png This is not the "http" service check

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Gerald Vogt
Please copy the text. Don't use screen shots. I cannot copy text segments from screenshots... And please don't use HTML either, because seriously, it's hard to copy a correct configuration from the HTMLized segments... On 22.06.17 15:36, Umar Draz wrote: Please check all screenshots here htt

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
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) { > >

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
Please check all screenshots here https://www.umardraz.com/screen1.png https://www.umardraz.com/screen2.png https://www.umardraz.com/hosts-web.png https://www.umardraz.com/service.png BR On Thu, Jun 22, 2017 at 5:59 PM, Antony Stone < antony.st...@icinga.open.source.it> wrote: > On Thursday 22

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Gerald Vogt
On 22.06.17 13:50, Umar Draz wrote: I think something bad with Icinga look at that my configuration for https monitor object Host "mysite " { address = "umardraz.com " check_command = "http" vars.http_vhosts["wwwumardraz.com:443

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
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 Jun

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
ndering > > > if this is something bizarre introduced by your mail client when > posting > > > to the list, or do you really have that in your Icinga config? > > > > > > > > > Antony. > > > > > > > On Thu, Jun 22, 2017 at 4:56 PM,

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
ave that in your Icinga config? > > > > > > Antony. > > > > > On Thu, Jun 22, 2017 at 4:56 PM, wrote: > > > > Please try http_ssl = true instead of "1" and test it again. > > > > > > > > BR, > > > > Marcel

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
ent when posting to > the > list, or do you really have that in you Icinga config? > > > Antony. > > > On Thu, Jun 22, 2017 at 4:56 PM, wrote: > > > Please try http_ssl = true instead of "1" and test it again. > > > > > > BR, > >

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
it again. > > > > BR, > > Marcel > > *Gesendet:* Donnerstag, 22. Juni 2017 um 13:50 Uhr > > *Von:* "Umar Draz" > > *An:* "Icinga User's Corner" > > *Betreff:* Re: [icinga-users] https url monitoring failed > > Hi > >

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
:* "Umar Draz" > *An:* "Icinga User's Corner" > *Betreff:* Re: [icinga-users] https url monitoring failed > Hi > > I think something bad with Icinga look at that my configuration for https > monitor > > object Host "mysite <http://mysite.

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread mweinberg-os
  Please try http_ssl = true instead of "1" and test it again.   BR, Marcel Gesendet: Donnerstag, 22. Juni 2017 um 13:50 Uhr Von: "Umar Draz" An: "Icinga User's Corner" Betreff: Re: [icinga-users] https url monitoring failed Hi    I think someth

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
Hi I think something bad with Icinga look at that my configuration for https monitor object Host "mysite " { address = "umardraz.com " check_command = "http" vars.http_vhosts["wwwumardraz.com:443 "] = { http_u

Re: [icinga-users] https url monitoring failed

2017-06-21 Thread Umar Draz
Hi Gerald Thanks for the help. Regards On Wed, Jun 21, 2017 at 9:43 AM, Gerald Vogt wrote: > On 21.06.17 03:42, Umar Draz wrote: > >> Hello >> > > Please don't use html to post on public lists. It can get really ugly... > Use text mode only. > > I want to monitor my website which is basically

Re: [icinga-users] https url monitoring failed

2017-06-20 Thread Gerald Vogt
On 21.06.17 03:42, Umar Draz wrote: Hello Please don't use html to post on public lists. It can get really ugly... Use text mode only. I want to monitor my website which is basically running with only https I have tried this object Host "mysite.com " { address = "m