Slackware Linux 15.0
MariaDB 10.5.15
Zabbix 6.0.2
Within a net.dns[] trigger expression, I'm making a hostname change only, and then cannot update the trigger. This is after migrating from Zabbix 4.4 to Zabbix 6.0. I was able to confirm the trigger expression is understood by the local Zabbix agent using zabbix_get:
Upon reading the thread below, I now want to confirm or rule out any schema issue caused by importing my 4.4 database and letting 6.0 server upgrade the schema automatically.
Incorrect item key - unable to create triggers - ZABBIX Forums
So I exported the live schema, exported a stock 6.0 schema, and compared, and I see some differences. But that's as far as my knowledge goes. I don't know if these differences are relevant to the problem I'm having, and I don't know how to safely correct the live database to match the stock database if that would help.
Here are the differences I found.
1. Disagreement about character set in all CHARSET and COLLATE expressions.
The live schema uses UTF8.
The stock 6.0 schema uses UTF8MB4.
2. Disagreement about definitions of four fields: trends.value_min, trends.value_avg, trends.value_max, and history.value.
The live schema uses 'double(16.4)' type.
The stock 6.0 schema uses 'double' type.
3. Disagreement about key declarations on six tables:
alerts
live schema: KEY `c_alerts_6` (`acknowledgeid`)
stock schema: absent
history, history_log, history_str, history_text, and history_uint
live schema:
KEY `history_1` (`itemid`,`clock`)
KEY `history_log_1` (`itemid`,`clock`)
KEY `history_str_1` (`itemid`,`clock`)
KEY `history_text_1` (`itemid`,`clock`)
KEY `history_uint_1` (`itemid`,`clock`)
stock schema:
PRIMARY KEY (`itemid`,`clock`,`ns`)
(on all five tables)
MariaDB 10.5.15
Zabbix 6.0.2
Within a net.dns[] trigger expression, I'm making a hostname change only, and then cannot update the trigger. This is after migrating from Zabbix 4.4 to Zabbix 6.0. I was able to confirm the trigger expression is understood by the local Zabbix agent using zabbix_get:
Code:
# zabbix_get -s 127.0.0.1 -k 'net.dns[127.0.0.1,cco-20317,A,,,]'
Incorrect item key - unable to create triggers - ZABBIX Forums
So I exported the live schema, exported a stock 6.0 schema, and compared, and I see some differences. But that's as far as my knowledge goes. I don't know if these differences are relevant to the problem I'm having, and I don't know how to safely correct the live database to match the stock database if that would help.
Here are the differences I found.
1. Disagreement about character set in all CHARSET and COLLATE expressions.
The live schema uses UTF8.
The stock 6.0 schema uses UTF8MB4.
2. Disagreement about definitions of four fields: trends.value_min, trends.value_avg, trends.value_max, and history.value.
The live schema uses 'double(16.4)' type.
The stock 6.0 schema uses 'double' type.
3. Disagreement about key declarations on six tables:
alerts
live schema: KEY `c_alerts_6` (`acknowledgeid`)
stock schema: absent
history, history_log, history_str, history_text, and history_uint
live schema:
KEY `history_1` (`itemid`,`clock`)
KEY `history_log_1` (`itemid`,`clock`)
KEY `history_str_1` (`itemid`,`clock`)
KEY `history_text_1` (`itemid`,`clock`)
KEY `history_uint_1` (`itemid`,`clock`)
stock schema:
PRIMARY KEY (`itemid`,`clock`,`ns`)
(on all five tables)
Comment