Report this

What is the reason for this report?

How to configure a monitoing grafana server dashboard url in zabbix screen url

Posted on September 2, 2020

That must be configured in the zabbix server–>Screen–>url to be able to monitor a url or link of a Grafana server dashboard. When I put it on the zabbix screen it appears blank with a box, the Grafana graph does not appear.

Tks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

There are a few steps you can take to configure a Grafana server dashboard URL in a Zabbix screen. It involves creating a Grafana dashboard and then linking it to Zabbix.

1. Configure Grafana

First, you need to ensure your Grafana server is properly configured and accessible. The server should be running, and the dashboards you wish to display in Zabbix should be set up. You’ll also want to make sure the correct permissions are set for viewing the dashboards.

You also need to configure Grafana to allow embedding. To do this, add the following to your Grafana configuration file (usually located at /etc/grafana/grafana.ini):

[panels]
disable_sanitize_html = false

[security]
allow_embedding = true

Restart the Grafana server after making these changes.

2. Get the URL of the Grafana Dashboard

Navigate to the dashboard you wish to display in Zabbix, then click the “share” option on the dashboard panel you wish to share. Switch to the “Embed” tab and copy the provided URL. This URL is what you’ll use in Zabbix.

3. Configure Zabbix

Navigate to your Zabbix server screen where you want to add the Grafana dashboard URL.

  1. Go to Monitoring -> Screens.
  2. Click on “Create new screen” or choose an existing one.
  3. Choose a suitable Name and Screen’s columns and rows.
  4. Click on “Add” to create the screen.
  5. Now, click on “Change” in any of the blocks inside your newly created screen.
  6. Select “URL” from the list of resource types.
  7. Paste the copied URL from Grafana into the “URL” field.
  8. Click “Add” to finalize your changes.

Note: Ensure the Zabbix server can reach your Grafana server. If you have any firewalls or networking restrictions in place, these will need to be configured to allow the Zabbix server to reach the Grafana server.

Troubleshooting

If you are seeing a blank box with the Grafana graph not appearing, here are a few things you can check:

  • Ensure your Zabbix server can access your Grafana server. You can test this by accessing the Grafana dashboard URL from the Zabbix server.
  • If you are using Grafana in anonymous mode, make sure that the anonymous user has the right permissions to view the dashboard.
  • Check whether you have enabled embedding in the Grafana configuration and restart the Grafana server.
  • Make sure the URL you copied from Grafana is correct. It should be an “Embed” URL.
  • Verify if the firewall or any network policies are not blocking the connection between Grafana and Zabbix.
  • If you have HTTPS enabled on the Grafana server, make sure that your Zabbix server can handle HTTPS connections, or try disabling HTTPS on the Grafana server to see if that fixes the issue.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.