> On 21 Sep 2015, at 16:50, Ron Clark <[email protected]> wrote:
>
> All,
>
> I am trying to monitor a server that is an ssl/https server, that is running
> Splunk. Here is my conf file:
>
> object Host "server9" {
> address = "10.11.80.109"
> groups = [ "splunk-search-heads" ]
>
> check_command = "hostalive"
> check_command = “ssh"
That’s not correct - that way you’ll override your check_command to “ssh”. Is
that what you want for your host’s check command?
I’d rather define additional services, like “ssh” and “http”.
> }
>
> object CheckCommand "check_http” {
Why don’t you use the “http” CheckCommand provided already by the Icinga 2 ITL?
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/plugin-check-commands#plugin-check-command-http
There’s a sample configuration inside the conf.d/services.conf file already for
http. You’d probably want to add “vars.http_ssl = true” inside your service
object for “https” checks then.
Kind regards,
Michael
> import "plugin-check-command"
>
> command = [ PluginDir + "/check_http" ]
>
> arguments = {
> "-H" = "$http_vhost$"
> "-I" = "$http_address$"
> "-u" = "$http_uri$"
> "-p" = "$http_port$"
> "-S" = {
> set_if = "$http_ssl$"
> }
> "--sni" = {
> set_if = "$http_sni$"
> }
> "-a" = {
> value = "$http_auth_pair$"
> description = "Username:password on sites with basic authentication"
> }
> "--no-body" = {
> set_if = "$http_ignore_body$"
> }
> "-r" = "$http_expect_body_regex$"
> "-w" = "$http_warn_time$"
> "-c" = "$http_critical_time$"
> "-e" = "$http_expect$"
> }
>
> vars.http_address = "$address$"
> vars.http_ssl = true
> vars.http_sni = false
> }
>
>
>
> Ping and ssh are working, however this SSL part is not. Can anyone tell me if
> I am missing something in my config?
>
> Thank you in advance!
>
> Ron
>
>
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
--
Michael Friedrich, DI (FH)
Senior Developer
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]
** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users