Problem Checking Mail

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Problem Checking Mail

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problem Checking Mail

Post by slansing »

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

Post by benningtonr »

110 $smtp = Net::SMTP::TLS->new($smtp_server, Timeout=>$timeout, Port=>$smtp_port, User=>$username, Password=>$password);
111 }
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem Checking Mail

Post by benningtonr »

Still cannot get this to work.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem Checking Mail

Post 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.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem Checking Mail

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem Checking Mail

Post by mguthrie »

Just for fun lets try installing one supporting TLS, since the error seems to point to a problem with that:

Code: Select all

yum install -y perl-Net-SMTP-TLS
Does that plugin have any hints in the help output as to what perl modules it needs?
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem Checking Mail

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem Checking Mail

Post by scottwilkerson »

Are you sure your smtp server uses TLS?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem Checking Mail

Post by benningtonr »

It does not, i put a che k in the. O. That sYs not to use tsl or ssl
Locked