Comments (29)
Have you specified user and password in json config? Press F12 (Developer Tools) to analyze problem.
from grafana-zabbix.
yea i have specified user name n pwd in json config file.
from grafana-zabbix.
Please, show screenshot of datasource configuration menu
from grafana-zabbix.
Are there any errors in the browser's console? (F12 for development tools and then console tab)
from grafana-zabbix.
Please find the screenshot of datasource config and the console tab (F12 )
from grafana-zabbix.
Does your web server require authorization?
from grafana-zabbix.
no... i use the same URL and username n pwd to get the zabbix data using api...
from grafana-zabbix.
Look like your web server (zabbix.isus.emc.com) don't allow cross-domain requests from localhost:3000
from grafana-zabbix.
What web server are you using?
from grafana-zabbix.
Alex, no problem in zabbix api page. Diwahars, what version of zabbix do you have?
from grafana-zabbix.
Zabbix 2.2
On May 19, 2015 11:00 PM, "nucleusv" [email protected] wrote:
Alex, no problem in zabbix api page. Diwahars, what version of zabbix do
you have?—
Reply to this email directly or view it on GitHub
#17 (comment)
.
from grafana-zabbix.
Look at api_jsonrpc.php
It must look like
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Content-Type');
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Max-Age: 1000');
/* THIS STRING ALLOWS OPTIONS TEST QUERY - ADD THIS LINE */
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
return;
}
from grafana-zabbix.
@nucleusv zabbix api blocks cross-origin resource sharing (cross-domain requests)?
from grafana-zabbix.
Yes, in old version. In 2.4 it seems OK, download zabbix sources, and check this, if in old versions no such line
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
return;
}
I think it should be added to install instructions.
from grafana-zabbix.
i have a test server with zabbix2.4.. i tried using that to... but still i get error..
from grafana-zabbix.
Can you test http instead https? May be problem in grafana.
from grafana-zabbix.
it works with http for zabbix2.4, but still same prob exists for zabbix 2.2...
from grafana-zabbix.
Show screenshot with zabbix 2.2 where grafana performs OPTIONS request OR request with errors, have you changed api_jsonrpc.php page ?
from grafana-zabbix.
Have you added headers output
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Content-Type');
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Max-Age: 1000');
?
from grafana-zabbix.
I have not yet changed api_jsonrpc page..., but changed https to http.. It
worked for zabbix2.4... Likewise I tried for zabbix 2.2... It didn't
work... Will check by changing the api page...
There is no other way to rectify this error... Rather than changing the api
page??
On May 19, 2015 11:51 PM, "nucleusv" [email protected] wrote:
Show screenshot with zabbix 2.2 where grafana do OPTIONS request OR
request with errors, have you changed api_jsonrpc.php page ?—
Reply to this email directly or view it on GitHub
#17 (comment)
.
from grafana-zabbix.
There is no other way to rectify this error... Rather than changing the api
page??
Yes, it is problem in this page
from grafana-zabbix.
https://support.zabbix.com/browse/ZBXNEXT-1377
from grafana-zabbix.
ok...
so i should add these headers is it?
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Content-Type');
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Max-Age: 1000');
from grafana-zabbix.
@nucleusv Is this error in zabbix 2.2 only or all version less than 2.4?
from grafana-zabbix.
less than 2.4
from grafana-zabbix.
Ok, I'll describe this in docs.
from grafana-zabbix.
@nucleusv should i add these headers is it?
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Content-Type');
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Max-Age: 1000');
or this one
/* THIS STRING ALLOWS OPTIONS TEST QUERY - ADD THIS LINE */
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
return;
}
?
from grafana-zabbix.
headers and OPTIONS check, replace if there some of these headers
from grafana-zabbix.
Added fix instructions.
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.