Check_smtp

nagios at mm.quex.org nagios at mm.quex.org
Thu Dec 23 06:26:21 CET 2004


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





More information about the Users mailing list