Jeremy,
   You are right about the non-green and critical pages, it does also work on them and is helpful there.  I mistakenly tested my nongreen.html page when the status was all green, thus there was nothing to filter.  So disregard the patch I sent.  Maybe it could also filter the past events shown on the nongreen.html page?
    I also found that your filter works on the Availability and Snapshot Reports!
    The red.html page is also built, but is not in the menu unless you manually add it to the xymonmenu.cfg file.

Tom

On Thu, Apr 17, 2025 at 5:23 PM Jeremy Laidman <jeremy@laidman.org> wrote:
Tom, I'm curious why you wouldn't want to be able to filter hosts on the non-green page?

Until just now, I didn't know there was a "red" page. It's there when I over-type "red.html" in the browser, but I'm not aware of there being any link to it in any of the menus. How did I not know this? Or perhaps I had forgotten?

On Fri, 18 Apr 2025 at 00:40, Tom Schmidt <tom@4schmidts.com> wrote:
Thanks Jeremy!  This works great on my 4.4alpha installation.  I no longer have 4.3.30 installed to test it there.

Below is a minor update to make it not add the search function to the nongreen pages.

Tom


On Wed, Apr 16, 2025 at 6:59 PM Jeremy Laidman <jeremy@laidman.org> wrote:
Courtesy of AI, and after some minor tweaks, the attached javascript will create a host filter on Xymon pages with hosts (wherever the URL location starts with "/xymon/").

Either insert the file to your stdnormal_footer file just above &XYMONBODYFOOTER, or create a new file in a suitable location such as /etc/xymon/xymonbodyfooter.html (or append to an existing file if you already use one) and (if it's not already set) update XYMONBODYFOOTER in xymonserver.cfg to point to the file (eg XYMONBODYFOOTER="file:/etc/xymon/xymonbodyfooter.html").

Then, wait a few minutes for the pages to re-generate, and then the filter will be available. To toggle the filter on the page, either select the new checkboxed menu item from the Views menu, or type CTRL-SHIFT-F (or CMD-SHIFT-F on a Mac).

J

On Wed, 16 Apr 2025 at 09:39, Jeremy Laidman <jeremy@laidman.org> wrote:
You can list a host in more than one page. So if you need to keep all 300 hosts in one page, you can have separate pages with subsets of the hosts.

A Javascript add-on to dynamically filter the hosts shouldn't be too hard to put together.

J
 

On Wed, 16 Apr 2025 at 09:15, Ken Connell via Xymon <xymon@xymon.com> wrote:
👍

On Tue, Apr 15, 2025 at 2:29 PM Tom Schmidt <tom@4schmidts.com> wrote:
Unfortunately, there is not a filtered host display page option.  I may look to see if I can create one for Xymon 4.0 as an enhancement.

Tom

On Tue, Apr 15, 2025 at 12:16 PM Jaime Kikpole via Xymon <xymon@xymon.com> wrote:
That makes sense.  Would using groups (which leave the items on that page, but group them into logical sets of things) be useful?

Otherwise, I'm not personally aware of any good solutions for you.  There might be one, but I'm not thinking of it.



Jaime Kikpole

Director of Technology
Ichabod Crane Central School District
(518) 758-7575, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <kconnell@torontomu.ca> wrote:
Thanks for the reply.
I do have many pages/sub-pages for other things, the issue is, I have some "outside scripts" that grab info off "page-x", so breaking the hosts list up would cause "other issues".


On Tue, Apr 15, 2025 at 2:09 PM Jaime Kikpole <jkikpole@ichabodcrane.org> wrote:
I don't believe so, but you could break it up into blocks of conceptually related items using groups or pages/subpages if you need the same blocks of stuff on a regular basis.  This is done in the hosts.cfg file using page, subpage, subparent, etc. commands or group commands.  Check https://xymon.sourceforge.io/xymon/help/manpages/man5/hosts.cfg.5.html for details.



Jaime Kikpole

Director of Technology
Ichabod Crane Central School District
(518) 758-7575, x5425



On Tue, Apr 15, 2025 at 1:55 PM Ken Connell via Xymon <xymon@xymon.com> wrote:
I have a page with over 300 hosts, is there a way to just filter hosts that start with "X" ?


--
 

Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)
350 Victoria St
RM PODB50
Toronto, Ont
M5B 2K3
416-979-5000 x556709

_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com


--
 

Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)
350 Victoria St
RM PODB50
Toronto, Ont
M5B 2K3
416-979-5000 x556709

_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com
_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com


--
 

Ken Connell
Senior Network Engineer
Computer & Communication Services
Toronto Metropolitan University (Formerly Ryerson University)
350 Victoria St
RM PODB50
Toronto, Ont
M5B 2K3
416-979-5000 x556709

_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com
_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com
_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com
_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com