Xymon Mailing List Archive search

Filtering hosts on page with many hosts

19 messages in this thread

list Ken Connell · Tue, 15 Apr 2025 13:54:49 -0400 ·
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)
XXX Victoria St
RM PODB50
Toronto, Ont
M5B 2K3
XXX-XXX-XXXX x556709
list Jaime Kikpole · Tue, 15 Apr 2025 14:09:42 -0400 ·
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
(XXX) XXX-XXXX, x5425



quoted from Ken Connell
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)
list Ken Connell · Tue, 15 Apr 2025 14:13:24 -0400 ·
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".


quoted from Jaime Kikpole
On Tue, Apr 15, 2025 at 2:09 PM Jaime Kikpole <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Jaime Kikpole · Tue, 15 Apr 2025 14:16:03 -0400 ·
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.



signature

Jaime Kikpole

Director of Technology
Ichabod Crane Central School District
(XXX) XXX-XXXX, x5425



quoted from Ken Connell
On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Tom Schmidt · Tue, 15 Apr 2025 12:23:51 -0600 ·
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

quoted from Jaime Kikpole
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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Ken Connell · Tue, 15 Apr 2025 19:14:36 -0400 ·
👍

On Tue, Apr 15, 2025 at 2:29 PM Tom Schmidt <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Jeremy Laidman · Wed, 16 Apr 2025 09:39:29 +1000 ·
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


quoted from Ken Connell
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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Jeremy Laidman · Thu, 17 Apr 2025 10:58:51 +1000 ·
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).

quoted from Jeremy Laidman
J

On Wed, 16 Apr 2025 at 09:39, Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Nicola Canepa · Thu, 17 Apr 2025 10:37:14 +0100 ·
It is not working for me: if I press "host filter", I get a white "false" page



quoted from Jeremy Laidman
Il giorno gio 17 apr 2025 alle ore 01:59 Jeremy Laidman <user-0608abae5e7c@xymon.invalid> ha scritto:
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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Tom Schmidt · Thu, 17 Apr 2025 08:39:28 -0600 ·
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


quoted from Jeremy Laidman
On Wed, Apr 16, 2025 at 6:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
Attachments (1)
list Ken Connell · Thu, 17 Apr 2025 16:27:52 -0400 ·
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


quoted from Jeremy Laidman
On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
Attachments (2)
list Ken Connell · Thu, 17 Apr 2025 16:37:07 -0400 ·
The CTRL-SHIFT-F toggles the filter on/off and it works! :)) 

However, I'm assuming the "mouse click" on "Host filter" is supposed to do the toggle as well ?



quoted from Ken Connell
On Thu, Apr 17, 2025 at 4:27 PM Ken Connell <user-db108f93c7f6@xymon.invalid> wrote:
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Jeremy Laidman · Fri, 18 Apr 2025 08:36:58 +1000 ·
I wonder if it's a browser issue. I only tested it on Edge.

J


quoted from Ken Connell
On Fri, 18 Apr 2025, 06:28 Ken Connell, <user-db108f93c7f6@xymon.invalid> wrote:
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Tom Schmidt · Thu, 17 Apr 2025 16:48:03 -0600 ·
It works for me on Chrome and Edge browsers, but Firefox gives the "false" error that others reported.
Tom

quoted from Jeremy Laidman
On Thu, Apr 17, 2025 at 4:37 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
I wonder if it's a browser issue. I only tested it on Edge.

J


On Fri, 18 Apr 2025, 06:28 Ken Connell, <user-db108f93c7f6@xymon.invalid> wrote:
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Jeremy Laidman · Fri, 18 Apr 2025 08:49:37 +1000 ·
Yep, this line needs to be changed:
  searchMenuItem.href = 'javascript:toggleSearchBox();';

to this:

  searchMenuItem.href = 'javascript:toggleSearchBox();void(0);';

quoted from Tom Schmidt
J

On Fri, 18 Apr 2025 at 08:48, Tom Schmidt <user-d34f6118b459@xymon.invalid> wrote:
It works for me on Chrome and Edge browsers, but Firefox gives the "false" error that others reported.
Tom

On Thu, Apr 17, 2025 at 4:37 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
I wonder if it's a browser issue. I only tested it on Edge.

J


On Fri, 18 Apr 2025, 06:28 Ken Connell, <user-db108f93c7f6@xymon.invalid> wrote:
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Tom Schmidt · Thu, 17 Apr 2025 16:56:01 -0600 ·
Yep, that fixed Firefox!
quoted from Jeremy Laidman
Tom

On Thu, Apr 17, 2025 at 4:50 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
Yep, this line needs to be changed:
  searchMenuItem.href = 'javascript:toggleSearchBox();';

to this:

  searchMenuItem.href = 'javascript:toggleSearchBox();void(0);';

J

On Fri, 18 Apr 2025 at 08:48, Tom Schmidt <user-d34f6118b459@xymon.invalid> wrote:
It works for me on Chrome and Edge browsers, but Firefox gives the "false" error that others reported.
Tom

On Thu, Apr 17, 2025 at 4:37 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
I wonder if it's a browser issue. I only tested it on Edge.

J


On Fri, 18 Apr 2025, 06:28 Ken Connell, <user-db108f93c7f6@xymon.invalid> wrote:
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Jeremy Laidman · Fri, 18 Apr 2025 09:22:45 +1000 ·
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?

quoted from Tom Schmidt
On Fri, 18 Apr 2025 at 00:40, Tom Schmidt <user-d34f6118b459@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Ken Connell · Thu, 17 Apr 2025 19:41:41 -0400 ·
This worked like a charm, thank you so much :)

quoted from Jeremy Laidman
On Thu, Apr 17, 2025 at 6:50 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
Yep, this line needs to be changed:
  searchMenuItem.href = 'javascript:toggleSearchBox();';

to this:

  searchMenuItem.href = 'javascript:toggleSearchBox();void(0);';

J

On Fri, 18 Apr 2025 at 08:48, Tom Schmidt <user-d34f6118b459@xymon.invalid> wrote:
It works for me on Chrome and Edge browsers, but Firefox gives the "false" error that others reported.
Tom

On Thu, Apr 17, 2025 at 4:37 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
I wonder if it's a browser issue. I only tested it on Edge.

J


On Fri, 18 Apr 2025, 06:28 Ken Connell, <user-db108f93c7f6@xymon.invalid> wrote:
Thanks Jeremy,

As Nicola also answered, I too just get a page with "false"
 - Xymon 4.3.30
- modified mine so it just shows up on "/Switches" pages
- added you script contents directly to the stdnormal_header file

Hovering over from the "Views" choice:
- nongreen shows the correct path:


The new Host Filter has:

I guess the browser doesn't really know where to find this ? 


On Wed, Apr 16, 2025 at 8:59 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)
list Tom Schmidt · Thu, 17 Apr 2025 21:20:16 -0600 ·
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.

quoted from Ken Connell
Tom

On Thu, Apr 17, 2025 at 5:23 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-0608abae5e7c@xymon.invalid> 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 <user-d34f6118b459@xymon.invalid> 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
(XXX) XXX-XXXX, x5425



On Tue, Apr 15, 2025 at 2:14 PM Ken Connell <user-db108f93c7f6@xymon.invalid> 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 <user-fb200a07d7dc@xymon.invalid> 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
(XXX) XXX-XXXX, 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)