]> git.pld-linux.org Git - projects/nagios-config.git/commitdiff
- add service templates
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Sep 2009 06:24:51 +0000 (06:24 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Sep 2009 06:24:51 +0000 (06:24 +0000)
svn-id: @10547

commands/check_smtp.cfg

index f4a659f64006c6750929be016dd46cb4941e4c4a..efed32975af90d6425ca1df87c0f4135cc0f78ff 100644 (file)
@@ -3,3 +3,50 @@ define command {
        command_name    check_smtp
        command_line    $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$
 }
+
+define command {
+       command_name    check_smtps
+       command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -S -p 465 -e 220 $ARG1$
+}
+
+define command {
+       command_name    check_smtps.crt
+       command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p 465 -D 14
+}
+
+# SMTP
+define service {
+       use                     generic-service
+       name                    smtp
+       service_description     smtp
+       register                0
+
+       ; increase check interval to 5 minutes
+       normal_check_interval   5
+       ; increase retry to one minute
+       retry_check_interval    1
+
+       check_command           check_smtp
+}
+
+define service {
+       use                     smtp
+       name                    smtps
+       service_description     smtps
+       register                0
+
+       check_command           check_smtps
+}
+
+define service {
+       use                     smtp
+       name                    smtps.crt
+       service_description     smtps.crt
+       register                0
+
+       ; check every 12h is sufficent, notify daily
+       normal_check_interval   720
+       notification_interval   1440
+
+       check_command           check_smtps.crt
+}
This page took 0.120048 seconds and 4 git commands to generate.