<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm having problems with the check_smtp
command.</FONT></DIV>
<DIV><FONT face=Arial size=2>I only get 'CRITICAL' status when checking smtp on
a server, but status information is '<FONT face="Times New Roman" size=3>SMTP OK
- 0 second response time '.</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>My checkcommands.cfg:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># 'check_smtp' command definition<BR>define
command{<BR>
command_name
check_smtp<BR>
command_line $USER1$/check_smtp -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and service.cfg:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># Service definition<BR>define
service{<BR>
use
generic-service ; Name of
service template to use</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
host_name
notes-web<BR>
service_description SMTP<BR>
is_volatile
0<BR>
check_period
24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 3<BR>
retry_check_interval 1<BR>
contact_groups notes-admins<BR>
notification_interval 120<BR>
notification_period
</FONT><FONT face=Arial
size=2>24x7<BR>
notification_options w,u,c,r<BR>
check_command check_smtp!60!100<BR>
}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is there something wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have checked smtp without nagios. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>./check_smtp -H 217.110.232.10 -w 60 -c 100
-v<BR>SMTP OK - 0 sec. response time, 220 ESMTP Service (Lotus Domino Release
5.0.11) ready at Wed, 11 Sep 2002 23:02:47 +0200<BR>Socket timeout after 10
seconds</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why timeout?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for help!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Nicole</FONT></DIV></BODY></HTML>