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
Here is apply Service for (http_vhost => config in host.vars.http_vhosts) { import "generic-service" check_command = "http" vars += config } BR On Thu, Jun 22, 2017 at 5:48 PM, Antony Stone < antony.st...@icinga.open.source.it> wrote: > On Thursday 22 June 2017 at 14:40:15, Umar Draz w

Re: [icinga-users] https url monitoring failed

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

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
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 BR On Thu, Jun

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Antony Stone
On Thursday 22 June 2017 at 14:20:59, Umar Draz wrote: > No Luck, > > I think there is something else that is not documented or missing. Is the way your Host definition is quoted below *exactly* what you have on your system? I'm very puzzled by the entries of "http://mysite.com/"; and I'm wond

Re: [icinga-users] https url monitoring failed

2017-06-22 Thread Umar Draz
No Luck, I think there is something else that is not documented or missing. Br On Thu, Jun 22, 2017 at 4:56 PM, wrote: > > 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 Us

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 something bad with Icinga look at that my configu

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