Prerequisites
InsightFinder Zabbix collector only requires READ only permissions to collect data from Zabbix Server.
- Create a user and user group for the collector to use in Zabbix server.
- Assign all READ permissions to all Templates in that user group
- Assign all READ permissions to the hosts groups in that user group.
- Have the username and password ready for that user.
Installation
- Go to https://github.com/insightfinder/InsightAgent/releases
- Download the latest Zabbix collector file.
- Unzip the file to a place.
- Add the following cron to trigger the collector run every 5 minutes.
*/5 * * * * /opt/zabbix-collector/getmessages_zabbix.py
Configuration
We support streaming the following data to InsightFinder for analysis.
- Metric
- Log
- Problem
For each type of data you want to stream, simply create a .ini file under the conf.d folder following the example here.
Key Configuration Items
Source | Config | Description |
---|---|---|
zabbix | url | The URL of the target Zabbix server to get data from. |
user | The username of the Zabbix server. | |
password | The password of the Zabbix server. | |
host_groups | The host group names (separated by comma) need to stream data. | |
template_ids | The template Ids (separated by comma) need to stream data. | |
insightfinder | user_name | The username in InsightFinder cloud. |
license_key | The license key in InsightFinder cloud. | |
project_name | The name of the project to store the data. | |
system_name | The system name which the projects are associated with | |
project_type | Types of the data streaming. 1. metric: Stream Zabbix metric data. 2. log: Stream Zabbix log data. 3. alert: Stream Zabbix Problems data. | |
sampling_interval | Interval for data sampling (minutes). | |
run_interval | Interval for collector to run (minutes). |