[ZBX-7125] Error in agent config file parsing Created: 2013 Oct 08  Updated: 2017 May 30  Resolved: 2013 Oct 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.0.8
Fix Version/s: 2.1.9

Type: Incident report Priority: Major
Reporter: Bruno Galindro da Costa Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: configfile, include
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 12.04.3 LTS
Kernel: 3.2.0-53-virtual x86_64



 Description   

Please,

Read this post (https://www.zabbix.com/forum/showthread.php?p=138565#post138565) for details.

edit :

Zabbix agentd is ignoring all config directives below Include directive filled with a wrong value (inexistent directory).



 Comments   
Comment by richlv [ 2013 Oct 08 ]

please see https://www.zabbix.org/wiki/Docs/bug_reporting_guidelines - specifically, "Describe the problem in the issue itself - do not link to external sites (forum, pastebin sites etc)"

please, describe one problem here. that post talks about a whole bunch of things and it's totally unclear what's what

Comment by Bruno Galindro da Costa [ 2013 Oct 08 ]

Sorry.

Zabbix agentd is ignoring all config directives bellow Include directive filled with a wrong value (inexistent directory).

To test, please, do this:

Include=/etc/zabbix/zabbix_agentd.dasdasdasdasdasdgggggg/
UserParameter=apache[*],/etc/zabbix/apache.sh '$1'
AllowRoot=1

Is this case, UserParameter and AllowRoot will be ignored from processing. If I change Include to a correct path, UserParameter and AllowRoot will be considered at process startup.

Comment by Bruno Galindro da Costa [ 2013 Oct 14 ]

Any return?

Comment by richlv [ 2013 Oct 14 ]

hmm, i thought i commented on this one - i can confirm the problem

Comment by Aleksandrs Saveljevs [ 2013 Oct 30 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7125 .

Comment by Aleksandrs Saveljevs [ 2013 Oct 30 ]

If included configuration files cannot be read properly, our daemons now exit with failure.

Comment by richlv [ 2013 Oct 30 ]

edited the summary to help with searches

Comment by Andris Mednis [ 2013 Nov 04 ]

Successfully tested.
(1)
Special notes about using "Include" parameter in configuration files should be added to documentation.

andris Special notes are now documented at https://www.zabbix.com/documentation/2.2/manual/appendix/config/special_notes_include .
References to the notes are added to description of "Include" parameter at:

asaveljevs Thank you! Looks good. CLOSED.

Comment by Aleksandrs Saveljevs [ 2013 Nov 04 ]

Fixed in pre-2.1.9 (trunk) r39854.

Generated at Fri Apr 26 19:09:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.