[ZBX-3776] Agent should report an error and exit on UserParameter configuration entries with same keys Created: 2011 May 03  Updated: 2017 May 30  Resolved: 2011 May 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Server (S)
Affects Version/s: 1.8.6, 1.9.4 (alpha)
Fix Version/s: 1.8.6, 1.9.4 (alpha)

Type: Incident report Priority: Minor
Reporter: dimir Assignee: dimir
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Consider next UserParameters entries in agentd config file:

UserParameter=custom.echo[*],echo $1
UserParameter=custom.echo[*],echo $1
UserParameter=custom.echo[*],echo $1
UserParameter=custom.pgsql.version,psql --version | head -1
UserParameter=custom.pgsql.version,psql --version | head -1
UserParameter=custom.pgsql.version,psql --version | head -1

Let's print available commands:

$ sbin/zabbix_agentd -p | grep custom
custom.echo[] [m|ZBX_NOTSUPPORTED]
custom.echo[] [m|ZBX_NOTSUPPORTED]
custom.echo[] [m|ZBX_NOTSUPPORTED]
custom.pgsql.version [t|psql (PostgreSQL) 8.4.7]

Duplicate Flexible UserParameters are all added as is, Simple UserParameters are replaced. We agreed that for any UserParameter in case of duplicate key an error should be reported and agent exited instantly.



 Comments   
Comment by richlv [ 2011 May 03 ]

partially covers ZBXNEXT-770

Comment by dimir [ 2011 May 03 ]

Fixed in dev branch ZBX-3776, r19335 .

Comment by dimir [ 2011 May 06 ]

Fixed in dev branch ZBX-3776, r19392.

Comment by dimir [ 2011 May 09 ]

Fixed in version 1.8.6rc1, r19434.

Generated at Sat Apr 20 10:22:23 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.