use single userparameter line for zabbix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Monitoring Plugins |
Triaged
|
Low
|
Unassigned |
Bug Description
zabbix package currently has 190 userparameter entries like these :
UserParameter=
UserParameter=
essentially, they all have different keys, then run the same script with a different parameter. these could be collapsed in a single line like this :
UserParameter=
note the [*] part after the key - it tells zabbix agent to replace dollarsign-number positional references with item key parameters.
with the current implementation, item keys are like this :
MySQL.Sort-scan
MySQL.slave-stopped
with the single entry, the corresponding keys would be :
mysql.statistic
mysql.statistic
additional parameters can be passed as $2, $3 etc and then specified in the key (key[param1, param2, param3...], but that does not seem to be necessary at this time.
note that this will require changing all item keys in the template, too
It's probably not a good idea as all items need be renamed to mysql.statistic s[XX], thus will be shown in Zabbix web panel this way.
It will be difficult to figure out what they are and how the graphs are built.
Do you agree?