icingaweb2-module-grafana icon indicating copy to clipboard operation
icingaweb2-module-grafana copied to clipboard

Time periods sometimes cannot be choose

Open BowgartField opened this issue 4 years ago • 8 comments

Sometimes for no reason it is impossible to choose the time period you want on the graph shown in services

Expected Behavior

We shoul'd be capable to choose a period time.

Possible Solution

I thinks that's a JS bug but i don't knwo excatly why it's happen.

Steps to Reproduce (for bugs)

Video link for demo -> All working but Hours not. And that's different sometimes

Your Environment

image image

  • Version used (icinga2 --version): r2.10.3-1 *System information: Platform: Debian GNU/Linux Platform version: 10 (buster) Kernel: Linux Kernel version: 4.19.0-5-amd64 Architecture: x86_64
  • Enabled features (icinga2 feature list): image
  • Config validation (icinga2 daemon -C): [2020-04-20 11:10:56 +0200] information/cli: Icinga application loader (version: r2.10.3-1) [2020-04-20 11:10:56 +0200] information/cli: Loading configuration file(s). [2020-04-20 11:10:56 +0200] information/ConfigItem: Committing config item(s). [2020-04-20 11:10:56 +0200] information/ApiListener: My API identity: Cryptos.pulseheberg.com [2020-04-20 11:10:57 +0200] warning/ApplyRule: Apply rule 'docker_check' (in /etc/icinga2/conf.d/services.conf: 118:1-118 :28) for type 'Service' does not match anywhere! [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 PerfdataWriter. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 GraphiteWriter. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 InfluxdbWriter. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 SyslogLogger. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 NotificationComponent. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 IdoMysqlConnection. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 ExternalCommandListener. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 CheckerComponent. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 UserGroup. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 3 TimePeriods. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 ScheduledDowntime. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 2 Users. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 3 Zones. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 3 ServiceGroups. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 52 Services. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 2 HostGroups. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 6 Hosts. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 2 NotificationCommands. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 13 Notifications. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 IcingaApplication. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 Endpoint. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 Downtime. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 2 FileLoggers. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 222 CheckCommands. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 2 ApiUsers. [2020-04-20 11:10:57 +0200] information/ConfigItem: Instantiated 1 ApiListener. [2020-04-20 11:10:57 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars' [2020-04-20 11:10:57 +0200] information/cli: Finished validating the configuration file(s).

BowgartField avatar Apr 20 '20 09:04 BowgartField

Hello,

mostly this problems occurs when the refresh kicks in. Can you disable refresh in icingawb2 and test if you still have this problem?

Regards, Carsten

Mikesch-mp avatar Apr 20 '20 15:04 Mikesch-mp

Hello,

mostly this problems occurs when the refresh kicks in. Can you disable refresh in icingawb2 and test if you still have this problem?

Regards, Carsten

Can you give me the steps to disable refreshing ? Thanks

BowgartField avatar Apr 23 '20 10:04 BowgartField

Just go to your profile in icingaweb2 and disable the autorefresh there.

Mikesch-mp avatar Apr 23 '20 14:04 Mikesch-mp

Ok but I got a error when i try to disable "autorefresh" ^^

BowgartField avatar Apr 23 '20 17:04 BowgartField

Then there is something really wrong with your installation of icingaweb2

Mikesch-mp avatar Apr 24 '20 07:04 Mikesch-mp

Yes and that's suprising me ^

BowgartField avatar Apr 24 '20 17:04 BowgartField

had same problem, that i was unable to select time period (mostly helped scroll page with arrows and got correct value under cursor :) or manualy set requsted time values today checked this forum and found this, disabled autorefresh and all works as intended

now i have to answer to question, which functionality is better: autorefresh or ability to set time values...

petulko8080 avatar Apr 29 '20 11:04 petulko8080

Autorefresh will be soon configureable in icingaweb. maybe a slower resfresh will help.

Mikesch-mp avatar Apr 30 '20 13:04 Mikesch-mp

Should be no problem anymore with icingaweb 2.11

Mikesch-mp avatar Feb 23 '23 11:02 Mikesch-mp