From 95d0bb8f04befd5a3dae80734709ad33aec8eff3 Mon Sep 17 00:00:00 2001 From: Luigi D'Acunto Date: Thu, 9 Jul 2026 13:36:30 +0200 Subject: [PATCH] v2.16.0 - Aggiungi filtri rapidi stato connessione nella pagina Distributed monitoring Nuovi pulsanti Disabled/Online/Timeout/Not running sotto "Add connection" per filtrare al volo l'elenco siti in base allo stato della connessione. Un solo filtro attivo alla volta, con stato visivo chiaro. --- README.md | 17 ++++ user_script/checkmk_swissknife.user.js | 111 ++++++++++++++++++++++++- 2 files changed, 127 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dbdc410..69df676 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ A [Tampermonkey](https://www.tampermonkey.net/) userscript that enhances the Che | **Configure in WATO Menu** | Adds a host-selector dropdown and Open button to the monitoring view menu bar for bulk-opening hosts in WATO | `addViewWatoMenu` | | **Auto-check Foreign Changes** | Automatically ticks the "Activate foreign changes" checkbox on the pending changes page | `tryAutoCheckForeignActivation` | | **Collapse All / Expand All** | Adds two buttons to the menu bar to collapse or expand all accordion sections at once | `addAccordionToggleButtons` | +| **Site Status Filters** | Adds Disabled / Online / Timeout / Not running toggle buttons below "Add connection" to quickly filter the site connections list | `addSitesFilterBar` | --- @@ -129,6 +130,22 @@ Works on both host-edit pages (accordion sections are `table.nform` elements) an Applies to: `edit_host`, `bulkedit`, `editfolder`, `edit_ruleset` (with or without sidebar). +--- + +### Site Status Filters +Adds a row of quick filter buttons right below the **Add connection** shortcut on the Distributed Monitoring page: + +| Button | Color | Shows only sites where... | +|--------|-------|----------------------------| +| **Disabled** | Red | Status connection is Disabled | +| **Online** | Green | Status connection is Online | +| **Timeout** | Orange | Configuration connection reports a read timeout | +| **Not running** | Gray | Configuration connection reports "Site is not running" | + +Only one filter can be active at a time — clicking the active button turns it off and shows all sites again. The active filter is highlighted with a solid background so it's always clear which view you're in. + +Applies to: `wato.py?mode=sites` (with or without sidebar). + ## How it works The script injects enhancements at page load and re-applies them on SPA navigation (Checkmk reloads content inside an `