Hi Gerald and Antony Thanks this was really helpfull :)
BR Umar On Fri, Jun 23, 2017 at 1:02 AM, Gerald Vogt <v...@spamcop.net> 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 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 >> > > 1. You have to post the config to verify what you have. > > Why? >> >> >> >> >> On Thu, Jun 22, 2017 at 9:10 PM, Antony Stone < >> antony.st...@icinga.open.source.it <mailto:antony.st...@icinga.op >> en.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 <http://umardraz.com>" >> > vars.http_vhosts["www.umardraz.com <http://www.umardraz.com>"] = >> { >> > http_uri = "/elab" >> >> http_url = "https://www.umardraz.com/elab/ >> <https://www.umardraz.com/elab/>" >> >> > http_ssl = "true" >> > } >> > } >> > > I don't see http_url in plugin definition. > > I would always use the IP address for the address and set the vhost and > uri. > > object Host "mysite" { > check_commmand = "dummy" > address = "1.2.3.4" > vars.http_vhost["http-443"] = { > http_uri = "/my/uri/to/test.html" > http_vhost = "www.example.com" > http_ssl = "true" > } > } > > This will connect to 1.2.3.4 on port 443 and do > > GET /my/uri/to/test.html HTTP/1.1 > Host: www.example.com > > And should get you the same as > > curl -v https://www.example.com/my/uri/to/test.html > > -Gerald > > > >> 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 <mailto:icinga-users@lists.icinga.org> >> https://lists.icinga.org/mailman/listinfo/icinga-users >> <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 >> >> > _______________________________________________ > 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