[ZBX-24868] the tag "parameters" is missing. Created: 2024 Jul 16  Updated: 2024 Jul 30

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Alex Marcet Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2024-07-16-16-24-21-797.png     PNG File image-2024-07-17-12-57-23-257.png     PNG File image-2024-07-17-13-06-12-420.png     PNG File image-2024-07-17-14-09-55-722.png     PNG File image-2024-07-17-14-20-32-510.png     PNG File image-2024-07-17-14-20-49-507.png     PNG File image-2024-07-18-14-56-28-341.png     PNG File image-2024-07-30-12-33-14-723.png     PNG File image-2024-07-30-13-57-41-909.png     PNG File image-2024-07-30-13-58-34-529.png     PNG File image.png     PNG File zbx-error.png    
Issue Links:
Duplicate
duplicates ZBX-23886 Template import from 6.4 to 7.0a9 doe... Closed
is duplicated by ZBX-24890 Cannot import stock templates from gi... Closed
Team: Team C

 Description   

Steps to reproduce:

  1. Download MsSql_Agent2
  2. Browse Zabbix / Zabbix - ZABBIX GIT
  3. Importa .yaml to zabbix
  4. Get this error
    .

 



 Comments   
Comment by Alexander Vladishev [ 2024 Jul 16 ]

Already fixed as part of ZBX-23886.

Comment by Alex Marcet [ 2024 Jul 16 ]

Hello Alexander, i'm new and i can't solved this..

Fixed in

 

i have this verision 6.4.xxx and i need steps to apply this workarround..

can u help me?

Comment by Alex Marcet [ 2024 Jul 17 ]

Hello!

I change the files who need for solved this and i have the same problem..

 

 

Comment by Grzegorz [ 2024 Jul 17 ]

Hi, I recently upgraded Zabbix server from 5.0 to 7.0, and now I wanted to import "template_app_zabbix_server.yaml" downloaded from git for version 7.0 and got error 

  • Invalid tag "/zabbix_export/templates/template(1)/items/item(52)/preprocessing/step(1)": the tag "parameters" is missing.

 

I exported a template from another 7.0 server and it was imported without any problems, the difference is the "parameters" entry in the preprocessing key

 

 

And after adding parameters there is problem with

Invalid tag "/zabbix_export/templates/template(1)/discovery_rules/discovery_rule(2)/overrides/override(1)/filter/conditions/condition(1)": the tag "formulaid" is missing.

Witch was fixed by adding formulaid: A

 

But then this error appears, and this is required/missing in all TEXT and CHAR items ...  

 

Comment by Alex Marcet [ 2024 Jul 17 ]

 Hello! grzesiek,

I'm new in Zabbix...  and who identifi this ITEM? I have a temaplet with 4500 lines and i like to chek line for line...

Can u help me?

 

Comment by Grzegorz [ 2024 Jul 17 ]

Search for "- type: CHANGE_PER_SECOND" and there should be "parameters" after this, it not you have to add it with - '' like on image above. Maybe you have just few to fix ...

Probably can fixed by using notepad++ and some fancy regexp replace formula.

Comment by Alex Marcet [ 2024 Jul 17 ]

Hello| grzesiek I follow ur steps,

 

But now i have this:

 

And this line:

 

Can u help?

Comment by Pierre Bruneval [ 2024 Jul 17 ]

Same issue for me.
It appears when I tried to upgrade template from Zabbix git repo (6.4.16).

I have tried many templates from the repo and there is always an error when importing.

After 7.0.0 update, problem is the same.

Comment by Alexander Vladishev [ 2024 Jul 17 ]

This issue is fixed in version 7.0.1rc1. Please try updating to version 7.0.1rc1 or wait for the stable 7.0.1 release, which is planned for next week.

Comment by Alexander Vladishev [ 2024 Jul 17 ]

Version 6.4.17, released this week, already contains the fix for this issue.

Comment by Pierre Bruneval [ 2024 Jul 18 ]

thanks for the feedback. And many thanks for this awesome software sasha 

