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