Code: Select all
echo "OK - ${output} | ${perfdata} ]"Code: Select all
echo "OK - ${output} | ${perfdata}"Code: Select all
echo "OK - ${output} | ${perfdata} ]"Code: Select all
echo "OK - ${output} | ${perfdata}"Code: Select all
# Additionally if you want performance output then use '-f' option to get all
# the ports specified with '-p' or specify particular list of of ports for
# performance data with '-A' (this list can include names not found in '-p').
# Note that when reporting for in perfomance data instead of saying ">smtp'
# or "<smtp" the plugin will report it as 'smtp_out=' or 'smtp_in='.
#
# ============================= SETUP EXAMPLES ===============================
#
# The first example is for your server to check SMTP connections - warnings
# would be sent here fore more then 15 incoming connections or more then 10
# outgoing and critical alerts for more then 40 incoming or 20 outgoing
# ----
# define command {
# command_name check_smtp_connections
# command_line $USER1$/check_netstat.pl -L "SMTP Load" -H $HOSTADDRESS$ -C $ARG1$ -2 -p "<smtp,>smtp" -w $ARG2$ -c $ARG3$ -f -A "@"
# }
#
# define service{
# use std-service
# service_description SMTP Load
# hostgroups mailserv
# check_command check_smtp_connections!public!">15,>10"!">40,>20"
# }