Check_smtp

Dan Stromberg strombrg at dcs.nac.uci.edu
Mon Jan 3 18:55:59 CET 2005


strace/truss/par/trace is your friend.  If you don't understand the
output from one of these programs when you run it against the plugin,
while it times out, then you might want to cut and paste the output into
a message to this list.

On Thu, 2004-12-23 at 17:02 +1100, Lydia Leung wrote:
> Thanks for the reply.
> 
> I do get the banner immediately using telnet. I did think it might be
> the revise IP look up. But when I dig that IP from Nagios box, I did get
> the right host name.
> 
> Is there any way to change the plug-in?
> 
> Cheers...
> 
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
> nagios at mm.quex.org
> Sent: Thursday, 23 December 2004 4:26 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Check_smtp
> 
> On Thu, Dec 23, 2004 at 03:25:29PM +1100, Lydia Leung wrote:
> >  
> > I am using Check_smtp to check mail service.
> >  
> > Anyone knows how check_smtp works?
> >  
> > When I use the internal IP address, I get 0 sec response, which 
> > returns a critical warning in the web.
> > ./check_smtp -H 192.168.250.10 -t 4
> > SMTP OK - 0 second response time
> > Socket timeout after 4 seconds
> >  
> > If I use telnet 192.168.250.10 25, I can see the smtp service is
> ready.
> > And I can ping 192.168.250.10 without problem.
> 
> I don't know how the plugin works, but the output looks like it's
> self-contradictory - it's okay and then it prints that it has timed
> out?!
> 
> The only thing I can think is that it's connecting immediately, and then
> not getting the greeting from the server within the timeout period.
> Either the server's real busy, or it's trying to do a lookup of the
> connected IP address (probably 192.168.250.10), and it takes a long time
> for it to decide it can't find a hostname for it.
> 
> I tested this with netcat and if gets a connection but no welcome
> banner, it will print the "Socket timeout after 4 seconds" message, but
> it shouldn't print the "SMTP OK" before it.
> 
> When you telnet to the internal address, does it respond with the SMTP
> banner immediately?
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide Read honest & candid
> reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050103/7795be42/attachment.sig>


More information about the Users mailing list