diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-10-31 18:56:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-10-31 19:06:41 +0000 |
commit | 64d71fe11054a6dec434cc8d9eb316fdca99d28d (patch) | |
tree | 2bf7e237c7432b50c2431dd736dbf4eccdc965b4 | |
parent | Provide a hostname to check with http (diff) | |
download | config-64d71fe11054a6dec434cc8d9eb316fdca99d28d.tar.bz2 config-64d71fe11054a6dec434cc8d9eb316fdca99d28d.tar.xz config-64d71fe11054a6dec434cc8d9eb316fdca99d28d.zip |
Do a proper HTTPS check, not just a TCP connect
-rw-r--r-- | nagios/objects/cluster.cfg | 2 | ||||
-rw-r--r-- | nagios/objects/commands.cfg | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg index 8472cd8..0987114 100644 --- a/nagios/objects/cluster.cfg +++ b/nagios/objects/cluster.cfg @@ -350,7 +350,7 @@ define service { use local-service host_name virtualip service_description HTTPS - check_command check_tcp!443 + check_command check_https } define service { use local-service diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg index 6569dc7..7c9f215 100644 --- a/nagios/objects/commands.cfg +++ b/nagios/objects/commands.cfg @@ -100,6 +100,11 @@ define command { } define command { + command_name check_https + command_line $USER1$/check_http -I $HOSTADDRESS$ -H sys.randomdan.homeip.net --sni -S 2+ $ARG1$ +} + +define command { command_name check_ssh command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$ } |