Comment by Alex Marcet [ 2024 Jul 18 ]

Hello sasha ,

Today I upgrade the server and we have this problem with same yaml

 

Comment by Alexander Vladishev [ 2024 Jul 19 ]

Thanks for your feedback! We will check it.

Comment by Alexander Vladishev [ 2024 Jul 19 ]

Which version of Zabbix are you using?

Comment by Alex Marcet [ 2024 Jul 20 ]

sasha! hello, we us the las version 6.4.17 if u need any more logs or any tell me

 

Comment by Alexandre Georges [ 2024 Jul 23 ]

I can confirm it's now working as expected in version 7.0.1

Comment by Alex Marcet [ 2024 Jul 23 ]

sasha  do u have any info for my issue?

 

Kind regards

Comment by Pierre Bruneval [ 2024 Jul 23 ]

it's working for me in version 7.0.1

Comment by Alexander Vladishev [ 2024 Jul 25 ]

amarcet, we cannot reproduce you issue on latest 6.4.17. Could you please provide the full error text? This will help us understand and address the issue.

Comment by Alex Marcet [ 2024 Jul 29 ]

Hello sasha, this is all message:

 * Error in query [INSERT INTO items (itemid,uuid,name,type,history,units,description,value_type,trends,status,discover,key_,hostid,valuemapid,master_itemid,flags,params,posts,headers) VALUES ('411388','39264e40f3304b3fb5d85fbac83008f8','MSSQL DB \'\{#DBNAME}\': Last diff backup duration','18','7d','s','Duration of the last differential backup.','3','365d','0','0','mssql.backup.diff.duration[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411389','45613ebe8c77431fbfa3ab00d39e68e5','MSSQL DB \'\{#DBNAME}\': Last diff backup (time ago)','18','7d','s','The amount of time since the last differential backup.','3','365d','0','0','mssql.backup.diff[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411390','5da7fa72e56740d3938e8bb5bb32839e','MSSQL DB \'\{#DBNAME}\': Last full backup duration','18','7d','s','Duration of the last full backup.','3','365d','0','0','mssql.backup.full.duration[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411391','32c38b20af8f42698fb96bf0bbb05dec','MSSQL DB \'\{#DBNAME}\': Last full backup (time ago)','18','7d','s','The amount of time since the last full backup.','3','365d','0','0','mssql.backup.full[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411392','a7aaa846c6694ddf9daf5d18db5a3037','MSSQL DB \'\{#DBNAME}\': Last log backup duration','18','7d','s','Duration of the last log backup.','3','365d','0','0','mssql.backup.log.duration[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411393','453a48800bce43b58a372b7466b944bd','MSSQL DB \'\{#DBNAME}\': Last log backup (time ago)','18','7d','s','The amount of time since the last log backup.','3','365d','0','0','mssql.backup.log[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411394','f8bc0815cbc1471eb949429a95503287','MSSQL DB \'\{#DBNAME}\': Recovery model','18','7d','','Recovery model selected:\r\n1 = Full\r\n2 = Bulk_logged\r\n3 = Simple','3','365d','0','0','mssql.backup.recovery_model[\"\{#DBNAME}\"]','10631','154','411363','2','','',''),('411395','ccd715be77234994b8931ca89abb015a','MSSQL DB \'\{#DBNAME}\': Active transactions','18','7d','','Number of active transactions for the database.','3','365d','0','0','mssql.db.active_transactions[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411396','cba4bf9b39fc4cd69152f15cfd0edb56','MSSQL DB \'\{#DBNAME}\': Data file size','18','7d','B','Cumulative size of all the data files in the database including any automatic growth. Monitoring this counter is useful, for example, for determining the correct size of `tempdb`.','3','365d','0','0','mssql.db.data_files_size[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411397','9cd2a1a539604c68b4540d424a608d4c','MSSQL DB \'\{#DBNAME}\': Log bytes flushed per second','18','7d','Bps','Total number of log bytes flushed per second. Useful for determining trends and utilization of the transaction log.','0','365d','0','0','mssql.db.log_bytes_flushed_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411398','ff2f2fd39e11418ea93b79ba27b73e3d','MSSQL DB \'\{#DBNAME}\': Log file size','18','7d','B','Cumulative size of all the transaction log files in the database.','3','365d','0','0','mssql.db.log_files_size[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411399','7466329cc603401095def32026d8182d','MSSQL DB \'\{#DBNAME}\': Log file used size','18','7d','B','Cumulative size of all the log files in the database.','3','365d','0','0','mssql.db.log_files_used_size[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411400','6c874bd1dd7746b4894d5b25e3de0f7c','MSSQL DB \'\{#DBNAME}\': Log flushes per second','18','7d','','Number of log flushes per second.','0','365d','0','0','mssql.db.log_flushes_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411401','64dc4faefc0f4709b5e740c036e9a272','MSSQL DB \'\{#DBNAME}\': Log flush waits per second','18','7d','','Number of commits per second waiting for the log flush.','0','365d','0','0','mssql.db.log_flush_waits_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411402','1e4289626cd540dbbc9e54be9d6a0836','MSSQL DB \'\{#DBNAME}\': Log flush wait time','18','7d','ms','Total wait time (in milliseconds) to flush the log. On an Always On secondary database, this value indicates the wait time for log records to be hardened to disk.','0','365d','0','0','mssql.db.log_flush_wait_time[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411403','e0ebbdccf06e4bd580944eca894fd765','MSSQL DB \'\{#DBNAME}\': Log growths','18','7d','','Total number of times the transaction log for the database has been expanded.','3','365d','0','0','mssql.db.log_growths[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411404','f4705df239ff4b52a7594adc8bff1786','MSSQL DB \'\{#DBNAME}\': Log shrinks','18','7d','','Total number of times the transaction log for the database has been shrunk.','3','365d','0','0','mssql.db.log_shrinks[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411405','23f7b754af114e779bfb12b954041a3a','MSSQL DB \'\{#DBNAME}\': Log truncations','18','7d','','Number of times the transaction log has been shrunk.','3','365d','0','0','mssql.db.log_truncations[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411406','622cd26e368144c7b4b4a760be6e9d80','MSSQL DB \'\{#DBNAME}\': Percent log used','18','7d','%','Percentage of log space in use.','0','365d','0','0','mssql.db.percent_log_used[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411407','2032b8a3889a4a9f941529c4b62aa860','MSSQL DB \'\{#DBNAME}\': State','18','7d','','0 = Online\r\n1 = Restoring\r\n2 = Recovering | SQL Server 2008 and later\r\n3 = Recovery_pending | SQL Server 2008 and later\r\n4 = Suspect\r\n5 = Emergency | SQL Server 2008 and later\r\n6 = Offline | SQL Server 2008 and later\r\n7 = Copying | Azure SQL Database Active Geo-Replication\r\n10 = Offline_secondary | Azure SQL Database Active Geo-Replication','3','365d','0','0','mssql.db.state[\"\{#DBNAME}\"]','10631','146','411364','2','','',''),('411408','e2f693fb31d84532a67d6f7e2f479acc','MSSQL DB \'\{#DBNAME}\': Transactions per second','18','7d','','Number of transactions started for the database per second.','0','365d','0','0','mssql.db.transactions_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411409','7503acf68ad44180ace4113d654752d1','MSSQL Job \'\{#JOBNAME}\': Enabled','18','7d','','The possible values of the job status:\r\n0 = Disabled\r\n1 = Enabled','3','365d','0','0','mssql.job.enabled[\"\{#JOBNAME}\"]','10631','139','411365','2','','',''),('411410','a42c8a24b329498581b8a81c13d16076','MSSQL Job \'\{#JOBNAME}\': Last run date-time','18','7d','unixtime','The last date-time of the job run.','3','365d','0','0','mssql.job.lastrundatetime[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','',''),('411411','b86b627c1a234d409950345b9d7a1f73','MSSQL Job \'\{#JOBNAME}\': Last run status message','18','7d','','An informational message about the last run of the job.','4','0','0','0','mssql.job.lastrunstatusmessage[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','',''),('411412','fcc4d2cfa5674d33b8831e03b23f40c5','MSSQL Job \'\{#JOBNAME}\': Next run date-time','18','7d','unixtime','The next date-time of the job run.','3','365d','0','0','mssql.job.nextrundatetime[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','',''),('411413','7bb5fb0220ef4649955049ee1b6d6c73','MSSQL Job \'\{#JOBNAME}\': Run status','18','7d','','The possible values of the job status:\r\n0 ⇒ Failed\r\n1 ⇒ Succeeded\r\n2 ⇒ Retry\r\n3 ⇒ Canceled\r\n4 ⇒ Running','3','365d','0','0','mssql.job.runstatus[\"\{#JOBNAME}\"]','10631','147','411365','2','','',''),('411414','6ae51f0fd7c04e01aa9e1af302d461d0','MSSQL Job \'\{#JOBNAME}\': Run duration','18','7d','s','Duration of the last-run job.','3','365d','0','0','mssql.job.run_duration[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','','')] [Incorrect string value: '\xE2\x87\x92 Fa...' for column `zabbix`.`items`.`description` at row 26] [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImport->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CConfigurationImport->createItemsWithDependency() → CItemPrototype->create() → CItemPrototype::createForce() → DB::insert() → DB::insertBatch() → DBexecute() → trigger_error() in include/db.inc.php:367]
 * SQL statement execution has failed "INSERT INTO items (itemid,uuid,name,type,history,units,description,value_type,trends,status,discover,key_,hostid,valuemapid,master_itemid,flags,params,posts,headers) VALUES ('411388','39264e40f3304b3fb5d85fbac83008f8','MSSQL DB \'\{#DBNAME}\': Last diff backup duration','18','7d','s','Duration of the last differential backup.','3','365d','0','0','mssql.backup.diff.duration[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411389','45613ebe8c77431fbfa3ab00d39e68e5','MSSQL DB \'\{#DBNAME}\': Last diff backup (time ago)','18','7d','s','The amount of time since the last differential backup.','3','365d','0','0','mssql.backup.diff[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411390','5da7fa72e56740d3938e8bb5bb32839e','MSSQL DB \'\{#DBNAME}\': Last full backup duration','18','7d','s','Duration of the last full backup.','3','365d','0','0','mssql.backup.full.duration[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411391','32c38b20af8f42698fb96bf0bbb05dec','MSSQL DB \'\{#DBNAME}\': Last full backup (time ago)','18','7d','s','The amount of time since the last full backup.','3','365d','0','0','mssql.backup.full[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411392','a7aaa846c6694ddf9daf5d18db5a3037','MSSQL DB \'\{#DBNAME}\': Last log backup duration','18','7d','s','Duration of the last log backup.','3','365d','0','0','mssql.backup.log.duration[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411393','453a48800bce43b58a372b7466b944bd','MSSQL DB \'\{#DBNAME}\': Last log backup (time ago)','18','7d','s','The amount of time since the last log backup.','3','365d','0','0','mssql.backup.log[\"\{#DBNAME}\"]','10631',NULL,'411363','2','','',''),('411394','f8bc0815cbc1471eb949429a95503287','MSSQL DB \'\{#DBNAME}\': Recovery model','18','7d','','Recovery model selected:\r\n1 = Full\r\n2 = Bulk_logged\r\n3 = Simple','3','365d','0','0','mssql.backup.recovery_model[\"\{#DBNAME}\"]','10631','154','411363','2','','',''),('411395','ccd715be77234994b8931ca89abb015a','MSSQL DB \'\{#DBNAME}\': Active transactions','18','7d','','Number of active transactions for the database.','3','365d','0','0','mssql.db.active_transactions[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411396','cba4bf9b39fc4cd69152f15cfd0edb56','MSSQL DB \'\{#DBNAME}\': Data file size','18','7d','B','Cumulative size of all the data files in the database including any automatic growth. Monitoring this counter is useful, for example, for determining the correct size of `tempdb`.','3','365d','0','0','mssql.db.data_files_size[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411397','9cd2a1a539604c68b4540d424a608d4c','MSSQL DB \'\{#DBNAME}\': Log bytes flushed per second','18','7d','Bps','Total number of log bytes flushed per second. Useful for determining trends and utilization of the transaction log.','0','365d','0','0','mssql.db.log_bytes_flushed_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411398','ff2f2fd39e11418ea93b79ba27b73e3d','MSSQL DB \'\{#DBNAME}\': Log file size','18','7d','B','Cumulative size of all the transaction log files in the database.','3','365d','0','0','mssql.db.log_files_size[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411399','7466329cc603401095def32026d8182d','MSSQL DB \'\{#DBNAME}\': Log file used size','18','7d','B','Cumulative size of all the log files in the database.','3','365d','0','0','mssql.db.log_files_used_size[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411400','6c874bd1dd7746b4894d5b25e3de0f7c','MSSQL DB \'\{#DBNAME}\': Log flushes per second','18','7d','','Number of log flushes per second.','0','365d','0','0','mssql.db.log_flushes_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411401','64dc4faefc0f4709b5e740c036e9a272','MSSQL DB \'\{#DBNAME}\': Log flush waits per second','18','7d','','Number of commits per second waiting for the log flush.','0','365d','0','0','mssql.db.log_flush_waits_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411402','1e4289626cd540dbbc9e54be9d6a0836','MSSQL DB \'\{#DBNAME}\': Log flush wait time','18','7d','ms','Total wait time (in milliseconds) to flush the log. On an Always On secondary database, this value indicates the wait time for log records to be hardened to disk.','0','365d','0','0','mssql.db.log_flush_wait_time[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411403','e0ebbdccf06e4bd580944eca894fd765','MSSQL DB \'\{#DBNAME}\': Log growths','18','7d','','Total number of times the transaction log for the database has been expanded.','3','365d','0','0','mssql.db.log_growths[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411404','f4705df239ff4b52a7594adc8bff1786','MSSQL DB \'\{#DBNAME}\': Log shrinks','18','7d','','Total number of times the transaction log for the database has been shrunk.','3','365d','0','0','mssql.db.log_shrinks[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411405','23f7b754af114e779bfb12b954041a3a','MSSQL DB \'\{#DBNAME}\': Log truncations','18','7d','','Number of times the transaction log has been shrunk.','3','365d','0','0','mssql.db.log_truncations[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411406','622cd26e368144c7b4b4a760be6e9d80','MSSQL DB \'\{#DBNAME}\': Percent log used','18','7d','%','Percentage of log space in use.','0','365d','0','0','mssql.db.percent_log_used[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411407','2032b8a3889a4a9f941529c4b62aa860','MSSQL DB \'\{#DBNAME}\': State','18','7d','','0 = Online\r\n1 = Restoring\r\n2 = Recovering | SQL Server 2008 and later\r\n3 = Recovery_pending | SQL Server 2008 and later\r\n4 = Suspect\r\n5 = Emergency | SQL Server 2008 and later\r\n6 = Offline | SQL Server 2008 and later\r\n7 = Copying | Azure SQL Database Active Geo-Replication\r\n10 = Offline_secondary | Azure SQL Database Active Geo-Replication','3','365d','0','0','mssql.db.state[\"\{#DBNAME}\"]','10631','146','411364','2','','',''),('411408','e2f693fb31d84532a67d6f7e2f479acc','MSSQL DB \'\{#DBNAME}\': Transactions per second','18','7d','','Number of transactions started for the database per second.','0','365d','0','0','mssql.db.transactions_sec.rate[\"\{#DBNAME}\"]','10631',NULL,'411364','2','','',''),('411409','7503acf68ad44180ace4113d654752d1','MSSQL Job \'\{#JOBNAME}\': Enabled','18','7d','','The possible values of the job status:\r\n0 = Disabled\r\n1 = Enabled','3','365d','0','0','mssql.job.enabled[\"\{#JOBNAME}\"]','10631','139','411365','2','','',''),('411410','a42c8a24b329498581b8a81c13d16076','MSSQL Job \'\{#JOBNAME}\': Last run date-time','18','7d','unixtime','The last date-time of the job run.','3','365d','0','0','mssql.job.lastrundatetime[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','',''),('411411','b86b627c1a234d409950345b9d7a1f73','MSSQL Job \'\{#JOBNAME}\': Last run status message','18','7d','','An informational message about the last run of the job.','4','0','0','0','mssql.job.lastrunstatusmessage[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','',''),('411412','fcc4d2cfa5674d33b8831e03b23f40c5','MSSQL Job \'\{#JOBNAME}\': Next run date-time','18','7d','unixtime','The next date-time of the job run.','3','365d','0','0','mssql.job.nextrundatetime[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','',''),('411413','7bb5fb0220ef4649955049ee1b6d6c73','MSSQL Job \'\{#JOBNAME}\': Run status','18','7d','','The possible values of the job status:\r\n0 ⇒ Failed\r\n1 ⇒ Succeeded\r\n2 ⇒ Retry\r\n3 ⇒ Canceled\r\n4 ⇒ Running','3','365d','0','0','mssql.job.runstatus[\"\{#JOBNAME}\"]','10631','147','411365','2','','',''),('411414','6ae51f0fd7c04e01aa9e1af302d461d0','MSSQL Job \'\{#JOBNAME}\': Run duration','18','7d','s','Duration of the last-run job.','3','365d','0','0','mssql.job.run_duration[\"\{#JOBNAME}\"]','10631',NULL,'411365','2','','','')".

