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.
This commit is contained in:
parent
878fee3f36
commit
95d0bb8f04
2 changed files with 127 additions and 1 deletions
17
README.md
17
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 `<iframe>` without a full page reload). Each feature is independent — a feature that does not apply to the current page does nothing and stops polling.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue