-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zabbix list is not displayed #17
Comments
Have you specified user and password in json config? Press F12 (Developer Tools) to analyze problem. |
yea i have specified user name n pwd in json config file. |
Are there any errors in the browser's console? (F12 for development tools and then console tab) |
Does your web server require authorization? |
no... i use the same URL and username n pwd to get the zabbix data using api... |
Look like your web server (zabbix.isus.emc.com) don't allow cross-domain requests from localhost:3000 |
What web server are you using? |
Alex, no problem in zabbix api page. Diwahars, what version of zabbix do you have? |
Zabbix 2.2
|
Look at api_jsonrpc.php It must look like /* THIS STRING ALLOWS OPTIONS TEST QUERY - ADD THIS LINE */ |
@nucleusv zabbix api blocks cross-origin resource sharing (cross-domain requests)? |
Yes, in old version. In 2.4 it seems OK, download zabbix sources, and check this, if in old versions no such line I think it should be added to install instructions. |
Can you test http instead https? May be problem in grafana. |
it works with http for zabbix2.4, but still same prob exists for zabbix 2.2... |
Show screenshot with zabbix 2.2 where grafana performs OPTIONS request OR request with errors, have you changed api_jsonrpc.php page ? |
Have you added headers output header('Access-Control-Allow-Origin: *'); ? |
I have not yet changed api_jsonrpc page..., but changed https to http.. It There is no other way to rectify this error... Rather than changing the api
|
Yes, it is problem in this page |
ok... so i should add these headers is it? |
@nucleusv Is this error in zabbix 2.2 only or all version less than 2.4? |
less than 2.4 |
Ok, I'll describe this in docs. |
@nucleusv should i add these headers is it? or this one |
headers and OPTIONS check, replace if there some of these headers |
Added fix instructions. |
Hi,
I have configured zabbix data source in grafana, but i couldn't see the hostgroup, host and item in the drop down list.
The text was updated successfully, but these errors were encountered: