Monitor SSL on olinda
authorAlex Dehnert <adehnert@mit.edu>
Thu, 26 Jul 2012 05:17:28 +0000 (01:17 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Thu, 26 Jul 2012 05:18:27 +0000 (01:18 -0400)
conf.d/extra_commands.cfg [new file with mode: 0644]
local.d/olinda.cfg

diff --git a/conf.d/extra_commands.cfg b/conf.d/extra_commands.cfg
new file mode 100644 (file)
index 0000000..99716f0
--- /dev/null
@@ -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
+}
+
index 04538ac803b31b578c9132cff5725349a9bdc41a..50bca0bb4166c6a3a7d008d29a22442717c6b799 100644 (file)
@@ -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
 }