check_smtp socket timeout problem

Marc Powell marc at ena.com
Tue Feb 13 19:14:36 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Lane, Jim
> Sent: Tuesday, February 13, 2007 9:04 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_smtp socket timeout problem
> 
> Hi, All
> 

[chop]

> know this because I'm receiving messages from them on my laptop. The
> problem is that for 1 of the 3 the check_smtp plug-in times out. When
I
> try it from the command prompt I get messages as follows:
> 
> jlane at cbaobus-cbbwls2 /usr/local/nagios/libexec $ ./check_smtp -H
> 10.3.245.196 -v
> 220 cbaobus-cbbipl1 ESMTP Sendmail 8.13.6+Sun/8.13.6; Tue, 13 Feb 2007
> 09:55:31 -0500 (EST)
> CRITICAL - Socket timeout after 10 seconds

It's always best to run these kinds of tests as the nagios user. You may
see different behavior. When this is occurring, can you manually telnet
to the mail server, see the banner and issue a quit command that
terminates in under 10 seconds? I'm thinking that you have greet_pause
enabled or something else that's causing your connection to take longer
than 10 seconds from start to finish. Example --

> telnet 10.3.245.196 25
   220 cbaobus-cbbipl1 ESMTP Sendmail 8.13.6+Sun/8.13.6; Tue, 13 Feb
2007> 09:55:31 -0500 (EST)
   quit
>

Should take less than 10 seconds.

> When I check on the failing server I see syslog messages such as:
> 
> Feb 13 09:55:41 cbaobus-cbbipl1 sendmail[28731]: [ID 801593 mail.info]
> l1DEtVQd028731: cbaobus-cbbwls2 [10.3.245.204] did not issue
> MAIL/EXPN/VRFY/ETRN during connection to MTA-v4
> 
> every 5 minutes corresponding to Nagios running the check_smtp
plug-in.
> 
> Does anybody know what this message is trying to tell me?

It's telling you that 10.3.245.204 made a connection to the mail server
but didn't issue any mail sending commands. This is expected as the
check_smtp plugin as you've specified it only connects to the port looks
for the banner then quits. You can use the -C and -R options to chat
further with the mail server if you like.

--
Marc

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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