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$
+}
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