vmware connect.pl issue

AIX V7
perl 5.10.1
I do have the vmware package installed referenced on the lpar2rrd install pages.

I've recently upgraded from 4.70 to 4.84 and am getting errors in the vmware area of the product. connect.pl shows:

root@nimax1001)/apps/lpar2rrd> vmware-lib/apps/connect.pl --version
Can't locate VMware/VIRuntime.pm in @INC (@INC contains: /apps/lpar2rrd/vmware-lib/apps/../:../lib /usr/opt/perl5/lib/5.10.1/aix-thread-multi /usr/opt/perl5/lib/5.10.1 /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.10.1 /usr/opt/perl5/lib/site_perl .) at vmware-lib/apps/connect.pl line 11.
BEGIN failed--compilation aborted at vmware-lib/apps/connect.pl line 11.
(root@nimax1001)/apps/lpar2rrd>

the GUI won't load the vmware configure page either:
Member libiconv.so.2 is not found in archive
Could not load module /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/auto/XML/LibXML/Common/Common.so.
Dependent module /opt/freeware/lib/libxml2.a(libxml2.so.2) could not be loaded. at /usr/opt/perl5/lib/5.10.1/aix
-thread-multi/DynaLoader.pm line 200.
at /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/XML/LibXML.pm line 11
Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/XML/LibXML.pm line 11.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/XML/LibXML.pm line 11.
Compilation failed in require at /apps/lpar2rrd/vmware-lib/VMware/VICommon.pm line 11.
BEGIN failed--compilation aborted at /apps/lpar2rrd/vmware-lib/VMware/VICommon.pm line 11.
Compilation failed in require at /apps/lpar2rrd/vmware-lib/VMware/VIRuntime.pm line 15.
Compilation failed in require at /apps/lpar2rrd/bin/vmwcfg.pl line 5.
BEGIN failed--compilation aborted at /apps/lpar2rrd/bin/vmwcfg.pl line 5.
Can't load '/usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/auto/XML/LibXML/Common/Common.so' for module XML::LibXM
L::Common: Could not load module /opt/freeware/lib/libxml2.a(libxml2.so.2).
Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

Any thoughts?


