Xymon Mailing List Archive search

red.html generation

list Kris Springer
Thu, 27 Oct 2022 15:07:33 -0600
Message-Id: <user-787bbc94429f@xymon.invalid>

To those interested in my end result, I created a cron file that runs 'sed' commands to strip out what I don't want from the red.html file.? Not the cleanest way to accomplish my desired result, but it beats recompiling.? :-)

Thank You,
Kris Springer
Systems Admin
I/O Network Administration
user-a65af99e49c9@xymon.invalid
https://www.ionetworkadmin.com


On 10/27/22 11:17, IO Support wrote:
Thank you all for the detailed info.? I won't be modifying source code at this time.

I've got a distributed environment with Xymon Servers running in small offices and VM networks. The built-in pages that get generated are functional, but I'm monitoring all those remote Xymon systems with a master system that essentially rolls everything up to one clean screen.? It works but I was trying to strip the red.html page down even further.? I have an alternate idea I'll pursue that should give the result I'm after.? Thanks guys!

Thank You,
Kris Springer
Systems Admin
I/O Network Administration
user-a65af99e49c9@xymon.invalid
https://www.ionetworkadmin.com


On 10/27/22 10:41, John Thurston wrote:
Crikey, I didn't even know there was a specifically-named red.html page . . and I've been poking at xymon/bb for a couple of decades. I guess that shows how often I look in that directory.

Reading in source, it looks to me like this is triggered in /xymongen.c/, as a special type of PAGE_NONGREEN (there, in line 664):

??? 659???????? /* The full summary page - nongreen.html */
??? 660???????? if (do_nongreen) {
??? 661???????????????? nongreen_color = do_nongreen_page(nssidebarfilename, PAGE_NONGREEN, "nongreen");
??? 662???????????????? nongreencolors = (nongreencolors & ~(1 << COL_YELLOW));
??? 663???????????????? nongreencolors = (nongreencolors & ~(1 << COL_PURPLE));
??? 664???????????????? nongreen_color = do_nongreen_page(nssidebarfilename, PAGE_NONGREEN, "red");
??? 665???????????????? add_timestamp("Non-green page generation done");
??? 666???????? }

and do_nongreen_page is defined in /pagegen.c/

?? 1128 int do_nongreen_page(char *nssidebarfilename, int summarytype, char *filenamebase)

So if you don't want this page to be generated, you're going to have to modify xymongen. And it appears that red.html is going to be controlled by exactly the same things which control nongreen.html

--
Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska