Comments (8)
Now Grafana don't support custom parameters in datasourse configuration. For this reason username and password now sets in plugin.json
file. If your servers have different accounts you will have some troubles with configuration. Once solution is copy datasource directory and change parameters in plugin.json
file:
{
"pluginType": "datasource",
"name": "Zabbix 2",
"type": "zabbix_2",
"serviceName": "ZabbixAPIDatasource",
"module": "plugins/datasource/zabbix_2/datasource",
"partials": {
"config": "app/plugins/datasource/zabbix_2/partials/config.html",
"query": "app/plugins/datasource/zabbix_2/partials/query.editor.html",
"annotations": "app/plugins/datasource/zabbix_2/partials/annotations.editor.html"
},
"username": "user2",
"password": "password2",
This problem will be fixed at Grafana 2.1.
from grafana-zabbix.
Hi Alexander,
first of all thank you for your answer. I've tried this approach but with no much luck. Both servers seem to interfere with each other. I have a dashboard with graphs from both servers and whenever one of them works, the other one doesn't. Any plan C?
Do you know when Grafana 2.1 is expected to be released?
Thank you very much.
from grafana-zabbix.
@kadern0, this configuration is tested and works. So please show you plugins directory structure and and plugin.json of both. And screenshots of datasource settings in Grafana
from grafana-zabbix.
Installed Packages
grafana.x86_64 2.0.2-1
/usr/share/grafana/public/app/plugins/datasource
ls -lh
total 36K
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 elasticsearch
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 grafana
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 graphite
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 influxdb
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 influxdb_08
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 opentsdb
drwxr-xr-x 3 root root 4.0K Jul 1 11:45 sql
drwxr-xr-x 3 root root 4.0K Jul 1 15:54 zabbix
drwxr-xr-x 3 root root 4.0K Jul 2 09:05 zabbix_2`
cat zabbix/plugin.json
{
"pluginType": "datasource",
"name": "Zabbix",
"type": "zabbix",
"serviceName": "ZabbixAPIDatasource",
"module": "plugins/datasource/zabbix/datasource",
"partials": {
"config": "app/plugins/datasource/zabbix/partials/config.html",
"query": "app/plugins/datasource/zabbix/partials/query.editor.html",
"annotations": "app/plugins/datasource/zabbix/partials/annotations.editor.html"
},
"username": "********",
"password": "********",
"trends": true,
"trendsFrom": "7d",
"limitmetrics": 50,
"metrics": true,
"annotations": true
}
cat zabbix_2/plugin.json
{
"pluginType": "datasource",
"name": "Zabbix 2",
"type": "zabbix_2",
"serviceName": "ZabbixAPIDatasource",
"module": "plugins/datasource/zabbix_2/datasource",
"partials": {
"config": "app/plugins/datasource/zabbix_2/partials/config.html",
"query": "app/plugins/datasource/zabbix_2/partials/query.editor.html",
"annotations": "app/plugins/datasource/zabbix_2/partials/annotations.editor.html"
},
"username": "********",
"password": "*******",
"trends": true,
"trendsFrom": "7d",
"limitmetrics": 50,
"metrics": true,
"annotations": true
}
Screenshots:
![screen shot 2015-07-02 at 10 51 38](https://cloud.githubusercontent.com/assets/13137996/8474571/f61b5728-20a8-11e5-9b20-103459fb3bfd.png)
![screen shot 2015-07-02 at 10 51 50](https://cloud.githubusercontent.com/assets/13137996/8474573/f8cd78fc-20a8-11e5-9066-322854ac9f14.png)
![screen shot 2015-07-02 at 10 52 06](https://cloud.githubusercontent.com/assets/13137996/8474576/fb4489fe-20a8-11e5-89d1-c0db9f970e00.png)
As remark, I can get data from both servers (so connection/password problems are out the way), but not at the same time.
from grafana-zabbix.
If I've understood you right, you CAN get graphs of the same datasource on one dashboard BUT you can not both datasources on the same dashboard?
from grafana-zabbix.
Yes. Take a look what happens (each of this graphs uses a different datasource):
If I change the default datasource and I start switching between dashboards one of them will have data and the other one will stop reporting (without changing any configuration).
from grafana-zabbix.
I test this case and got the same result. I will try to find solution.
from grafana-zabbix.
@kadern0 seems this problem fixed. Try to test it. Get code from release branch (https://github.com/alexanderzobnin/grafana-zabbix/tree/release-2.0.0)
from grafana-zabbix.
Related Issues (20)
- replaceAlias function get ignored when Dashboard Transforms like "Join by label" are applied on the dashboard HOT 1
- Plugin is failing to render in new Scenes architecture HOT 1
- Grafana after acknowladge HOT 2
- Cannot connect to zabbix on the same server
- Method not allowed
- Compatibility Matrix table
- Application and item tag filters are no longer interchangeable
- Hide hosts in maintenance for a Triggers query when counting by Problems
- An error occurred within the plugin - Zabbix - Grafana HOT 3
- I can confirm, tha got that work.
- Can't have more than 1 "Config from query results" transform
- Operational data display issue in Zabbix problems panel HOT 7
- Can't read Zabbix issues after Zabbix 7 upgrade HOT 3
- Problem when Trying to Use the "Problems" Query Type HOT 10
- Dont show trend data in history period longer than 2d for colected items
- Query type "Problems" returns an error HOT 4
- A switch to select if when selected just one host then item should have hostname or not
- Public Dashboard shows "Un-authorized" in Grafana v11.0.0 HOT 1
- Fix deprecation warnings
- Plugin stopped working with grafana 10.4.x / 4.5.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-zabbix.