Do a manual telnet on port 25 from the nagios server to the mail server in connect and see if you can connect.<br><br><div class="gmail_quote">On Jan 18, 2008 5:38 AM, Julie S. Lin <<a href="mailto:jlin@myvest.com">jlin@myvest.com
</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All<br><br>Sorry for the incomplete info, I do know better, really. Pls forgive.<br><br>Anyways, below is the result I get when I manually run check_smtp
<br>from my plugins directory. This is on a redhat es4 machine running 1.2<br>nagios<br>(yes, very outdated I know).<br><br>[root@xxx plugins]# ./check_smtp <a href="http://mail.xxx.com" target="_blank">mail.xxx.com</a><br>
Socket timeout after 10 seconds<br>[root@xxx plugins]# ./check_smtp <a href="http://mail.yyy.com" target="_blank">mail.yyy.com</a><br>SMTP OK - 0 second response time<br><br>* so check_smtp fails on one mail server but not the other
<br><a href="http://mail.xxx.com" target="_blank">mail.xxx.com</a> is behind the same firewall as the nagios server<br>but on a different network....<br><a href="http://mail.yyy.com" target="_blank">mail.yyy.com</a> is on another network outside of the firewall
<br>is there anything I should know about having nagios check_smtp server within<br>a firewall??<br><br>And of course, mail is working just fine.<br>> mail -v <a href="mailto:jlin@mail.xxx.com">jlin@mail.xxx.com</a><br>
Subject: foo<br>.<br>EOT<br>Null message body; hope that's ok<br>jlin@mail.xxx.com... Connecting to <a href="http://mail.xxx.com" target="_blank">mail.xxx.com</a>. via esmtp...<br>220 <a href="http://xxx.com" target="_blank">
xxx.com</a> ESMTP<br>>>> EHLO <a href="http://anywhere.com" target="_blank">anywhere.com</a><br><a href="http://250-xxx.com" target="_blank">250-xxx.com</a> Ok.<br>250-AUTH PLAIN LOGIN CRAM-MD5<br>250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS
<br>250-STARTTLS<br>250-XVERP=Courier<br>250-XEXDATA<br>250-XSECURITY=NONE,STARTTLS<br>250-PIPELINING<br>250-8BITMIME<br>250-SIZE<br>250 DSN<br>>>> STARTTLS<br>220 Ok<br>>>> EHLO <a href="http://anywhere.com" target="_blank">
anywhere.com</a><br><a href="http://250-xxx.com" target="_blank">250-xxx.com</a> Ok.<br>250-AUTH PLAIN LOGIN CRAM-MD5<br>250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS<br>250-XVERP=Courier<br>250-XEXDATA<br>250-XSECURITY=NONE,STARTTLS
<br>250-PIPELINING<br>250-8BITMIME<br>250-SIZE<br>250 DSN<br>>>> MAIL From:<<a href="mailto:jsl@anywhere.com">jsl@anywhere.com</a>> SIZE=48<br>250 Ok.<br>>>> RCPT To:<<a href="mailto:jlin@mail.xxx.com">
jlin@mail.xxx.com</a>><br>250 Ok.<br>>>> DATA<br>354 Ok.<br>>>> .<br>250 Ok. 47903A17.00003806<br>jlin@mail.xxx.com... Sent (Ok. 47903A17.00003806)<br>Closing connection to <a href="http://mail.xxx.com" target="_blank">
mail.xxx.com</a>.<br>>>> QUIT<br>221 Bye.<br><div class="Ih2E3d"><br>-----Original Message-----<br>From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br>
</div><div class="Ih2E3d">[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>] On Behalf Of Marc Powell<br>Sent: Thursday, January 17, 2008 7:33 PM<br>To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br></div><div><div></div><div class="Wj3C7c">Subject: Re: [Nagios-users] check_smtp issues<br><br><br><br>> -----Original Message-----<br>> From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-">nagios-users-</a><br>> <a href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Julie S. Lin<br>
> Sent: Thursday, January 17, 2008 6:36 PM<br>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>> Subject: [Nagios-users] check_smtp issues<br>><br>> Hi<br>
><br>> I just added a new mail server and am having trouble getting<br>check_smtp<br>> to check it properly. This mail server is on a different network than<br>> my nagios server<br>> HOWEVER, I can telnet to the standard ports ( 25 and 993 just fine)
<br>><br>> check_smtp to another mail server on yet another network works.<br><br><br>You should tell us what the problem is. Be very specific. We can't help<br>if we don't know and we aren't going to guess.
<br><br>--<br>Marc<br><br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting
<br>any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br><br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft
<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________
<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></div></div></blockquote></div><br><br clear="all">
<br>-- <br>Alex Dehaini<br>Developer<br>Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>