Skip to content
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

indirectproxy mode - default dashboard #152

Closed
phil-or opened this issue May 7, 2018 · 10 comments
Closed

indirectproxy mode - default dashboard #152

phil-or opened this issue May 7, 2018 · 10 comments

Comments

@phil-or
Copy link

phil-or commented May 7, 2018

Maybe the same Problem like #145

Expected Behavior

correct representation of a graph, if there is no graph configured and the default dashboard is used in Icingaweb2 (using the indirectproxy mode)

Current Behavior

indirectproxy mode can't fetch graphs for hosts, if there is no graph configured and the Default Dashboard should be used.
39174855-5121f82a-4798-11e8-8a0a-e6b5abc789bc
If I open the link to Grafana, the correct Panel is displayed .
For Services without configured Graphs, the Default Dashboard is displayed correctly.
Using the proxy mode, there are no Problems.

Possible Solution

Steps to Reproduce (for bugs)

  1. create a icinga command and use it for a host object
  2. configure Default Dashboard "icinga2-default"

Context

Your Environment

  • Icinga Web 2 Grafana version (System - About): latest master
  • Icinga Web 2 version and modules (System - About): 2.5.3
  • Version used (icinga2 --version): 2.8.4
  • Operating System and version: centos 7
  • Grafana: 5.0.4

/etc/icingaweb2/modules/grafana/config.ini:
[grafana]
host = "hostname:3000"
protocol = "http"
shadows = "0"
theme = "light"
datasource = "influxdb"
accessmode = "indirectproxy"
debug = "1"
defaultorgid = "0"
defaultdashboard = "icinga2-default"
enableLink = "yes"
usepublic = "no"
timerangeAll = "1w/w"
height = "400"
width = "640"
defaultdashboardpanelid = "2"
version = "1"
authentication = "token"
apitoken = "xxxxx"
defaultdashboarduid = "SpYSCSgik"
proxytimeout = "15"

@Mikesch-mp
Copy link
Owner

Which version of the module? latest Master is now set to 1.2.4 at the moment.

@phil-or
Copy link
Author

phil-or commented May 7, 2018

yes, i am using 1.2.4

@Mikesch-mp
Copy link
Owner

defaultorgid=0 ?

@Mikesch-mp
Copy link
Owner

Also try to set defaultdashboardid to 1, iam still trying to figure out how Grafana counts panels. Sometimes it starts with one , sometimes at 2 .... depending if converted or freshly imported.

@phil-or
Copy link
Author

phil-or commented May 7, 2018

same problem, if I change the defaultdashboardid...
But the link to Grafana is correct and I get to the Defaultdashboard.

Using proxy mode all works fine

@Mikesch-mp
Copy link
Owner

Did you change defaultorgid too ?

@phil-or
Copy link
Author

phil-or commented May 7, 2018

yes, I changed it too, but it still doesn't work
Graphs for Services will be displayed correct, just host objects, using the defaultdashboard don't work

@Mikesch-mp
Copy link
Owner

Graphs for Services will be displayed correct, just host objects, using the defaultdashboard don't work

Please configure a graph for hostalive or whatever command you are using and use one of the provided dashboards. I have to look into this to get it work with the default one.

@Mikesch-mp
Copy link
Owner

I uploaded a new default dashboard which should solve this problem. Hopefully no one has configured services that are named like the host check commands. Please download icinga2-default-test.json and test it.

@phil-or
Copy link
Author

phil-or commented May 14, 2018

Great, your Default Dashboard works with a little change (condition to "OR")

image

Thank you!

@phil-or phil-or closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants