Loading data into ZbxWizz can be achieved by importing data from Zabbix using the API or from CSV and XLS files.
Data can be imported from CSV and XLS files by accesing the Data -> Import CSV or Data -> Import XLS menus.
When importing from XLS select to import all worksheets or just a few selected ones. The imported sheet will be added to the current set of worksheets in ZbxWizz.
When importing from CSV one can opt to load the CSV file in the current active worksheet or to create a new one.
To import data from Zabbix, access the Data -> Import from Zabbix menu. In the newly opened modal window select first the Zabbix resource type which you want to import and proceed to write the Zabbix API request in the JSON editor.
The API request is not a full request as per the Zabbix API documentation, but only the parameters part. As an example, let's assume I want to retrieve a list of host from Zabbix.
The standard Zabbix API request looks like this:
{
"jsonrpc": "2.0",
"method": "host.get",
"params": {
"output": "extend",
"limit": "100"
},
"id": 1
}
With ZbxWizz, I just configure the params part, as the rest of the boilerplate is automatically added on request time. So the request looks like this:
{
"output": "extend",
"limit": "100"
}
By default you will only get the first 5 items. This limit is currently hard-coded in order to avoid getting too much data when the request was not properly configured. To override this limitation, just add the limit parameter in the request:
{
"output":["host","name","proxyid"],
"limit": 500
}
Under the request editor there is a preview box. The role of it is to provide a visual feedback over the JSON validity of the request: as expected green is for valid format and red for invalid. Trying to execute a request which is not valid will not be performed and an error message will be prompted.
At the top of the modal window you will notice a select input named Request templates. The idea of this functionality is to to allow one to save requests for later, repeated use.
The way you use it is that once you're happy with the request template,clicking the Save button and give it a meaningful name. Late on you can load the saved request by selecting in from the list.