intellitrend / zabbix-csv-host-import-module

Zabbix frontend module for importing hosts via CSV files
GNU Lesser General Public License v3.0
32 stars 13 forks source link

Impossible to insert Tag pairs because of comma #12

Closed mbuyukkarakas closed 7 months ago

mbuyukkarakas commented 7 months ago

When I add multiple tag pairs, Excel or other editors are inserting ( ; ) as delimiter. And there is no way to change this with an comma ( , ) This makes impossible to insert multiple tag pairs Must be developed a solution for this , I need to insert thousands of hosts with tags.

thank you

intellitrend-team commented 7 months ago

This is a good point. When a CSV file is written using , as delimiters, those other fields indeed can't be separated correctly anymore. We will need to improve the code so that both ; and , are supported as delimiters and pick a different separator for the fields.

intellitrend-team commented 7 months ago

With the latest change, it is possible to choose between comma, semicolon and tabulator as a separator char. That should cover the most common CSV formats.

Some additional changes are still required so that the example CSV file will also use that separator when you download it. Right now, it is always using semicolon.