I've encountered an interesting issue with the MySQL Replication Discovery rule where it's failing to execute, returning the message:
This applies to multiple hosts in our environment (I haven't check all of our hosts that use the MySQL template, but it's enough that I would guess it's all of them). I've scoured the UI to find the existing item, but I have not found it. I've also used the API to do the same, and also found none. Only after logging in to MySQL on the Zabbix server could I find the existing items. The only recent change that I'm aware of in the template was to change the severity of a number of the trigger prototypes. I'm not 100% sure the timing of this error showing up compared to the change of the severities, so it may not be related.
So there's two questions with this:
Code:
Cannot create item: item with the same key "mysql.slave_sql_running_state["{#MASTER_HOST}"]" already exists.
So there's two questions with this:
- Could the severity change have somehow caused the items to get unlinked from the host/template/discovery rule, but still be present enough to cause the duplication issue? As far as I've been able to tell, all of the remaining item prototypes have generated correctly on the hosts I've looked at, so I'm not sure what's so unique about this particular item...
- How do I go about fixing this? Is there a way to re-link the items in the db with the host/template/discovery rule? Would it be better to manually delete the applicable rows in MySQL?
Comment