Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23441

zabbix-agent2 compilation issues

XMLWordPrintable

    • Product delivery backlog
    • 2

      Try to compile agent2 with following parameters:

      ./configure --enable-agent2 --prefix=/tmp/tmp --sysconfdir=/tmp/tmp/etc/zabbix
      

      Result - agent un-selected and agent2 selected, as expected:

      Configuration:
      
        Detected OS:           linux-gnu
        Install path:          /tmp/tmp
        Compilation arch:      linux
      
        Compiler:              cc
        Compiler flags:         -g -O2 
      
        Library-specific flags:
      
        Enable server:         no
      
        Enable proxy:          no
      
        Enable agent:          no
      
        Enable agent 2:        yes
      
        Enable web service:    no
      
        Enable Java gateway:   no
      
        LDAP support:          no
        IPv6 support:          no
        cmocka support:        no
      
        yaml support:          no
      

      Then try "make install" with custom DESTDIR:

      make DESTDIR=/tmp/tmp/subdir install
      

      Result:

      tree /tmp/tmp/
      /tmp/tmp/
      ├── sbin
      │   └── zabbix_agent2
      ├── subdir
      │   └── tmp
      │   └── tmp
      │   ├── etc
      │   │   └── zabbix
      │   │   ├── zabbix_agent2.conf
      │   │   ├── zabbix_agent2.d
      │   │   │   └── plugins.d
      │   │   │   ├── ceph.conf
      │   │   │   ├── docker.conf
      │   │   │   ├── memcached.conf
      │   │   │   ├── modbus.conf
      │   │   │   ├── mqtt.conf
      │   │   │   ├── mysql.conf
      │   │   │   ├── oracle.conf
      │   │   │   ├── redis.conf
      │   │   │   └── smart.conf
      │   │   ├── zabbix_agentd.conf
      │   │   └── zabbix_agentd.conf.d
      │   ├── lib
      │   │   └── modules
      │   ├── sbin
      │   │   └── zabbix_agentd
      │   └── share
      │   └── man
      │   └── man8
      │   └── zabbix_agent2.8
      └── usr
      └── local
      ├── etc
      │   ├── zabbix_agent2.conf
      │   ├── zabbix_agent2.d
      │   │   └── plugins.d
      │   │   ├── ceph.conf
      │   │   ├── docker.conf
      │   │   ├── memcached.conf
      │   │   ├── modbus.conf
      │   │   ├── mqtt.conf
      │   │   ├── mysql.conf
      │   │   ├── oracle.conf
      │   │   ├── redis.conf
      │   │   └── smart.conf
      │   ├── zabbix_agentd.conf
      │   └── zabbix_agentd.conf.d
      ├── lib
      │   └── modules
      ├── sbin
      │   └── zabbix_agentd
      └── share
      └── man
      └── man8
      └── zabbix_agent2.8
      
      27 directories, 27 files
      {code:java}
       

      1) Classical is compiled, although not requested (but installed in correct directory)
      2) Agent2 ignored DESTDIR variable and is installed according to --prefix=/tmp/tmp, not DESTDIR=/tmp/tmp/subdir

      ls -lah /tmp/tmp/sbin/zabbix_agent2 
      -rwxr-xr-x 1 root root 24M Sep 20 17:35 /tmp/tmp/sbin/zabbix_agent2
      

            jlambda Juris Lambda
            zux Edgars Melveris
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: