Our next-gen architecture is built to help you make sense of your ever-growing data Watch a 4-min demo video!

Back to All Integrations

Zabbix Zabbix

Last Updated: Aug. 29, 2022

Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual machines (VMs), and cloud services. Zabbix provides monitoring metrics, such as network utilization, CPU load, and disk space consumption.

Prerequisites

  • Have Zabbix installed on your environment
  • Have Fluentbit installed on your environment
  • Active Coralogix account with Metric bucket and a working Grafana dashboard for metrics

Configuration

In order, to tail the logs with Fluentbit we must first enable the Zabbix export directory.
The steps differ if you’re using Docker or VM, follow the one that suits your use case.

VM

  • The relevant config is located in: /etc/zabbix/server.conf
  • Edit the config
  • Uncomment and update the lines mentioned as follows (use a custom path to store the data from Zabbix, the path will later be used in Fluentbit):
ExportDir=<Path_To_Export_TheData>
ExportFileSize=1M

Note: If the service doesn’t run, check the permissions on the path used for the export.

Docker

  • Enter Zabbix dir
  • Paste the following commands:
    This will export the data from Zabbix to this path: /var/lib/zabbix/export
echo "ZBX_EXPORTFILESIZE=1M" >> ./env_vars/.env_srv
echo "ZBX_EXPORTDIR=/var/lib/zabbix/export" >> ./env_vars/.env_srv

Fluentbit config

Below will be the config needed for Fluentbit to tail the data from Zabbix and forward it to Coralogix.
Paste the config to the fluent-bit.conf and fill in the mandatory fields:

  • Path_To_Data – the location of the exported data from Zabbix
  • Endpoint – your cluster endpoint location according to the geo-location (can be found in a table at the end of the page)
  • AppName – your application name, which will be added to your metric attributes
  • SubsystemName –  your subsystem, which will be added to your metric attributes
  • PrivateKey – your Coralogix Private Key, which you can find in Settings > Send Your Data
[INPUT]
    Name    tail
    Path    <Path_To_Data>/history-history-syncer-*.ndjson
    Tag     Item
[OUTPUT]
    Name                  http
    Match                 Item
    Host                  <Endpoint>
    Port                  443
    URI                   /zabbix/api/v1/real-time-export
    Format                json
    TLS                   On
    Json_date_key         false
    Header                Authorization <PrivateKey>
    Header                data-type Item
    Header                destination Metrics
    Header                application-name <AppName>
    Header                subsystem <SubsystemName>
    compress              gzip
    Retry_Limit           10

[INPUT]
    Name    tail
    Path    <Path_To_DATA>/trends-history-syncer-*.ndjson
    Tag     Trend
[OUTPUT]
    Name                  http
    Match                 Trend
    Host                  <Endpoint>
    Port                  443
    URI                   /zabbix/api/v1/real-time-export
    Format                json
    TLS                   On
    Json_date_key         false
    Header                Authorization <PrivateKey>
    Header                data-type Trend
    Header                destination Metrics
    Header                application-name <AppName>
    Header                subsystem <SubsystemName>
    compress              gzip
    Retry_Limit           10


[INPUT]
    Name    tail
    Path    <Path_To_DATA>/problems-history-syncer-*.ndjson
    Tag     Trigger
[OUTPUT]
    Name                  http
    Match                 Trigger
    Host                  <Endpoint>
    Port                  443
    URI                   /zabbix/api/v1/real-time-export
    Format                json
    TLS                   On
    Json_date_key         false
    Header                Authorization <PrivateKey>
    Header                data-type Trigger
    Header                destination Metrics
    Header                application-name <AppName>
    Header                subsystem <SubsystemName>
    compress              gzip
    Retry_Limit           10

Note: the header “destination Metrics” will send Coralogix only metrics, to get data for both logs and metrics delete the header. The default is “LogsAndMetrics”

Endpoints

clusterURL
EUzabbix.coralogix.com
USzabbix.coralogix.us
INzabbix.coralogix.in
EU2zabbix.eu2.coralogix.com
SGzabbix.coralogixsg.com

On this page