[Xymon] red.html generation

Stef Coene stef.coene at docum.org
Fri Oct 28 08:52:14 CEST 2022


Hi,

We do the same. I poll 60+ xymon servers with

xymon <remote ip> "xymondboard --timeout=10 
fields=hostname,testname,color,logtime,lastchange,ackmsg,dismsg,XMH_NOPROPRED,XMH_NOPROPYELLOW"

This runs in 10 threads parallel with a sleep of 10 seconds between the 
different runs.

The returned data is inserted in a mysql database (key = hostname + 
testname + remote IP) and we built a dashboard out of it that mimics the 
non-green page in a DIV. So we have 1 'block' per remote xymon server. 
The floating divs are sorted so the most recent one is the first one.

This page is reachable via a public URL and with some apache redirects, 
you can reach remote the xymon servers from anywhere in the world.
If you want, I can share a screenshot privately (it contains customer 
information...)


Stef

On 2022-10-27 19: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
> support at ionetworkadmin.com
> 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    907-465-8591
>> John.Thurston at alaska.gov
>> Department of Administration
>> State of Alaska
>>
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
> 
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon


More information about the Xymon mailing list