From d12fed92299c277e2d8d09135a2c457d76d18fbe Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Thu, 26 Jul 2012 01:17:28 -0400 Subject: [PATCH] Monitor SSL on olinda --- conf.d/extra_commands.cfg | 6 ++++++ local.d/olinda.cfg | 21 +++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 conf.d/extra_commands.cfg diff --git a/conf.d/extra_commands.cfg b/conf.d/extra_commands.cfg new file mode 100644 index 0000000..99716f0 --- /dev/null +++ b/conf.d/extra_commands.cfg @@ -0,0 +1,6 @@ +# 'check_smtp_ssl' command definition +define command { + command_name check_smtp_ssl + command_line /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' -S -D 14 +} + diff --git a/local.d/olinda.cfg b/local.d/olinda.cfg index 04538ac..50bca0b 100644 --- a/local.d/olinda.cfg +++ b/local.d/olinda.cfg @@ -4,11 +4,28 @@ define host{ address 18.208.0.204 } +# SMTP is redundant with SMTP-SSL, since they use the same port +#define service { +# name olinda-smtp +# use adehnert-service +# service_description SMTP +# check_command check_smtp +# host_name olinda +#} + define service { - name olinda-smtp + name olinda-smtp-ssl use adehnert-service service_description SMTP - check_command check_smtp + check_command check_smtp_ssl + host_name olinda +} + +define service { + name olinda-https + use adehnert-service + service_description HTTPS + check_command check_https host_name olinda } -- 2.34.1