Skip to main content
Released

Disable auto-refresh by default

Related products:Infra Monitoring - Monitoring
  • May 23, 2025
  • 12 replies
  • 49 views

In the damned Resources Status page, auto-refresh is annoying most of the time. It should be disabled by defaut.

12 replies

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • May 27, 2025

Hi ​@Stéphane, the goal of real times pages is to display “fresh data”.

You can click on “Disable autorefresh” icon to stop the refresh. It is not enough?


  • Author
  • May 27, 2025

Hi,
 

> the goal of real times pages is to display “fresh data”.
One of our users complained that it was annoying while writing a new query, because it can load a query that isn’t finished writing yet. He’s the only one for now but many users still use the legacy pages.

 

> You can click on “Disable autorefresh” icon to stop the refresh. It is not enough?
It has to be done for every new session. Also, the refresh takes place even when the tab is not shown. It results in many useless requests.


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • May 28, 2025

Hi ​@Stéphane, there are requests for real-time pages and those for the banner (top counter).

In fact, only those for real time (Resource Status) can be stopped, not those for the top counter.

> One of our users complained that it was annoying while writing a new quer

What do you mean by writing a new query?


  • Author
  • May 28, 2025

>What do you mean by writing a new query?

Editing a CQL query in the search bar on the Resource status page.

 

While editing, if the refresh takes place it issues the query with what is currently in the bar. Thus making a useless query.

Also, another subject but it is related still: why are the terms reordered automatically? Is it an accepted good practice doing that? I haven’t seen this behaviour in any other tool.


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 30, 2025

@Stéphane so in a summary, is your idea that auto-refresh gets automatically disabled whilst the user is typing a search or selecting filters?


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 30, 2025
NewDiscussion ongoing

  • Author
  • June 3, 2025

@Stéphane so in a summary, is your idea that auto-refresh gets automatically disabled whilst the user is typing a search or selecting filters?

My idea was it is disabled by default, and enabled only if user choose to. And the setting to be remembered. But yes, if this is too complicated for you, that would be the least, and also when tab is not active..


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • June 3, 2025

OK thanks. When the tab is inactive, the only refreshed zone is at the top with the “top counter”.


  • Author
  • June 10, 2025

In just twelves minutes. Near 270 HTTP requests. Browser minimized. I wasn’t even in front of my PC during this capture. Yes it is for my one and only IP address. This is insane. 

