Ad Widget

Collapse

Zabbix_Sender with Agent2 default config file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Backstage24
    Junior Member
    • Oct 2019
    • 10

    #1

    Zabbix_Sender with Agent2 default config file

    Hello
    We have some use cases with zabbix_sender, started by script.
    There is an issue with the default plugin include configuration path in the agent2 configuration file.

    Code:
    # Include configuration files for plugins
    Include=.\zabbix_agent2.d\plugins.d\*.conf
    The option in the same config file for include configuration path
    Code:
    Include=C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\
    When the script with the zabbix_sender is running on an different path as C:\Program Files\Zabbix Agent 2, the script will be stopped.
    Click image for larger version

Name:	image.png
Views:	0
Size:	41.3 KB
ID:	511415
    So, the zabbix_sender should be started after the script change to the correct directory. Or the configuration in the default config file from the agent2 must be changed.
    We don't touch the default config file, because we have our config files in the include directory.​

    Is this a correctly and deliberately chosen default option or maybe a bug?
    To resolve the issue, the option should be changed to
    Code:
    Include=C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\plugins.d\*.conf
    Because we don't change the default agent2 config file, we will change the caller script for the zabbix_sender.​
Working...