From 1dd1b851ae5287dba25ab9afdaa7349ccfd4255d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 11 Apr 2008 09:40:40 -0400 Subject: [PATCH] [project @ peter@palfrader.org-20080411134040-es44n29sr9jx6pcq] and use new ports --- checkcommands.cfg | 4 ++++ nagios-master.cfg | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/checkcommands.cfg b/checkcommands.cfg index 2edbeb5..33d6b89 100644 --- a/checkcommands.cfg +++ b/checkcommands.cfg @@ -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$ +} diff --git a/nagios-master.cfg b/nagios-master.cfg index 169ff2d..6ababc2 100644 --- a/nagios-master.cfg +++ b/nagios-master.cfg @@ -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 -- 2.20.1