disabled ping and check_smtp: nagios won't not ping
Chris Paul
chris.paul at sentinare.com
Thu Aug 3 04:02:58 CEST 2006
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:
test at sentinare.com" -R "250" -C "RCPT TO: chris.paul at sentinare.com" -R
"250" -H $HOSTADDRESS$
}
CP
--
Chris Paul
Sentinare Messaging Solutions
106 Maywood Drive, Boulder Creek, CA 95006
web: http://www.sentinare.com
phone: +1 (877) 727-9786
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chris.paul.vcf
Type: text/x-vcard
Size: 237 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060802/14ec2025/attachment.vcf>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list