Kind Regards

Comment by Alexander Vladishev [ 2024 Jul 29 ]

It seems that your database has an incorrect encoding. Could you please attach the output of the MySQL command:

SHOW CREATE TABLE items;

All text fields should have this encoding. Please especially check the "description" field.

"description" text COLLATE utf8mb4_bin NOT NULL,
Comment by Alex Marcet [ 2024 Jul 29 ]

Hello!

 

This is outpost of 
SHOW CREATE TABLE items;
MariaDB [zabbix]> SHOW CREATE TABLE items;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Table Create Table

 

 

 

                                                                           |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

items CREATE TABLE `items` (
  `itemid` bigint(20) unsigned NOT NULL,
  `type` int(11) NOT NULL DEFAULT 0,
  `snmp_oid` varchar(512) NOT NULL DEFAULT '',
  `hostid` bigint(20) unsigned NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `key_` varchar(2048) NOT NULL DEFAULT '',
  `delay` varchar(1024) NOT NULL DEFAULT '0',
  `history` varchar(255) NOT NULL DEFAULT '90d',
  `trends` varchar(255) NOT NULL DEFAULT '365d',
  `status` int(11) NOT NULL DEFAULT 0,
  `value_type` int(11) NOT NULL DEFAULT 0,
  `trapper_hosts` varchar(255) NOT NULL DEFAULT '',
  `units` varchar(255) NOT NULL DEFAULT '',
  `formula` varchar(255) NOT NULL DEFAULT '',
  `logtimefmt` varchar(64) NOT NULL DEFAULT '',
  `templateid` bigint(20) unsigned DEFAULT NULL,
  `valuemapid` bigint(20) unsigned DEFAULT NULL,
  `params` text NOT NULL,
  `ipmi_sensor` varchar(128) NOT NULL DEFAULT '',
  `authtype` int(11) NOT NULL DEFAULT 0,
  `username` varchar(64) NOT NULL DEFAULT '',
  `password` varchar(64) NOT NULL DEFAULT '',
  `publickey` varchar(64) NOT NULL DEFAULT '',
  `privatekey` varchar(64) NOT NULL DEFAULT '',
  `flags` int(11) NOT NULL DEFAULT 0,
  `interfaceid` bigint(20) unsigned DEFAULT NULL,
  `description` text NOT NULL,
  `inventory_link` int(11) NOT NULL DEFAULT 0,
  `lifetime` varchar(255) NOT NULL DEFAULT '30d',
  `evaltype` int(11) NOT NULL DEFAULT 0,
  `jmx_endpoint` varchar(255) NOT NULL DEFAULT '',
  `master_itemid` bigint(20) unsigned DEFAULT NULL,
  `timeout` varchar(255) NOT NULL DEFAULT '3s',
  `url` varchar(2048) NOT NULL DEFAULT '',
  `query_fields` varchar(2048) NOT NULL DEFAULT '',
  `posts` text NOT NULL,
  `status_codes` varchar(255) NOT NULL DEFAULT '200',
  `follow_redirects` int(11) NOT NULL DEFAULT 1,
  `post_type` int(11) NOT NULL DEFAULT 0,
  `http_proxy` varchar(255) NOT NULL DEFAULT '',
  `headers` text NOT NULL,
  `retrieve_mode` int(11) NOT NULL DEFAULT 0,
  `request_method` int(11) NOT NULL DEFAULT 0,
  `output_format` int(11) NOT NULL DEFAULT 0,
  `ssl_cert_file` varchar(255) NOT NULL DEFAULT '',
  `ssl_key_file` varchar(255) NOT NULL DEFAULT '',
  `ssl_key_password` varchar(64) NOT NULL DEFAULT '',
  `verify_peer` int(11) NOT NULL DEFAULT 0,
  `verify_host` int(11) NOT NULL DEFAULT 0,
  `allow_traps` int(11) NOT NULL DEFAULT 0,
  `discover` int(11) NOT NULL DEFAULT 0,
  `uuid` varchar(32) NOT NULL DEFAULT '',
  `name_upper` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`itemid`),
  KEY `items_3` (`status`),
  KEY `items_4` (`templateid`),
  KEY `items_5` (`valuemapid`),
  KEY `items_6` (`interfaceid`),
  KEY `items_7` (`master_itemid`),
  KEY `items_1` (`hostid`,`key_`(764)),
  KEY `items_8` (`key_`(768)),
  KEY `items_9` (`hostid`,`name_upper`),
  CONSTRAINT `c_items_1` FOREIGN KEY (`hostid`) REFERENCES `hosts` (`hostid`),
  CONSTRAINT `c_items_2` FOREIGN KEY (`templateid`) REFERENCES `items` (`itemid`),
  CONSTRAINT `c_items_3` FOREIGN KEY (`valuemapid`) REFERENCES `valuemap` (`valuemapid`),
  CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`),
  CONSTRAINT `c_items_5` FOREIGN KEY (`master_itemid`) REFERENCES `items` (`itemid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 sec)