Comments

  • Hi,

    check if there is this module like in below example, I do not think so.
    $ cd /apps/lpar2rrd
    $ find vmware-lib -name VIRuntime.pm
    vmware-lib/VMware/VIRuntime.pm

    If not then installation of VMware Perl SDK did not work somehow.
    Check that you have downloaded complete package.
    Install it once more (post a screenshot from installation), remove actually installed SDK : rm -r /apps/lpar2rrd/vmware-lib


    regarding XML issue update PERL env in etc/lpar2rrd.cfg
    PERL=/opt/freeware/bin/perl
    PERL5LIB=/home/lpar2rrd/lpar2rrd/vmware-lib:/usr/lib64/perl5/vendor_perl/5.8.8:/usr/lib64/perl5/vendor_perl/5.1.1:/opt/freeware/lib/perl/5.1.1:/usr/opt/perl5/lib/site_perl/5.1.1:/usr/lib/perl5/vendor_perl/5.1.1:/usr/lib64/perl5/vendor_perl
    /5.1.1:/opt/freeware/lib/perl/5.8.0:/opt/freeware/lib/perl/5.8.8:/usr/opt/perl5/lib/site_perl/5.8.2:/usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi:/opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi
    --> all on 1 line for PERL5LIB
  • (root@nimax1001)/apps/lpar2rrd> find vmware-lib -name VIRuntime.pm
    vmware-lib/VMware/VIRuntime.pm

    (root@nimax1001)/apps/lpar2rrd> ./bin/vmware_install.sh /apps/rpm
    /apps/rpm/VMware-vSphere-Perl-SDK-6.0.0-2503617.x86_64.tar.gz found
    Extracting selected package to /apps/lpar2rrd/vmware-vsphere-cli-distrib ...
    Installing selected libraries and apps to /apps/lpar2rrd/vmware-lib ...

    If you have problems with Crypt-SSLeay during runtime then:
    downaload http://sourceforge.net/projects/xcat/files/aix/xcat-dep/6.1/perl-Crypt-SSLeay-0.57-2.aix6.1.ppc.rpm and install as root:
    rpm -Uvh perl-Crypt-SSLeay-0.57-2.aix6.1.ppc.rpm

    Testing it:
    . /apps/lpar2rrd/etc/lpar2rrd.cfg
    /opt/freeware/bin/perl /apps/lpar2rrd/vmware-lib/apps/connect.pl --version
    Can't load '/opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi/auto/XML/LibXML/LibXML.so' for module XML::LibXML: Could not load module /opt/freeware/lib/libxml2.a(libxml2.so.2).
    Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
    Member libiconv.so.2 is not found in archive
    Could not load module /opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi/auto/XML/LibXML/LibXML.so.
    Dependent module /opt/freeware/lib/libxml2.a(libxml2.so.2) could not be loaded. at /opt/freeware/lib/perl5/5.8.8/ppc-thread-multi/DynaLoader.pm line 227.
    at /opt/freeware/lib/perl5/5.8.8/ppc-thread-multi/DynaLoader.pm line 154
    BEGIN failed--compilation aborted at /opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi/XML/LibXML.pm line 154.
    Compilation failed in require at /apps/lpar2rrd/vmware-lib/apps/..//VMware/VICommon.pm line 11.
    BEGIN failed--compilation aborted at /apps/lpar2rrd/vmware-lib/apps/..//VMware/VICommon.pm line 11.
    Compilation failed in require at /apps/lpar2rrd/vmware-lib/apps/..//VMware/VIRuntime.pm line 15.
    Compilation failed in require at /apps/lpar2rrd/vmware-lib/apps/connect.pl line 11.
    BEGIN failed--compilation aborted at /apps/lpar2rrd/vmware-lib/apps/connect.pl line 11.


    Continue by define VMware hosts and their credentials
    GUI: menu --> VMware --> Configure --> Add credentials
    (root@nimax1001)/apps/lpar2rrd>

  • I didn't have Perl 5.8.8, so installed it so I could reference /opt/freeware/bin/perl
  • You have to install all Perl modules (XML are missing).
    Use this page as reference what needs to be installed (ideally upgrade RRDTool to 1.4.x as well) http://www.lpar2rrd.com/aix_install.htm
    It is a bit pain on AIX but no other way here.
    Once you install them then it will work.
  • ok, I solved my issues
    1) libiconv.a - lpar2rrd was using the system value - /usr/lib/libiconv.a, but it really wanted the freeware - /opt/freeware/lib/libiconv.a
    I have a workaround in place, but what is the best way to configure lpar2rrd to specifically use /opt/freeware/lib/libiconv.a?


    2) After getting the VMware libraries successfully installed, lpar2rrd.cfg wasn't updated to reflect the new library path, so I added /apps/lpar2rrd/vmware-lib to the PERL5LIB path and now the GUI works much better.
  • /opt/freeware/lib/libiconv.a is required by Perl and RRDTool tools from /opt/freeware/bin
  • Thank you for your support so far! I found a few more issues that I'm struggling with - the first is the location of .vmware - the software is expecting it to be located in lpar2rrd-cgi sub-directory, but it's physically located one level up in the lpar2rrd home - I created a symlink and it works, but if you have a better solution, please let me know.
    Secondly, I'm missing some vmware graphs - errror-cgi.bin tells me:

    Mon Mar 21 11:04:31 2016: datastore_datacenter-6318:vmware_89cd2854-9d87-43b6-bd58-54c7fc643534:55dff4cf-306be2d0-e65c-b8ca3a6f0c88:dsmem:m:m:0:-1 : Graph rrdtool error : print_png : file does not exist : /var/tmp/lpar2rrd-datastore_datacenter-6318-vmware_89cd2854-9d87-43b6-bd58-54c7fc643534-55dff4cf-306be2d0-e65c-b8ca3a6f0c88-dsmem-m-m-10879128.png /apps/lpar2rrd/bin/detail-graph-cgi.pl:483
    Mon Mar 21 11:04:32 2016: datastore_datacenter-6318:vmware_89cd2854-9d87-43b6-bd58-54c7fc643534:55dff4cf-306be2d0-e65c-b8ca3a6f0c88:dsmem:m:m:0:-1 : Cannot open /var/tmp/lpar2rrd-datastore_datacenter-6318-vmware_89cd2854-9d87-43b6-bd58-54c7fc643534-55dff4cf-306be2d0-e65c-b8ca3a6f0c88-dsmem-m-m-10879128.png: No such file or directory/apps/lpar2rrd/bin/detail-graph-cgi.pl:522

    -- it's looking in/var/tmp for the datastore_datacenter directories, but they are actually in $home/www

    Is this something I can fix myself with another symlink, or again, is there a better long term solution?
  • /var/tmp is used for temporary files (GUI uses it)
    The problem is somewhere else.
    Looks like datastores (at least some of them) do not provide perf data.
    Check http://www.lpar2rrd.com/VMware-counters.htm if it is about counters or not.

    send us logs if you go nowhere:
    cd /home/lpar2rrd/lpar2rrd # or where is your LPAR2RRD working dir
    tar cvhf logs.tar logs etc tmp/*txt *.out # do not miss "h" option in tar
    gzip -9 logs.tar

    Send us logs.tar.gz via https://upload.lpar2rrd.com
Sign In or Register to comment.