Installation

AIX with yum

Document describes installation of LPAR2RRD server prerequisites on AIX where is yum available.

  • Install Apache and RRDTool:
    yum install httpd rrdtool rrdtool-perl
    
    Do not use rrdtool-1.7.0-4, it has a bug, use older or newer RRDTool versions.

  • Configure Apache:
    vi /opt/freeware/etc/httpd/conf/httpd.conf
    
    Enable CGI (it is hashed by default):
    <IfModule mpm_prefork_module>
            LoadModule cgi_module /opt/freeware/lib/httpd/modules/mod_cgi.so
    </IfModule>
    
    Place there LPAR2RRD cfg (it supposes that install home will be in /home/lpar2rrd/lpar2rrd):
    AddHandler cgi-script .sh
    
    #
    # LPAR2RRD
    #
    Alias /lpar2rrd  "/home/lpar2rrd/lpar2rrd/www/"
    <Directory "/home/lpar2rrd/lpar2rrd/www/">
        AllowOverride AuthConfig FileInfo
        Options Indexes FollowSymLinks
        Require all granted
    </Directory>
    # CGI-BIN
    ScriptAlias /lpar2rrd-cgi/ "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/"
    <Directory "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi">
        AllowOverride AuthConfig FileInfo
        SetHandler cgi-script
        Options ExecCGI FollowSymLinks
        Require all granted
    </Directory>
    
    Apache restart:
    /opt/freeware/sbin/apachectl restart
    
  • Create LPAR2RRD user under root:
    useradd -c "LPAR2RRD user" -m lpar2rrd
    chdev -l sys0 -a maxuproc=2000
    chuser  nofiles=32768 data=-1  stack=-1 rss=-1 lpar2rrd
    chuser  data=-1  stack=-1 rss=-1 apache
    
  • Install LPAR2RRD server:
    # su - lpar2rrd
    tar xvf lpar2rrd-7.XX.tar
    cd lpar2rrd-7.XX
    ./install.sh
    
  • Assure all Perl modules are in place
    cd /home/lpar2rrd/lpar2rrd
    . etc/lpar2rrd.cfg; $PERL bin/perl_modules_check.pl
    
    IF any problem then adjust following variables in etc/lpar2rd.cfg
    Especially PERL must be set to /usr/bin/perl
      PERL=/usr/bin/perl
      PERL5LIB=/home/lpar2rrd/lpar2rrd/bin:/home/lpar2rrd/lpar2rrd/vmware-lib:/home/lpar2rrd/lpar2rrd/lib:/opt/freeware/lib/perl5/5.30/vendor_perl:/opt/freeware/lib64/perl5/5.30/vendor_perl
    
  • Enable web authorisation
    # su - lpar2rrd
    umask 022
    cd /home/lpar2rrd/lpar2rrd
    cp -p html/.htaccess www
    cp -p html/.htaccess lpar2rrd-cgi
    
  • Go to Web UI, use admin/admin account, go to product configuration (settings icon), add HMCs, vCenters ...
    http://<your server IP/hostname>/lpar2rrd/