Comment by Alexander Vladishev [ 2024 Jul 29 ]

Your table has the incorrect encoding:

CHARSET=latin1 COLLATE=latin1_swedish_ci

To fix this issue, you need to convert all text fields to UTF-8 encoding. On this page, one of the methods for converting your database to a Zabbix-supported encoding is described.

Comment by Alex Marcet [ 2024 Jul 30 ]

Hello sasha !

I have other Zabbix server, with the same versión....

I have the same description..

And in this sever we can add the template...

 

 

 

Comment by Alex Marcet [ 2024 Jul 30 ]

I have acces to other zabbix server, we have 2 difernetes but same verison..

In one we don't have any problem for import..

but on the other one we have a problems..

 

sasha  say me the problem is encoding of databse.. but i compare with other server and the all servers have the same encodnig..

Comment by Alexander Vladishev [ 2024 Jul 30 ]

In your case, the encoding is displayed for the table as a whole. Could you please provide a part of the output that contains this information? Something like this:

) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci

 

Comment by Alex Marcet [ 2024 Jul 30 ]

Hello sasha 

This is my server zabbix with this encoding and are running OK!


This is server who i have problems to import:

Comment by Alexander Vladishev [ 2024 Jul 30 ]

Fix the encoding and the problem will disappear. I provided a link to the document on how to do this above.

Generated at Sun Apr 06 18:11:57 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.