Thanks a lot Stephane, Appreciate your help!
I did default installation. I made below changes of my* services.conf*
*Client: Example1.*
object Host "example1" {
import "generic-host"
address = "example1.example.org"
vars.http_vhosts["https"] = {
http_vhost = "example1.example.org"
http_uri = "/"
http_string = "CK-12"
http_ssl = true
http_sni = true
http_ssl_force_tlsv1_or_higher = "1"
http_certificate = "8,4"
}
}
*After changes I restarted icinga2.*
icinga2 node update-config
/etc/init.d/icinga2 restart
I can see the changes in my icinga2 node
*# icinga2 node list*
Node 'qaflxweb1.ck12.org' (last seen: Thu May 4 11:08:36 2017)
* Host 'qaflxweb1'
* Service 'https'
* Service 'ping4'
* Host 'example1.example.org'
* Service 'apt'
* Service 'disk'
* Service 'disk /'
* Service 'http'
* Service 'icinga'
* Service 'load'
* Service 'ping4'
* Service 'ping6'
* Service 'procs'
* Service 'ssh'
* Service 'swap'
* Service 'users'
But not seeing anything on services of my icinga2 UI portal. please
suggest.
Thanks,
-Srinivas
On Wed, May 3, 2017 at 8:39 PM, Stephane Bortzmeyer <[email protected]>
wrote:
> On Wed, May 03, 2017 at 05:45:17PM +0530,
> Srinivasa Murthy <[email protected]> wrote
> a message of 55 lines which said:
>
> > Ex: I want to monitor www.google.com
>
> [By the way, this is a bad example: you must monitor only your own
> machines, or machines for which the owner gave you permission.]
>
> > How can I setup this monitoring thw icinga2?
>
> It depends how Icinga was installed but the default services.conf file
> includes a "apply" directive for HTTP servers. What it does is to add
> a check_http for every entry in the vars.http_vhosts array of each
> host. So, you just add such an entry:
>
> object Host "example" {
> import "generic-host"
>
> address = "www.example"
>
> vars.http_vhosts["https"] = {
> http_vhost = "www.example"
> http_uri = "/"
> http_string = "A string that appears in the home page"
> http_ssl = true
> http_sni = true
> http_ssl_force_tlsv1_or_higher = "1"
> http_certificate = "8,4"
> }
>
> }
>
> This will create a HTTP service check, with the parameters you
> indicate.
>
> Details in the documentation
> <https://docs.icinga.com/icinga2/latest/doc/module/
> icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/
> plugin-check-commands#plugin-check-command-http>
>
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users