Re: [Nagios-users] check_smtp issues
Do a manual telnet on port 25 from the nagios server to the mail server in connect and see if you can connect. On Jan 18, 2008 5:38 AM, Julie S. Lin [EMAIL PROTECTED] wrote: Hi All Sorry for the incomplete info, I do know better, really. Pls forgive. Anyways, below is the result I get when I manually run check_smtp from my plugins directory. This is on a redhat es4 machine running 1.2 nagios (yes, very outdated I know). [EMAIL PROTECTED] plugins]# ./check_smtp mail.xxx.com Socket timeout after 10 seconds [EMAIL PROTECTED] plugins]# ./check_smtp mail.yyy.com SMTP OK - 0 second response time * so check_smtp fails on one mail server but not the other mail.xxx.com is behind the same firewall as the nagios server but on a different network mail.yyy.com is on another network outside of the firewall is there anything I should know about having nagios check_smtp server within a firewall?? And of course, mail is working just fine. mail -v [EMAIL PROTECTED] Subject: foo . EOT Null message body; hope that's ok [EMAIL PROTECTED] Connecting to mail.xxx.com. via esmtp... 220 xxx.com ESMTP EHLO anywhere.com 250-xxx.com Ok. 250-AUTH PLAIN LOGIN CRAM-MD5 250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS 250-STARTTLS 250-XVERP=Courier 250-XEXDATA 250-XSECURITY=NONE,STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 250 DSN STARTTLS 220 Ok EHLO anywhere.com 250-xxx.com Ok. 250-AUTH PLAIN LOGIN CRAM-MD5 250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS 250-XVERP=Courier 250-XEXDATA 250-XSECURITY=NONE,STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 250 DSN MAIL From:[EMAIL PROTECTED] SIZE=48 250 Ok. RCPT To:[EMAIL PROTECTED] 250 Ok. DATA 354 Ok. . 250 Ok. 47903A17.3806 [EMAIL PROTECTED] Sent (Ok. 47903A17.3806) Closing connection to mail.xxx.com. QUIT 221 Bye. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Thursday, January 17, 2008 7:33 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_smtp issues -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Julie S. Lin Sent: Thursday, January 17, 2008 6:36 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issues Hi I just added a new mail server and am having trouble getting check_smtp to check it properly. This mail server is on a different network than my nagios server HOWEVER, I can telnet to the standard ports ( 25 and 993 just fine) check_smtp to another mail server on yet another network works. You should tell us what the problem is. Be very specific. We can't help if we don't know and we aren't going to guess. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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 -- Alex Dehaini Developer Site - www.alexdehaini.com Email - [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issues
Hi All it turned out to be a simple firewall issue. the new mailserver was not allowed to respond to the nagios checks. what are the ports used by check_smtp ? i'm using whatever version of check_smtp came with the install of nagios 1.2 J Alex Dehaini wrote: Do a manual telnet on port 25 from the nagios server to the mail server in connect and see if you can connect. On Jan 18, 2008 5:38 AM, Julie S. Lin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi All Sorry for the incomplete info, I do know better, really. Pls forgive. Anyways, below is the result I get when I manually run check_smtp from my plugins directory. This is on a redhat es4 machine running 1.2 nagios (yes, very outdated I know). [EMAIL PROTECTED] plugins]# ./check_smtp mail.xxx.com http://mail.xxx.com Socket timeout after 10 seconds [EMAIL PROTECTED] plugins]# ./check_smtp mail.yyy.com http://mail.yyy.com SMTP OK - 0 second response time * so check_smtp fails on one mail server but not the other mail.xxx.com http://mail.xxx.com is behind the same firewall as the nagios server but on a different network mail.yyy.com http://mail.yyy.com is on another network outside of the firewall is there anything I should know about having nagios check_smtp server within a firewall?? And of course, mail is working just fine. mail -v [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Subject: foo . EOT Null message body; hope that's ok [EMAIL PROTECTED] Connecting to mail.xxx.com http://mail.xxx.com. via esmtp... 220 xxx.com http://xxx.com ESMTP EHLO anywhere.com http://anywhere.com 250-xxx.com http://250-xxx.com Ok. 250-AUTH PLAIN LOGIN CRAM-MD5 250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS 250-STARTTLS 250-XVERP=Courier 250-XEXDATA 250-XSECURITY=NONE,STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 250 DSN STARTTLS 220 Ok EHLO anywhere.com http://anywhere.com 250-xxx.com http://250-xxx.com Ok. 250-AUTH PLAIN LOGIN CRAM-MD5 250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS 250-XVERP=Courier 250-XEXDATA 250-XSECURITY=NONE,STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 250 DSN MAIL From:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] SIZE=48 250 Ok. RCPT To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 250 Ok. DATA 354 Ok. . 250 Ok. 47903A17.3806 [EMAIL PROTECTED] Sent (Ok. 47903A17.3806) Closing connection to mail.xxx.com http://mail.xxx.com. QUIT 221 Bye. -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of Marc Powell Sent: Thursday, January 17, 2008 7:33 PM To: nagios-users@lists.sourceforge.net mailto:nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_smtp issues -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:nagios-users- mailto:nagios-users- [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of Julie S. Lin Sent: Thursday, January 17, 2008 6:36 PM To: nagios-users@lists.sourceforge.net mailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issues Hi I just added a new mail server and am having trouble getting check_smtp to check it properly. This mail server is on a different network than my nagios server HOWEVER, I can telnet to the standard ports ( 25 and 993 just fine) check_smtp to another mail server on yet another network works. You should tell us what the problem is. Be very specific. We can't help if we don't know and we aren't going to guess. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto:Nagios-users@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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios
Re: [Nagios-users] check_smtp issues
On Jan 17, 2008, at 11:38 PM, Julie S. Lin wrote: Hi All Sorry for the incomplete info, I do know better, really. Pls forgive. Anyways, below is the result I get when I manually run check_smtp from my plugins directory. This is on a redhat es4 machine running 1.2 nagios (yes, very outdated I know). [EMAIL PROTECTED] plugins]# ./check_smtp mail.xxx.com Socket timeout after 10 seconds Try running with verbose output. You should also perform the test as the nagios user. -- check_smtp -H mail.xxx.com -v What version of the plugins are you using? There were a number of issues with check_smtp in old releases that have since been fixed. There was a problem similar to this with Exchange; it wouldn't QUIT properly or something like that. If you're using an older version and the verbose output above doesn't show anything interesting, try upgrading to the latest plugins or at least the latest check_smtp. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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
[Nagios-users] check_smtp issues
Hi I just added a new mail server and am having trouble getting check_smtp to check it properly. This mail server is on a different network than my nagios server HOWEVER, I can telnet to the standard ports ( 25 and 993 just fine) check_smtp to another mail server on yet another network works. J - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issues
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Julie S. Lin Sent: Thursday, January 17, 2008 6:36 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issues Hi I just added a new mail server and am having trouble getting check_smtp to check it properly. This mail server is on a different network than my nagios server HOWEVER, I can telnet to the standard ports ( 25 and 993 just fine) check_smtp to another mail server on yet another network works. You should tell us what the problem is. Be very specific. We can't help if we don't know and we aren't going to guess. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issues
Hi All Sorry for the incomplete info, I do know better, really. Pls forgive. Anyways, below is the result I get when I manually run check_smtp from my plugins directory. This is on a redhat es4 machine running 1.2 nagios (yes, very outdated I know). [EMAIL PROTECTED] plugins]# ./check_smtp mail.xxx.com Socket timeout after 10 seconds [EMAIL PROTECTED] plugins]# ./check_smtp mail.yyy.com SMTP OK - 0 second response time * so check_smtp fails on one mail server but not the other mail.xxx.com is behind the same firewall as the nagios server but on a different network mail.yyy.com is on another network outside of the firewall is there anything I should know about having nagios check_smtp server within a firewall?? And of course, mail is working just fine. mail -v [EMAIL PROTECTED] Subject: foo . EOT Null message body; hope that's ok [EMAIL PROTECTED] Connecting to mail.xxx.com. via esmtp... 220 xxx.com ESMTP EHLO anywhere.com 250-xxx.com Ok. 250-AUTH PLAIN LOGIN CRAM-MD5 250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS 250-STARTTLS 250-XVERP=Courier 250-XEXDATA 250-XSECURITY=NONE,STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 250 DSN STARTTLS 220 Ok EHLO anywhere.com 250-xxx.com Ok. 250-AUTH PLAIN LOGIN CRAM-MD5 250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS 250-XVERP=Courier 250-XEXDATA 250-XSECURITY=NONE,STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 250 DSN MAIL From:[EMAIL PROTECTED] SIZE=48 250 Ok. RCPT To:[EMAIL PROTECTED] 250 Ok. DATA 354 Ok. . 250 Ok. 47903A17.3806 [EMAIL PROTECTED] Sent (Ok. 47903A17.3806) Closing connection to mail.xxx.com. QUIT 221 Bye. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Thursday, January 17, 2008 7:33 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_smtp issues -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Julie S. Lin Sent: Thursday, January 17, 2008 6:36 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issues Hi I just added a new mail server and am having trouble getting check_smtp to check it properly. This mail server is on a different network than my nagios server HOWEVER, I can telnet to the standard ports ( 25 and 993 just fine) check_smtp to another mail server on yet another network works. You should tell us what the problem is. Be very specific. We can't help if we don't know and we aren't going to guess. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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