Ad Widget

Collapse

Inclusion multiple files zabbix-agent2 won't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EdgarGR
    Junior Member
    • Nov 2022
    • 3

    #1

    Inclusion multiple files zabbix-agent2 won't work

    Hello,

    We've been using zabbix-agent for Ubuntu 20.04 without problems. Now I'm testing to migrate the zabbix-agent to zabbix-agent2 to be able to monitor systemd on ubuntu.

    The problem:
    On the zabbix configuration we use " *.conf " string to include all the config files available in that folder. But the zabbix-agent2 won't start the process like this...
    Seems the inclusion on zabbix-agent2 only supports 1 file. If I add multiple file inclusions, or the regex character ( * ), the same problem appears.

    E.g:
    Using zabbix-agent (working well):

    ### Option: Include
    # You may include individual files or all files in a directory in the configuration file.
    # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
    #
    # Mandatory: no
    # Default:
    # Include=

    # Include=/etc/zabbix/zabbix_agent2.d/*.conf
    # Include=/usr/local/etc/zabbix_agent2.userparams.conf
    # Include=/usr/local/etc/zabbix_agent2.conf.d/
    # Include=/usr/local/etc/zabbix_agent2.conf.d/*.conf

    Include=/folder1/folder2/Zabbix/*.conf

    Using zabbix-agent2 (not working at all):

    ### Option: Include
    # You may include individual files or all files in a directory in the configuration file.
    # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
    #
    # Mandatory: no
    # Default:
    # Include=

    # Include=/etc/zabbix/zabbix_agent2.d/*.conf
    # Include=/usr/local/etc/zabbix_agent2.userparams.conf
    # Include=/usr/local/etc/zabbix_agent2.conf.d/
    # Include=/usr/local/etc/zabbix_agent2.conf.d/*.conf

    Include=/folder1/folder2/Zabbix/*.conf <--It won't work
    Include=/folder1/folder2/Zabbix/linuxfile.conf <-it will work


    Logs zabbix-agent2:

    2022/12/02 13:15:00.243003 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits
    2022/12/02 13:15:00.243015 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter
    2022/12/02 13:15:00.243193 Plugin support version 1.1
    2022/12/02 13:15:00.243220 Zabbix Agent2 hostname: [SERVERXX]
    2022/12/02 13:19:59.896999 Zabbix Agent 2 stopped. (6.2.5)​


    As you can see, this section in the configuration file from zabbix is the same for the v2 as the v1, so it must be a glitch or something?​​​
Working...