This plugin tries to automate some basic scenarios using CSV as input files. If you have some data in CSV which ypu want to discover and analyze in Zabbix, this is right place to do so.
```
Plugin 'csv' version 0.1:
CSV file reader and parser for Zabbix
It supports reading CSV and getting its data as Zabbix items
{column:x} is replaced by lowercased value of column x
x can be column index (x starts with zero) or header name.
CSV must include header line.
```
To register hosts to Zabbix server based on CSV:
```
zaf csv register
Missing arguments!
register file.csv delim host metadata
host and metadata are strings where:
{COLUMN:x} is replaced by value of column x
{column:x} is replaced by lowercased value of column x
x can be column index (x starts with zero) or header name.
CSV must include header line.
```
### Example ###
There is CSV file with this columns:
Host|CPU|Vulns|Services
coffee-Maker|arm|lotof|hot coffee
usb-Gun|mips|none|calm thunder
If you want to add all of hosts to Zabbix, simple use autodiscovery action based on metadata content. For example, all autodiscovered hosts with metadata ZAF will create host.
Suppose you want to prefix each hostname by 'test_' and you want to lowercase it.