AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

Planning to implement Host monitoring agent in AIX server

  • 1.  Planning to implement Host monitoring agent in AIX server

    Posted Thu April 04, 2024 04:47 AM

    Hi All,

         In our environment we are planning to implement the host monitoring agent in AIX server, in these requirement the vendor needed the below pre-requites packages are needed to be installed in AIX server. 

    libpcap 
    libpcap-devel
    gmake
    lcap     
    lssl    
    lcrypto 
    lnsl
    libssl
    libcrypto

    The above packages are not able to get in AIX toolbox any suggestion to get these packages, it will help for us.Regards,

    Regards,
    Lakshmanan N



    ------------------------------
    Karur Vysya Limited
    ------------------------------


  • 2.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Fri April 05, 2024 02:29 AM

    Hi Lakshmanan,

    You can find the libpcap, libpcap-devel & make from AIX Toolbox. Are you using dnf to install packages from AIX Toolbox ?

    lpcap come through libpcap package. ssl & crypto related libraries comes through openssl fileset.

    You can download latest openssl filest from web download site https://wwwstage.ibm.com/resources/mrs/assets?source=aixbp

    lnsl would be installed by default

    # lslpp -w /usr/lib/libnsl.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libnsl.a
                                         bos.net.tcp.client_core        File 



    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Fri April 05, 2024 03:33 AM

    Hi Team,

        They trying to install hostagent but it's getting the below error could you please check and suggest the same.

    root@AOSDB1:/hostmonitoring/hm#./hostmonsetup install
    WARN: libssl binaries not present in /lib64 or /usr/lib
    WARN: libcrypto binaries not present in /lib64 or /usr/lib
    PLATFORM_DIR variable value is aix-ppc-64
    HOSTMON_HOME variable value is /hostmonitoring/hm
    Failed to generate executables for Host monitor.
    Check /hostmonitoring/hm/makelogerror for more info.
    root@CHAOSDB1:/hostmonitoring/hm#
    root@CHAOSDB1:/hostmonitoring/hm#cat /hostmonitoring/hm/makelogerror
    exec(): 0509-036 Cannot load program make_64 because of the following errors:
            0509-130 Symbol resolution failed for make_64 because:
            0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 123) is not exported from
                       dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
            0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 124) is not exported from
                       dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.
    root@AOSDB1:/hostmonitoring/hm#

       



    ------------------------------
    Karur Vysya Limited
    ------------------------------



  • 4.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Wed April 10, 2024 09:04 AM

    What is hostmonsetup?
    openssl/libssl/libcrypto should present in /usr/lib. 
    Not sure how hostmonsetup finds it. 

    Can you share "rpm -a" output. 
    Looks like you are using opensource make (gmake) from /opt/freeware/bin and it is dependent on libintl. 
    AIX toolbox provided libintl should work but not sure if you have from somewhere else. 
    How did you install libintl and make? Are you using dnf from AIX toolbox to install oss packages?



    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Wed April 10, 2024 09:19 AM

    Hi Team,

    Please find the requested details for the same.

    root@CHAOSDB1:/#rpm -qa
    tcl-8.4.7-3.ppc
    expect-5.42.1-3.ppc
    unzip-6.0-3.ppc
    sudo-1.8.27-1.ppc
    libiconv-1.14-1.ppc
    AIX-rpm-7.2.5.205-17.ppc
    libpcap-devel-1.10.1-1.ppc
    tk-8.4.7-3.ppc
    bash-5.0-1.ppc
    libpcap-1.10.1-1.ppc
    make-4.4.1-1.ppc
    root@CHAOSDB1:/#

    We downloaded the make packages in AIX tool box and installed server using rpm command. 



    ------------------------------
    Karur Vysya Limited
    ------------------------------



  • 6.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Wed April 10, 2024 09:39 AM

    What "rpm" command was used?

    I do not see gettext package installed that provides libintl.a

     

    Were force option used to install these packages (without dependencies)?

    Looks to me that was the case. If so it is broken as for opensource ecosystem you should install all the dependencies otherwise it will not work.

     

    The best way is to setup dnf and use dnf to install packages from AIX toolbox.

     

    Thanks,

     

    Sanket Rathi

     






  • 7.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Thu April 11, 2024 02:37 AM

    Hi!

    Beside what Sanket said, please also check the versions of your installed rpm packages.  I see that at least sudo 1.8.27 is quite old, and later releases contain several important security fixes.

    Best regards,

      Alexander



    ------------------------------
    Alexander Reichle-Schmehl
    ------------------------------



  • 8.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Mon April 15, 2024 06:01 AM

    Hi Sangamesh,

      As per your suggestion the dependency packages has been installed and agent also installed the same, Some servers we are getting this error could you please check and suggest how to proceed further on this issues.

    root@HYCBSADGDB:/tmp/host_AIX_pkgs/Host_agent_pkgs#rpm -Uvh *
    error: Failed dependencies:
            openldap = 2.4.23-0.3 is needed by (installed) openldap-clients-2.4.23-0.3.ppc
            openldap = 2.4.23-0.3 is needed by (installed) openldap-devel-2.4.23-0.3.ppc
            zlib = 1.2.8-1 is needed by (installed) zlib-devel-1.2.8-1.ppc
    root@HYCBSADGDB:/tmp/host_AIX_pkgs/Host_agent_pkgs#



    ------------------------------
    Karur Vysya Limited
    ------------------------------



  • 9.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Mon April 15, 2024 07:09 AM

    openldap seems to be installed from some other source as AIX Toolbox we don't have a version 2.4.23-0.3 & sub-package named openldap-clients.

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/openldap/

    Now if you are updating to AIX Toolbox packages you need to remove openldap-clients,  download openldap-devel & zlib-devel and then run "rpm -Uvh *"



    ------------------------------
    SANGAMESH
    ------------------------------



  • 10.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Mon April 15, 2024 08:13 AM

    These errors are self-explanatory. You need to satisfy the required dependencies.

    As mentioned earlier please install dnf and install the required packages.  

     

    Thanks,

     

    Sanket Rathi

     






  • 11.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Wed April 10, 2024 08:59 AM

    Can you please provide more information about these packages ?

    I can see most of them are already on AIX or on AIX toolbox. The one not available are very rare packages and we have not seen any dependencies of those in other packages.

    Please confirm if really needed. 

    But I feel there is some confusion and list is not correct.

     

     

    libcap – What is this one? I can see one libcap for Linux to provide POSIX1.e compatibility. Not sure if this should be a dependency for any package. Please confirm if this is correct package.

    Libpcap – Available both on AIX natively and from AIX toolbox

    Openssl – Available on AIX natively and used by AIX toolbox packages

    g++ - Available on AIX toolbox

    lcap – What is this ? I think this is same libcap but when we provide for to compiler/linker we use -lcap

    lssl – I think this is libssl available on AIX

    lcrypto – I think this is libcrypto available on AIX

    lnsl – Please confirm what is this library and if you really need this.

    libssl – Available on AIX

    libcrypto – Available on AIX

    gmake – Available on AIX toolbox

    libpcap libpcap-devel – Available on AIX toolbox

    libcap libcap-devel – Same as first one. Please confirm if this is needed?

    openssl openssl-devel – Everything related to openssl present in AIX base with openssl.base package in AIX.

     

    Thanks,



    ------------------------------
    SANKET RATHI
    ------------------------------



  • 12.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Wed April 10, 2024 09:08 AM

    Hi Sanket,

       They required the gmake package only not make package could you please check and suggest the same.

    root@CHAOSDB1:/#rpm -qa | grep -i libpcap*
    libpcap-devel-1.10.1-1.ppc
    libpcap-1.10.1-1.ppc
    root@CHAOSDB1:/#
    root@CHAOSDB1:/#rpm -qa | grep -i make
    make-4.4.1-1.ppc
    root@CHAOSDB1:/#
    root@CHAOSDB1:/#lslpp -l|grep openssl
      openssl.base           3.0.10.1001  COMMITTED  Open Secure Socket Layer
      openssl.license        3.0.10.1001  COMMITTED  Open Secure Socket License
      openssl.man.en_US      3.0.10.1001  COMMITTED  Open Secure Socket Layer
      openssl.base           3.0.10.1001  COMMITTED  Open Secure Socket Layer
    root@CHAOSDB1:/#
    root@CHAOSDB1:/#lslpp -f openssl.base|grep -E "crypto|libssl"
                            /usr/lib/libcrypto.a.min
                            /usr/include/openssl/cryptoerr.h
                            /usr/lib/libssl.a
                            /usr/lib/pkgconfig/libcrypto.pc
                            /usr/include/openssl/cryptoerr_legacy.h
                            /usr/lib/libcrypto.a
                            /usr/lib/pkgconfig/libssl.pc
                            /usr/include/openssl/crypto.h
    root@CHAOSDB1:/#

    • Ensure that gmake is installed for AIX database servers.

    For other Unix database server types (Linux, Unix, or Solaris), ensure that make is installed. This is required for the Host Monitor Agent to run successfully.

    • If a network firewall is present, allow communication on port range 2050 - 5200.

    This is required for communication between the database server and the Database Firewall.



    ------------------------------
    Karur Vysya Limited
    ------------------------------



  • 13.  RE: Planning to implement Host monitoring agent in AIX server

    Posted Wed April 10, 2024 09:36 AM

    The make on AIX toolbox is gmake only.

     

    Also from output of lslpp you can see following libraries are installed

     /usr/lib/libssl.a

    /usr/lib/libcrypto.a

     

     

    Thanks,

     

    Sanket Rathi