[Xymon] Make red only the default for critical page (Terabithia RPM)
Neil Simmonds
Neil.Simmonds at studio.co.uk
Tue Nov 22 16:29:11 CET 2022
Thanks Norbert,
Unfortunately Red.html also includes a lot of green noise that I'd prefer not to have.
I've managed to do it though by changing the href for the Critical Systems page to the below, effectively just adding the highlighted part and that works fine.
$XYMONSERVERCGIURL/criticalview.sh?MAXPRIO=3&MINCOLOR=red&MAXAGE=525600&WANTACKED=no&EVCOUNT=0&Submit=Apply
To be honest, I don't know why it wasn't done that way on the old system.
Neil.
From: Xymon <xymon-bounces at xymon.com> On Behalf Of nor krie
Sent: 22 November 2022 12:37
To: xymon at xymon.com
Subject: Re: [Xymon] Make red only the default for critical page (Terabithia RPM)
[CAUTION] This is an external email. Do not click links or open any attachments unless you are sure they are safe.
Neil,
you can try to call the builtin page red.html instead of nongreen.html. This is default part of Xymon and maybe already provides what you want without any patch or config change (you can easy add this to the xymonmenu for direct access).
Norbert
Am Di., 22. Nov. 2022 um 09:49 Uhr schrieb Neil Simmonds <Neil.Simmonds at studio.co.uk<mailto:Neil.Simmonds at studio.co.uk>>:
Hi folks,
I'm currently building a new Xymon server to move away from our old 4.3.4 server running on Centos 5.
The new one is running version Xymon 4.3.30-1.el8.terabithia on RHEL 8
On the previous version, the person who built it made a change to criticalview.c to change the following
/*static int mincolor = COL_YELLOW;*/
static int mincolor = COL_RED;
This means that the default for the critical view is red only which is what we want.
However, because we have now taken the decision to use the Terabithia RPM's for ease of upgrade in future I can't make the same change as I can't be sure that the criticalview.c that I could download from the normal source is the same as the one in the Terabithia RPM and it also complicates the ease of upgrade bit.
I've found the XYMONGENOPTS in xymonserver.cfg and a suggestion on the web that looked like adding -critical-reds-only to the options would give me what I want but it doesn't seem to work.
Does anyone know if there is a way of doing this with minimal change so it's something I can script for future upgrades?
Kind Regards,
Neil.
Neil Simmonds
Senior Platform & Middleware Engineer (Unix).
Studio is a trading name of Studio Retail Ltd which is authorised and regulated by the Financial Conduct Authority for consumer credit and general insurance. Studio Retail Ltd are members of the Finance and Leasing Association (FLA). Registered in England. No: 718151. Registered Office: Church Bridge House, Henry Street, Accrington, BB5 4EE NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Studio Retail Ltd and the recipient will refrain from utilising the information for any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Studio Retail Ltd. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail and any attachments. No liability is accepted for any consequences arising from it. Studio Retail Ltd reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error, please notify our careline on +44(0) 371 200 0378.
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=05%7C01%7Cneil.simmonds%40studio.co.uk%7Cb85d35c6fce3484a291508dacc867b74%7C5dec06aa244548258283467bd0a4cbd6%7C0%7C1%7C638047175223917106%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=cevuydls2aTpUrBuScJb4AyaMCNAxasbnOqLeXveNbY%3D&reserved=0>
Studio is a trading name of Studio Retail Ltd which is authorised and regulated by the Financial Conduct Authority for consumer credit and general insurance. Studio Retail Ltd are members of the Finance and Leasing Association (FLA). Registered in England. No: 718151. Registered Office: Church Bridge House, Henry Street, Accrington, BB5 4EE NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Studio Retail Ltd and the recipient will refrain from utilising the information for any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Studio Retail Ltd. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail and any attachments. No liability is accepted for any consequences arising from it. Studio Retail Ltd reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error, please notify our careline on +44(0) 371 200 0378.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20221122/d5fc7a00/attachment.htm>
More information about the Xymon
mailing list