Morris, Patrick wrote:
Hello, Nagios Users,
I need to check_smtp without a PING check, but I can't get
nagios to do this. One of my customers insists on turning off
ICMP, which I actually have no problem with, except this one.
Here's the operative definitions I'm attempting:
# 'relay1' host definition
define host{
use generic-host
host_group mail-servers
alias mail-servers
check_command check_tcp!25
contact_groups admins
max_check_attempts 10
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
# 'mail servers' host group definition
define hostgroup{
hostgroup_name mail-servers
alias mail-servers
members relay1
}
# mail-servers
define service{
use generic-service
hostgroup_name mail-servers
service_description SMTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options w,c,r
check_command check_mailserver
}
# 'check_mailserver' command definition
define command{
command_name check_mailserver
command_line $USER1$/check_smtp -t 45 -p 25 -C "MAIL FROM:
[EMAIL PROTECTED]" -R "250" -C "RCPT TO:
[EMAIL PROTECTED]" -R "250" -H $HOSTADDRESS$ }
...and the problem you're having?
Oh well I need to check_smtp without pinging but it still does ping,
even with a check_command of something other than check_ping. I still
get notified due to the Service PING check: CRITICAL - Plugin timed out
after 10 seconds.
CP
--
Chris Paul
Sentinare Messaging Solutions
106 Maywood Drive, Boulder Creek, CA 95006
web: http://www.sentinare.com
phone: +1 (877) 727-9786
begin:vcard
fn:Chris Paul
n:Paul;Chris
org:Sentinare Messaging Solutions, Inc.
adr;dom:;;106 Maywood Drive;Boulder Creek;CA;95006
email;internet:[EMAIL PROTECTED]
tel;work:(877) 727-9786
x-mozilla-html:TRUE
version:2.1
end:vcard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null