Troubleshoot Zabbix data source issues
This page provides solutions to common issues you may encounter when configuring or using the Zabbix data source. For configuration instructions, refer to Configure the Zabbix data source.
Authentication errors
These errors occur when credentials are invalid, missing, or don’t have the required permissions.
“Login name or password is incorrect” or “Authorization failed”
Symptoms:
- Save & test fails with an authorization error.
- Queries return empty results or access denied messages.
- Group and host drop-downs are empty.
Possible causes and solutions:
“No API access” or empty drop-downs
Symptoms:
- The data source test succeeds, but group, host, or item drop-downs are empty.
- Queries return no data despite the connection being valid.
Solutions:
- Verify the Zabbix user belongs to a user group with frontend access enabled.
- Check that the user group has read permissions on the host groups you want to query.
- In the Zabbix web interface, navigate to Administration > User groups and verify the permissions tab for the relevant user group.
Connection errors
These errors occur when Grafana can’t reach the Zabbix API endpoint.
“Connection refused” or timeout errors
Symptoms:
- Save & test times out or returns a connection error.
- Queries fail with network errors.
Possible causes and solutions:
Proxy or CORS errors
Symptoms:
- Browser console shows CORS-related errors.
- Queries fail when using “Browser” access mode.
Solutions:
- Use Server access mode (the default) so that all API requests go through the Grafana backend rather than the browser.
- If you must use browser access, configure your Zabbix web server to allow CORS requests from the Grafana origin.
Query errors
These errors occur when executing queries against the Zabbix data source.
“No data” or empty results
Symptoms:
- Queries execute without error but return no data.
- Panels show a “No data” message.
Possible causes and solutions:
Query timeout
Symptoms:
- Queries run for a long time and then fail.
- Error messages mention timeout or execution limits.
Solutions:
- Narrow the dashboard time range to reduce the amount of data returned.
- Enable trends for long time ranges to use pre-aggregated data instead of raw history.
- Enable Direct DB Connection for better performance on wide time ranges.
- Increase the Timeout or Query Timeout values in the data source configuration if the defaults are too low for your environment.
- Use
groupByorconsolidateByfunctions to reduce the data point density.
Incorrect data or unexpected values
Symptoms:
- Graph values don’t match what Zabbix shows.
- Data appears shifted or aggregated differently.
Possible causes and solutions:
Direct DB Connection errors
These errors are specific to the Direct DB Connection feature.
“Database connection failed” or SQL errors
Symptoms:
- Queries fail after enabling Direct DB Connection.
- Error messages reference database connection or SQL syntax issues.
Possible causes and solutions:
Template variable errors
These errors occur when using template variables with the Zabbix data source.
Variables return no values
Solutions:
- Verify the data source connection is working by clicking Save & test in the data source settings.
- Check that the Zabbix user has permissions to list the requested resources (host groups, hosts, items).
- For cascading variables, verify that parent variables have valid selections. For example, a Host variable that filters by
$groupreturns no results if$grouphas no selection. - Check that regex filters in the variable query are valid. An invalid regex pattern may silently match nothing.
Variables are slow to load
Solutions:
- Set the variable refresh to On dashboard load instead of On time range change to avoid reloading on every time range adjustment.
- Use specific group or host filters instead of
/.*/to narrow the scope of variable queries. - Increase the Cache TTL in the data source configuration to reduce the frequency of API calls for metric names.
Performance issues
These issues relate to slow queries or high resource usage.
Slow queries on wide time ranges
Symptoms:
- Dashboards take a long time to load when viewing weeks or months of data.
- Panels time out or show loading spinners for extended periods.
Solutions:
- Enable trends in the data source configuration. Trends use pre-aggregated hourly data, which dramatically reduces the data volume for long time ranges.
- Set the After value to match your Zabbix history retention period (for example,
7dor30d). - Enable Direct DB Connection for server-side aggregation, which reduces data transfer.
- Use
groupByfunctions to reduce the data point density for very long time ranges. - Reduce the number of items queried by using more specific filters instead of broad regex patterns like
/.*/.
High API load on Zabbix server
Solutions:
- Increase the Cache TTL to reduce the frequency of metadata API calls.
- Reduce the dashboard auto-refresh interval.
- Enable Direct DB Connection to offload history queries from the Zabbix API.
- Avoid using
/.*/regex in multiple variable queries, as each one triggers a broad API request.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the Grafana configuration file:[log] level = debugRestart Grafana.
Reproduce the issue and review logs in
/var/log/grafana/grafana.log(or your configured log location).Look for entries containing
zabbixfor plugin-specific request and response details.Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If you’ve tried the solutions in this guide and still encounter issues:
- Search the Grafana community forums for similar issues.
- Review open and closed issues on GitHub for known bugs and workarounds.
- Consult the Zabbix documentation for Zabbix-specific configuration guidance.
- Contact Grafana Support if you’re an Enterprise, Cloud Pro, or Cloud Contracted user.
- When reporting issues, include:
- Grafana version and Zabbix plugin version
- Zabbix server version
- Error messages (redact sensitive information)
- Steps to reproduce the issue
- Relevant data source configuration (redact credentials)



