-
Notifications
You must be signed in to change notification settings - Fork 92
Config parsing inconsistency regarding 'indirectproxyrefresh' #153
Comments
Its not a bolean value, becaue themost users dont get it to set 0 or 1 (Zend does not use true/false) in the configuration. How did you set it, using WebUI or directly with vi? |
Thanks for your response! I set the value through vim. ( The main point of my report was that i found it strange that in other config items the value seems to be accepted fine when surrounded by quotes, while for |
i have to test it, for me it works via webgui without problems. |
I did some changes and tests today. With this config [grafana]
host = "192.168.178.52:3000"
protocol = "https"
defaultdashboard = "icinga2-default"
datasource = "influxdb"
accessmode = "indirectproxy"
theme = "light"
defaultorgid = "1"
debug = "1"
shadows = "0"
timerange = "6h"
timerangeAll = "1h"
defaultdashboardpanelid = "2"
version = "1"
ssl_verifypeer = "0"
ssl_verifyhost = "0"
authentication = "token"
height = "280"
width = "640"
enableLink = "yes"
usepublic = "no"
proxytimeout = "60"
apitoken = "eyJrIjoiSFRiYXRPSEZydFk3TmtGeFNyTjl4c0ZDSm45TUFZVk0iLCJuIjoiY3ZiY3ZiY3YiLCJpZCI6MX0="
defaultdashboarduid = "FxAre-ekz"
indirectproxyrefresh = "yes" The graph gets refreshed more or less frequently (think its a browser thing) May 9 22:40:42 koelin02 grafana-server: t=2018-05-09T22:40:42+0200 lvl=info msg=Rendering logger=png-renderer path="d-solo/aFE1d6gik/hostalive?var-hostname=koelin01.fritz.box&var-service=hostalive&var-command=hostalive&panelId=1&orgId=&width=640&height=280&theme=light&from=now-6h&to=now"
May 9 22:43:40 koelin02 grafana-server: t=2018-05-09T22:43:40+0200 lvl=info msg=Rendering logger=png-renderer path="d-solo/aFE1d6gik/hostalive?var-hostname=koelin01.fritz.box&var-service=hostalive&var-command=hostalive&panelId=1&orgId=&width=640&height=280&theme=light&from=now-6h&to=now"
May 9 22:44:43 koelin02 grafana-server: t=2018-05-09T22:44:43+0200 lvl=info msg=Rendering logger=png-renderer path="d-solo/aFE1d6gik/hostalive?var-hostname=koelin01.fritz.box&var-service=hostalive&var-command=hostalive&panelId=1&orgId=&width=640&height=280&theme=light&from=now-6h&to=now"
May 9 22:47:42 koelin02 grafana-server: t=2018-05-09T22:47:42+0200 lvl=info msg=Rendering logger=png-renderer path="d-solo/aFE1d6gik/hostalive?var-hostname=koelin01.fritz.box&var-service=hostalive&var-command=hostalive&panelId=1&orgId=&width=640&height=280&theme=light&from=now-6h&to=now"
May 9 22:48:45 koelin02 grafana-server: t=2018-05-09T22:48:45+0200 lvl=info msg=Rendering logger=png-renderer path="d-solo/aFE1d6gik/hostalive?var-hostname=koelin01.fritz.box&var-service=hostalive&var-command=hostalive&panelId=1&orgId=&width=640&height=280&theme=light&from=now-6h&to=now"
May 9 22:49:49 koelin02 grafana-server: t=2018-05-09T22:49:49+0200 lvl=info msg=Rendering logger=png-renderer path="d-solo/aFE1d6gik/hostalive?var-hostname=koelin01.fritz.box&var-service=hostalive&var-command=hostalive&panelId=1&orgId=&width=640&height=280&theme=light&from=now-6h&to=now" if i set |
Thanks for looking into this! I've tested the latest master and everything works as described for me too. |
It seems that the parsing of boolean values in the icingaweb2-module-grafana
config.ini
contains inconsistencies.For items such as
enableLink
the value should be wrapped in quotes (`enableLinks = "yes") in order for the setting to be effective.For the newly added
indirectproxyrefresh
item it seems that this setting will only be effective if the value is not wrapped in quotes. (so:indirectproxyrefresh = yes
). This seems to be inconsistent with the other settings.Expected Behavior
Set
indirectproxyrefresh = "yes"
stops graphs from rendering every 10 or so seconds.Current Behavior
indirectproxyrefresh = "yes"
does not yield any changes in the module's refreshing behavior, whereasindirectproxyrefresh = yes
does.Possible Solution
Ensure the parsing of boolean values in the configuration is consistent.
Steps to Reproduce (for bugs)
indirectproxyrefresh = "yes"
indirectproxyrefresh = yes
Your Environment
icinga2 --version
):r2.8.2-1The text was updated successfully, but these errors were encountered: