[project @ peter@palfrader.org-20080411134040-es44n29sr9jx6pcq]
authorPeter Palfrader <peter@palfrader.org>
Fri, 11 Apr 2008 13:40:40 +0000 (09:40 -0400)
committerPeter Palfrader <peter@palfrader.org>
Fri, 11 Apr 2008 13:40:40 +0000 (09:40 -0400)
and use new ports

checkcommands.cfg
nagios-master.cfg

index 2edbeb5..33d6b89 100644 (file)
@@ -20,3 +20,7 @@ define command{
        command_name    dsa_check_smtp
        command_line    /usr/lib/nagios/plugins/check_smtp -t 40 -H $HOSTADDRESS$
 }
+define command{
+       command_name    dsa_check_smtp_port
+       command_line    /usr/lib/nagios/plugins/check_smtp -t 40 -H $HOSTADDRESS$ -p $ARG1$
+}
index 169ff2d..6ababc2 100644 (file)
@@ -876,6 +876,17 @@ services:
     name: network service - smtp
     check: dsa_check_smtp
     hostgroups: postfix-hosts
+    excludehosts: verdi, kassia, allegri
+    depends: process - postfix - master
+  -
+    name: network service - smtp - port 2025
+    check: dsa_check_smtp_port!2025
+    hosts: verdi, kassia
+    depends: process - postfix - master
+  -
+    name: network service - smtp - port 8080
+    check: dsa_check_smtp_port!8080
+    hosts: allegri
     depends: process - postfix - master
   -
     name: network service - smtp