Page 1 of 2
Problem Checking Mail
Posted: Mon Sep 10, 2012 1:08 pm
by benningtonr
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?
Re: Problem Checking Mail
Posted: Mon Sep 10, 2012 2:20 pm
by slansing
Could you please post for us what you have on line 110?
Re: Problem Checking Mail
Posted: Mon Sep 10, 2012 2:33 pm
by benningtonr
110 $smtp = Net::SMTP::TLS->new($smtp_server, Timeout=>$timeout, Port=>$smtp_port, User=>$username, Password=>$password);
111 }
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 10:38 am
by benningtonr
Still cannot get this to work.
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 10:46 am
by mguthrie
You might be missing some perl libraries.
Code: Select all
yum list installed | grep perl-Net
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.
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 10:54 am
by benningtonr
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
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 11:02 am
by mguthrie
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?
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 11:04 am
by benningtonr
Setting up Install Process
Package perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch already installed and latest version
Nothing to do
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 3:13 pm
by scottwilkerson
Are you sure your smtp server uses TLS?
Re: Problem Checking Mail
Posted: Tue Sep 11, 2012 3:32 pm
by benningtonr
It does not, i put a che k in the. O. That sYs not to use tsl or ssl