Page 1 of 1

check_smtp_delivery returns (null)

Posted: Wed Dec 05, 2012 10:06 am
by mitch2k
Hi,

I tried setting up check_smtp_delivery, but it always goes into warning state, with only "(null)" as info

Code: Select all

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: Email Delivery
Host: xx
Address: xx
State: WARNING
Info:
(null)
Date/Time: 2012-12-05 01:27:02
Any help how I could troubleshoot this? I'm pretty sure that port/login data etc are correct.

Re: check_smtp_delivery returns (null)

Posted: Wed Dec 05, 2012 12:29 pm
by mguthrie
I'm betting that you're missing some required perl modules for that check. That plugin set requires the following modules:

Net::SMTP_auth
Net::SMTP::TLS
Mail::IMAPClient
IO::Socket::SSL

Can you run:

Code: Select all

yum list installed | grep perl
And see if you're missing any of those?

Re: check_smtp_delivery returns (null)

Posted: Thu Dec 06, 2012 1:53 pm
by mitch2k
Hi,

Code: Select all

perl.x86_64            4:5.10.1-127.el6 @base
perl-Authen-SASL.noarch
perl-CPAN.x86_64       1.9402-127.el6   @base
perl-Class-Singleton.noarch
perl-Compress-Raw-Zlib.x86_64
perl-Compress-Zlib.x86_64
perl-Config-IniFiles.noarch
perl-Crypt-DES.x86_64  2.05-9.el6       @epel
perl-Crypt-SSLeay.x86_64
perl-DBD-MySQL.x86_64  4.013-3.el6      @base
perl-DBI.x86_64        1.609-4.el6      @base
perl-DateTime.x86_64   1:0.5300-1.el6   @base
perl-Digest-HMAC.noarch
perl-Digest-SHA.x86_64 1:5.47-127.el6   @base
perl-Digest-SHA1.x86_64
perl-Error.noarch      1:0.17015-4.el6  @base
perl-ExtUtils-MakeMaker.x86_64
perl-ExtUtils-ParseXS.x86_64
perl-GSSAPI.x86_64     0.26-5.el6       @base
perl-HTML-Parser.x86_64
perl-HTML-Tagset.noarch
perl-IO-Compress-Base.x86_64
perl-IO-Compress-Zlib.x86_64
perl-IO-Socket-INET6.noarch
perl-IO-Socket-SSL.noarch
perl-IO-stringy.noarch 2.110-10.1.el6   @base
perl-List-MoreUtils.x86_64
perl-Mail-IMAPClient.noarch
perl-Mail-POP3Client.noarch
perl-Module-Pluggable.x86_64
perl-Net-DNS.x86_64    0.65-4.el6       @base
perl-Net-LibIDN.x86_64 0.12-3.el6       @base
perl-Net-SMTP-TLS.noarch
perl-Net-SMTP_auth.noarch
perl-Net-SNMP.noarch   5.2.0-4.el6      @epel
perl-Net-SSLeay.x86_64 1.35-9.el6       @base
perl-Params-Validate.x86_64
perl-Parse-RecDescent.noarch
perl-Pod-Escapes.x86_64
perl-Pod-Simple.x86_64 1:3.13-127.el6   @base
perl-SNMP_Session.noarch
perl-Socket6.x86_64    0.23-3.el6       @base
perl-Test-Harness.x86_64
perl-Time-HiRes.x86_64 4:1.9721-127.el6 @base
perl-URI.noarch        1.40-2.el6       @base
perl-XML-Parser.x86_64 2.36-7.el6       @base
perl-XML-Simple.noarch 2.18-6.el6       @base
perl-devel.x86_64      4:5.10.1-127.el6 @base
perl-libs.x86_64       4:5.10.1-127.el6 @base
perl-libwww-perl.noarch
perl-version.x86_64    3:0.77-127.el6   @base
rrdtool-perl.x86_64    1.3.8-6.el6      @base
I was missing the Net::SMTP_auth module, but i've installed it. But nothing changes. I still get the (null) result.

Re: check_smtp_delivery returns (null)

Posted: Thu Dec 06, 2012 5:32 pm
by lmiltchev
The code appears to be out of date. We will be doing some mods and will post a solution as soon as we can.