SVN: nagios-config/trunk/commands/check_smtp.cfg
glen
glen at pld-linux.org
Wed Sep 9 08:24:51 CEST 2009
Author: glen
Date: Wed Sep 9 08:24:51 2009
New Revision: 10547
Modified:
nagios-config/trunk/commands/check_smtp.cfg
Log:
- add service templates
Modified: nagios-config/trunk/commands/check_smtp.cfg
==============================================================================
--- nagios-config/trunk/commands/check_smtp.cfg (original)
+++ nagios-config/trunk/commands/check_smtp.cfg Wed Sep 9 08:24:51 2009
@@ -3,3 +3,50 @@
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
+}
More information about the pld-cvs-commit
mailing list