Free Storage, SAN and LAN Performance and Capacity Monitoring

Perl HTTPS support

If you get errors like
  • Missing LWP::Protocol::https
  • Connection reset by peer
  • 500 SSL negotiation failed
then follow this docu

AIX

  • These 2 packages are mandatory!
    # rpm -qa | egrep -i "Crypt-SSLeay|Net_SSLeay"
      perl-Crypt-SSLeay-0.57-2
      perl-Net_SSLeay.pm-1.55-3
    
  • Assure you use this PERL setting in /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg
    PERL=/opt/freeware/bin/perl
    
  • Assure that /home/stor2rrd/stor2rrd/lib is on the first position in PERL5LIB path:
    $ grep PERL5LIB /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg | head -1
     PERL5LIB=/home/stor2rrd/stor2rrd/lib:/opt/freeware/lib/perl/5.16.3:....
    
  • Verify it, it must show 6.06 version.
    # su - stor2rrd (lpar2rrd if you are on the appliance)
    . /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg
    $PERL -MLWP -e 'print "LWP Version: $LWP::VERSION\n"'
      LWP Version: 6.06
    

Linux

  • Install
    yum:
    # yum install perl-LWP-Protocol-https perl-Mozilla-CA perl-Crypt-SSLeay 
    
    CPAN:
    # cpan -f install LWP::Protocol:https
    
  • Check:
    # rpm -qa | egrep "perl-LWP-Protocol-https|perl-Mozilla-CA|perl-Crypt-SSLeay"
      perl-Mozilla-CA-20130114-5.el7.noarch
      perl-LWP-Protocol-https-6.04-4.el7.noarch
      perl-Crypt-SSLeay-0.64-5.el7.x86_64
    
  • RHEL6/CentOS6:
    The perl-LWP-Protocol-https package is only provided in RHEL 7, but the same name module /usr/share/perl5/vendor_perl/LWP/Protocol/https.pm is provided by perl-libwww-perl package which is available in RHEL 6
    # yum install perl-libwww-perl
    

Solaris

follow this to get it working

After installation on any platform this test should not provide any output:
cd /home/stor2rrd/stor2rrd
. etc/stor2rrd.cfg
$PERL bin/perl_modules_check.pl