10.42.42.42 - - [10/Jun/2025:13:36:05 +0200] "GET /centreon/api/internal.php?object=centreon_topcounter&action=user HTTP/1.1" 200 226 "https://centreon.domain.lol/centreon/main.php?p=60301" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
10.42.42.42 - - [10/Jun/2025:13:36:06 +0200] "GET /centreon/api/internal.php?object=centreon_keepalive&action=keepAlive HTTP/1.1" 200 4 "https://centreon.domain.lol/centreon/monitoring/resources?details=%7B%22customTimePeriod%22%3A%7B%22end%22%3A%222025-06-10T08%3A04%3A59.323Z%22%2C%22start%22%3A%222025-06-09T08%3A04%3A59.323Z%22%7D%2C%22selectedTimePeriodId%22%3A%22last_24_h%22%2C%22tab%22%3A%22details%22%2C%22tabParameters%22%3A%7B%7D%7D&filter=%7B%22id%22%3A2%2C%22name%22%3A%22Unknown+Linux%22%2C%22criterias%22%3A%5B%7B%22name%22%3A%22resource_types%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22names%22%2C%22object_type%22%3A%22names%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22parent_names%22%2C%22object_type%22%3A%22parent_names%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22states%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%7B%22id%22%3A%22unhandled_problems%22%2C%22name%22%3A%22Unhandled%22%7D%5D%7D%2C%7B%22name%22%3A%22statuses%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%7B%22id%22%3A%22UNKNOWN%22%2C%22name%22%3A%22Unknown%22%7D%5D%7D%2C%7B%22name%22%3A%22status_types%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_groups%22%2C%22object_type%22%3A%22host_groups%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%7B%22formattedName%22%3A%22HG_TECH_LINUX%22%2C%22id%22%3A0%2C%22name%22%3A%22HG_TECH_LINUX%22%7D%5D%7D%2C%7B%22name%22%3A%22service_groups%22%2C%22object_type%22%3A%22service_groups%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22monitoring_servers%22%2C%22object_type%22%3A%22monitoring_servers%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_categories%22%2C%22object_type%22%3A%22host_categories%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22service_categories%22%2C%22object_type%22%3A%22service_categories%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_severities%22%2C%22object_type%22%3A%22host_severities%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_severity_levels%22%2C%22object_type%22%3A%22host_severity_levels%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22service_severities%22%2C%22object_type%22%3A%22service_severities%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22service_severity_levels%22%2C%22object_type%22%3A%22service_severity_levels%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22search%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22text%22%2C%22value%22%3A%22%22%7D%2C%7B%22name%22%3A%22sort%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22array%22%2C%22value%22%3A%5B%22status_severity_code%22%2C%22desc%22%5D%2C%22search_data%22%3Anull%7D%5D%7D" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
10.42.42.42 - - [10/Jun/2025:13:36:07 +0200] "GET /centreon/api/internal.php?object=centreon_keepalive&action=keepAlive HTTP/1.1" 200 4 "https://centreon.domain.lol/centreon/main.php?p=60901" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
10.42.42.42 - - [10/Jun/2025:13:36:07 +0200] "GET /centreon/include/monitoring/status/Notifications/notifications.php?refresh_rate=30000 HTTP/1.1" 200 47 "https://centreon.domain.lol/centreon/main.get.php?p=60901" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
[ … redacted because it is too big for TheWatch … 🙄] 
10.42.42.42 - - [10/Jun/2025:13:49:04 +0200] "GET /centreon/api/internal.php?object=centreon_keepalive&action=keepAlive HTTP/1.1" 200 4 "https://centreon.domain.lol/centreon/monitoring/resources?details=%7B%22customTimePeriod%22%3A%7B%22end%22%3A%222025-06-10T08%3A04%3A59.323Z%22%2C%22start%22%3A%222025-06-09T08%3A04%3A59.323Z%22%7D%2C%22selectedTimePeriodId%22%3A%22last_24_h%22%2C%22tab%22%3A%22details%22%2C%22tabParameters%22%3A%7B%7D%7D&filter=%7B%22id%22%3A2%2C%22name%22%3A%22Unknown+Linux%22%2C%22criterias%22%3A%5B%7B%22name%22%3A%22resource_types%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22names%22%2C%22object_type%22%3A%22names%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22parent_names%22%2C%22object_type%22%3A%22parent_names%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22states%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%7B%22id%22%3A%22unhandled_problems%22%2C%22name%22%3A%22Unhandled%22%7D%5D%7D%2C%7B%22name%22%3A%22statuses%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%7B%22id%22%3A%22UNKNOWN%22%2C%22name%22%3A%22Unknown%22%7D%5D%7D%2C%7B%22name%22%3A%22status_types%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_groups%22%2C%22object_type%22%3A%22host_groups%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%7B%22formattedName%22%3A%22HG_TECH_LINUX%22%2C%22id%22%3A0%2C%22name%22%3A%22HG_TECH_LINUX%22%7D%5D%7D%2C%7B%22name%22%3A%22service_groups%22%2C%22object_type%22%3A%22service_groups%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22monitoring_servers%22%2C%22object_type%22%3A%22monitoring_servers%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_categories%22%2C%22object_type%22%3A%22host_categories%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22service_categories%22%2C%22object_type%22%3A%22service_categories%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_severities%22%2C%22object_type%22%3A%22host_severities%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22host_severity_levels%22%2C%22object_type%22%3A%22host_severity_levels%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22service_severities%22%2C%22object_type%22%3A%22service_severities%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22service_severity_levels%22%2C%22object_type%22%3A%22service_severity_levels%22%2C%22type%22%3A%22multi_select%22%2C%22value%22%3A%5B%5D%7D%2C%7B%22name%22%3A%22search%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22text%22%2C%22value%22%3A%22%22%7D%2C%7B%22name%22%3A%22sort%22%2C%22object_type%22%3Anull%2C%22type%22%3A%22array%22%2C%22value%22%3A%5B%22status_severity_code%22%2C%22desc%22%5D%2C%22search_data%22%3Anull%7D%5D%7D" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
10.42.42.42 - - [10/Jun/2025:13:49:08 +0200] "GET /centreon/api/internal.php?object=centreon_keepalive&action=keepAlive HTTP/1.1" 200 4 "https://centreon.domain.lol/centreon/main.php?p=60901" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
10.42.42.42 - - [10/Jun/2025:13:49:09 +0200] "GET /centreon/include/monitoring/status/Notifications/notifications.php?refresh_rate=30000 HTTP/1.1" 200 47 "https://centreon.domain.lol/centreon/main.get.php?p=60901" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"



😨 🤢<puking smiley>




 


fmattes
Centreonian
Forum|alt.badge.img+10
  • Centreonian
  • June 13, 2025

Hi,

We fixed some excessive queries linked to Top counter, in 24.10.5.

Which version are you using ? 

Thanks


  • Author
  • June 18, 2025

Hi,

We were using 23.10.23 as the “23.10” tag on the post suggests. 

Now upgraded in 24.10.7 I can see those requests aren’t done anymore. This is good news.

Let’s hope the 24.10 version will be the version where things are fixed and no new bugs are introduced. I’ve seen in the release notes that tons of grave bugs have been fixed in the seven 24.10.X versions. Thx for this!


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • July 11, 2025
Discussion ongoingReleased