Dear Support,
We are following the KB "Nagios XI - Using Grafana With Existing Performance Data"
https://support.nagios.com/kb/article/n ... ana_Config
During Grafana configuration we are not able to add DATA SOURCE, the Access: proxy option is not visible (We have only server (default) and brower options) available. Both are not working for us.
Pl refer the attached screen for reference. Kindly help us.
Curl output for reference:-
curl http://localhost/pnp4nagios
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://localhost/pnp4nagios">here</a>.</p>
</body></html>
Unable to configure Graphana data source
-
ganesh.batwal
- Posts: 16
- Joined: Thu May 04, 2017 7:48 am
Unable to configure Graphana data source
You do not have the required permissions to view the files attached to this post.
Re: Unable to configure Graphana data source
Can you make this work by selecting the Server (Default) option?
It seems like the Proxy option was renamed to Server in newer version of Grafana.
https://github.com/grafana/grafana/issues/12913
It seems like the Proxy option was renamed to Server in newer version of Grafana.
https://github.com/grafana/grafana/issues/12913
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
ganesh.batwal
- Posts: 16
- Joined: Thu May 04, 2017 7:48 am
Re: Unable to configure Graphana data source
Dear Support,
Thanks for an update.
We tried both the options (Server & brower), But still the error messages are same.
Kindly refer the attached error message screen and Grafana installation logs for help.
Thanks for an update.
We tried both the options (Server & brower), But still the error messages are same.
Kindly refer the attached error message screen and Grafana installation logs for help.
You do not have the required permissions to view the files attached to this post.
Re: Unable to configure Graphana data source
We haven't been able to recreate the issue in-house. One difference we noticed was in the curl output - you get "302 Found", and we get "301 Moved Permanently", which probably has to do with some custom apache rewrite rules that you may have. Let's take a look at some of the configs - our developers will have to look into this issue more closely.
Note: Grafana is not one of our product, and even though we offer/support integration in Nagios XI, we are not familiar enough with it to actually support it "officially". Having said that, we will do our best to help you out.
Can you post the following files on the forum - /usr/share/grafana/conf/defaults.ini, /usr/local/pnp4nagios/etc/config.php, /etc/httpd/conf.d/pnp4nagios.conf, and /etc/httpd/conf/httpd.conf?
What is the OS/architecture of this server?
Click on the "Save & Test" button again, then run a tail on the apache error log, and show the output in code wraps:
It's not apparent from the screenshots, so just to clarify - you are selecting Type = PNP, correct?
Note: Grafana is not one of our product, and even though we offer/support integration in Nagios XI, we are not familiar enough with it to actually support it "officially". Having said that, we will do our best to help you out.
Can you post the following files on the forum - /usr/share/grafana/conf/defaults.ini, /usr/local/pnp4nagios/etc/config.php, /etc/httpd/conf.d/pnp4nagios.conf, and /etc/httpd/conf/httpd.conf?
What is the OS/architecture of this server?
Code: Select all
cat /etc/*release
uname -aCode: Select all
tail -100 /var/log/httpd/error_logYou do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
ganesh.batwal
- Posts: 16
- Joined: Thu May 04, 2017 7:48 am
Re: Unable to configure Graphana data source
Thanks for the support,
Now the DataSource is working fine..
fyi ..We have removed the below mention configuration from "/etc/httpd/conf/httpd.conf" These settings we have added for configuration of SSL redirection.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Now the DataSource is working fine..
fyi ..We have removed the below mention configuration from "/etc/httpd/conf/httpd.conf" These settings we have added for configuration of SSL redirection.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
-
ganesh.batwal
- Posts: 16
- Joined: Thu May 04, 2017 7:48 am
Re: Unable to configure Graphana data source
Thank for the support,
Datasource working screen attached for reference.
Datasource working screen attached for reference.
You do not have the required permissions to view the files attached to this post.
Re: Unable to configure Graphana data source
I am glad your issue has been resolved! I am closing this topic. If you have any further questions, please start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!