[Xymon] red.html generation

John Horne john.horne at plymouth.ac.uk
Thu Oct 27 18:40:06 CEST 2022


Hello,

I suspect it is generated by xymongen but within the code itself. We modify the
generated 'nongreen.html' page so that if there is nothing 'non-green' (i.e
everything is green) then it says 'All monitored systems OK'. To do that we had
to modify the 'xymongen/pagegen.c' file in the source.

Taking a quick look at the source in xymongen/xymongen.c (line 664) shows:

nongreen_color = do_nongreen_page(nssidebarfilename, PAGE_NONGREEN, "red");

I suspect this is what actually creates the 'red.html' page. Three lines up
shows it doing the same for the 'nongreen.html' file. ('do_nongreen_page'
source is within 'pagegen.c'.)



John.

On Thu, 2022-10-27 at 09:47 -0600, IO Support wrote:
> Understood, but I'm finding nothing in there that defines the red.html
> page.
>
> Thank You,
> Kris Springer
>
>
> On 10/27/22 09:37, John Thurston wrote:
> >
> > The application named 'xymongen' builds the pages, using the templates
> > in the 'web' directory.
> >
> > --
> > 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
> > On 10/27/2022 7:27 AM, IO Support wrote:
> > > Anyone know what exact code or file generates the red.html page?
> >
> > _______________________________________________
> > 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

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>

This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.


More information about the Xymon mailing list