-
Notifications
You must be signed in to change notification settings - Fork 48
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
Dashing issues with refreshing data #29
Comments
You are using it as iframe in Icinga Web 2. That might cause troubles with its own reload and the Dashing triggered events. Try it standalone. |
I have the same issue with the standalone server. While I don't know the solution I have explored the problem a bit. The data is provided by jobs/icinga2.rb. A simple "icinga.run" seems to gather all the data. Afterwards it sends the data to the "widgets" (all these square boxes) using "send_event()". After stopping dashing (this is when i first see something on the dashboard as described) another log-message is displayed: "xxx.xxx.xxx.xxx - - [28/Aug/2017 14:24:11] "GET /events HTTP/1.1" 200 - 42.6906". So it seems like the "events" page is loading for 42 seconds (the whole runtime of the server in this case) and only after closing the server the page returns the result, which can then finally be displayed on the widgets. When i refresh the page the events page also returns but the widgets stay empty. I guess upon refresh we call it again right away, which might stop the data from being displayed, but that doesnt sound right. Now the open question is, why does the events page only return when shutting down the server, and how can that be fixed. I dont know more about this. I read somewhere else that someone might hand in a pull request which migrates the webserver dashing is running on from "thin" to "puma", which might resolve this issue, so I am looking forward to that! |
To be honest, I have no idea here. If one comes up with a PoC/PR for puma, much appreciated. |
Please continue in #47 which acts as a general issue to replace thin with something else, or find any other solution. |
All,
I am using the latest vagrant icinga2 build / latest files from the dashing-icinga2 repo and having issues with pulling data and viewing it on the dashboard.
I am able to view the widget data when i restart the dashboard, but if I go to any other part of the site and come back to the dashboard, i get no data.
Any light on this issue will be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: