Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856859 - net-analyzer/zabbix should create /etc/zabbix/zabbix_agent2.d/plugins.d if USE=agent2
Summary: net-analyzer/zabbix should create /etc/zabbix/zabbix_agent2.d/plugins.d if US...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-07 10:31 UTC by Florian Schmaus
Modified: 2022-07-08 06:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2022-07-07 10:31:52 UTC
Newer versions, at least zabbix 6.0.3, create a zabbix_agent2.conf that has as very last entry

# Include configuration files for plugins
Include=./zabbix_agent2.d/plugins.d/*.conf

However, the ebuild does not create the /etc/zabbix/zabbix_agent2.d/plugins.d  directory, so starting the agent fails with

zabbix_agent2[3118024]: zabbix_agent2 [3118024]: ERROR: Cannot read configuration: cannot include "/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf": stat /etc/zabbix/zabbix_agent2.d/plugins.d: no such file or directory
systemd[1]: zabbix-agent2.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: zabbix-agent2.service: Failed with result 'exit-code'


I supposed adding

keepdir /etc/zabbix/zabbix_agent2.d/plugins.d

would fix htis.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-08 06:59:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20b77d3d2a13fd435e3f4b6e0fb8babb576940b3

commit 20b77d3d2a13fd435e3f4b6e0fb8babb576940b3
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-07-08 06:50:13 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-07-08 06:58:55 +0000

    net-analyzer/zabbix: add keepdir /etc/zabbix/zabbix_agent2.d/plugins.d
    
    Closes: https://bugs.gentoo.org/856859
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 net-analyzer/zabbix/{zabbix-6.0.5.ebuild => zabbix-6.0.5-r1.ebuild} | 1 +
 net-analyzer/zabbix/{zabbix-6.0.6.ebuild => zabbix-6.0.6-r1.ebuild} | 1 +
 net-analyzer/zabbix/{zabbix-6.2.0.ebuild => zabbix-6.2.0-r1.ebuild} | 1 +
 3 files changed, 3 insertions(+)