Problem Checking Mail
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Problem Checking Mail
I am getting the following error:
EMAIL DELIVERY CRITICAL - smtp failed: SMTP SEND CRITICAL - Invalid response for STARTTLS: 500 5.5.1 Unknown or unimplemented command at /usr/local/nagios/libexec/check_smtp_send line 110
i looked at line 110, was not sure what to delete.
Ideas?
EMAIL DELIVERY CRITICAL - smtp failed: SMTP SEND CRITICAL - Invalid response for STARTTLS: 500 5.5.1 Unknown or unimplemented command at /usr/local/nagios/libexec/check_smtp_send line 110
i looked at line 110, was not sure what to delete.
Ideas?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Problem Checking Mail
Could you please post for us what you have on line 110?
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem Checking Mail
110 $smtp = Net::SMTP::TLS->new($smtp_server, Timeout=>$timeout, Port=>$smtp_port, User=>$username, Password=>$password);
111 }
111 }
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem Checking Mail
Still cannot get this to work.
Re: Problem Checking Mail
You might be missing some perl libraries.
A yum search pulled up these packages for perl SMTP:
perl-Net-SMPP.noarch : Pure Perl implementation of SMPP 3.4 over TCP
perl-Net-SMTP-Multipart.noarch : SMTP Multipart messages
perl-Net-SMTP-SSL.noarch : SSL support for Net::SMTP
perl-Net-SMTP-TLS.noarch : SMTP client supporting TLS and AUTH
perl-Net-SMTP_auth.noarch : SMTP_AUTH wrapper for Net::SMTP
perl-Net-SNMP.noarch : Net-SNMP Perl module
Not sure which one you might need.
Code: Select all
yum list installed | grep perl-NetA yum search pulled up these packages for perl SMTP:
perl-Net-SMPP.noarch : Pure Perl implementation of SMPP 3.4 over TCP
perl-Net-SMTP-Multipart.noarch : SMTP Multipart messages
perl-Net-SMTP-SSL.noarch : SSL support for Net::SMTP
perl-Net-SMTP-TLS.noarch : SMTP client supporting TLS and AUTH
perl-Net-SMTP_auth.noarch : SMTP_AUTH wrapper for Net::SMTP
perl-Net-SNMP.noarch : Net-SNMP Perl module
Not sure which one you might need.
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem Checking Mail
I get the following:
[email protected]'s password:
Last login: Mon Sep 10 14:04:20 2012 from whro-ron-w7.whro.local
[root@nagios ~]# yum list installed | grep perl-Net
perl-Net-DNS.i686 0.65-4.el6 @base
perl-Net-LibIDN.i686 0.12-3.el6 @base
perl-Net-SMTP-TLS.noarch 0.12-1.el6.rf @rpmforge
perl-Net-SNMP.noarch 5.2.0-4.el6 @epel
perl-Net-SSLeay.i686 1.35-9.el6 @base
[email protected]'s password:
Last login: Mon Sep 10 14:04:20 2012 from whro-ron-w7.whro.local
[root@nagios ~]# yum list installed | grep perl-Net
perl-Net-DNS.i686 0.65-4.el6 @base
perl-Net-LibIDN.i686 0.12-3.el6 @base
perl-Net-SMTP-TLS.noarch 0.12-1.el6.rf @rpmforge
perl-Net-SNMP.noarch 5.2.0-4.el6 @epel
perl-Net-SSLeay.i686 1.35-9.el6 @base
Re: Problem Checking Mail
Just for fun lets try installing one supporting TLS, since the error seems to point to a problem with that:
Does that plugin have any hints in the help output as to what perl modules it needs?
Code: Select all
yum install -y perl-Net-SMTP-TLS-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem Checking Mail
Setting up Install Process
Package perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch already installed and latest version
Nothing to do
Package perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch already installed and latest version
Nothing to do
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Problem Checking Mail
Are you sure your smtp server uses TLS?
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem Checking Mail
It does not, i put a che k in the. O. That sYs not to use tsl or ssl