Xymon Mailing List Archive search

Help with removing top line of Combo Status page

list Jeremy Laidman
Thu, 29 Mar 2018 14:53:57 +1100
Message-Id: <CACO=user-c7aaa4aa3b88@xymon.invalid>

It's tricky to modify a package. Best thing might be to get the equivalent
source code, extract it, compile using instructions, then modify and
recompile. This will make a new xymond. You can then copy this over the old
xymond or copy next to it with a different name (eg xymond-patched) and
adjust the tasks.cfg file accordingly.

Another option, to avoid replacing a binary on the Xymon server, would be
to modify the web page header with a bit of javascript that hunts down and
removes the lines you don't want. You could do this in either xymonmenu.cfg
or stdnormal_header.


On 29 March 2018 at 02:42, Ashu Patel <user-8755d7c0d62e@xymon.invalid> wrote:
Thank you very much Jeremy. It appears that I’ll have to modify the
combostatus.c file as the other options will not just remove the expression
from the top without removing all of the lines in the combo. Now I’ll have
to figure out how I can go about modifying the .c file and recompile Xymon
using Terebithia package.  Any idea on how to go about doing that? J


*From:* Jeremy Laidman [mailto:user-0608abae5e7c@xymon.invalid]
*Sent:* Tuesday, March 27, 2018 8:46 AM
*To:* Ashu Patel
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] Help with removing top line of Combo Status page


Update [combostatus] in tasks.cfg and add "--quiet" to the end of the CMD
setting.


For more info, see "man combostatus".


However, this will also remove the other lines that follow.


There is an undocumented option "--clean" that sets the "cleanexpr" flag.
This appears to print the combo status in a slightly different (and IMHO
more readable) format, replacing "||" with "OR" and "&&" with "AND".


The only way to remove the combo status while leaving the other lines is
to modify the code, which would be to edit combostatus.c and remove the
lines around calls to "printify(...)".


Cheers

Jeremy


On 23 February 2018 at 03:59, Ashu Patel <user-8755d7c0d62e@xymon.invalid> wrote:

Hello all, I need assistance with customizing the status page generated of
a combo test. On the top (under the date/time), there is a line that lists
the following: test1&&test2&&test3… = 1&&1&&1&&1.. = 1.

How do I get rid of this line? (See the yellow highlighted in the attached
image)


This is informational only and is not a solicitation, commitment or
confirmation. Transaction details are subject to official confirmation and
terms of business. We may make markets, buy/sell as principal or have a
position in financial instruments herein. We do not warrant that
information is accurate, complete or that any returns will be achieved.
Price/availability is subject to change. Changes to assumptions may have a
material impact on price/returns. Other than transactions in financial
instruments, any agreement KGS enters into must be executed by a KGS
authorized signatory. If you received in error, please delete and advise
sender. Communications are subject to review and archiving. Changes to
assumptions may have material impact on price or returns. For more
information, please contact your representative. If you received this
message in error, please delete the message and advise the sender.
Communications to and from our firm are subject to review and archiving.


This is informational only and is not a solicitation, commitment or
confirmation. Transaction details are subject to official confirmation and
terms of business. We may make markets, buy/sell as principal or have a
position in financial instruments herein. We do not warrant that
information is accurate, complete or that any returns will be achieved.
Price/availability is subject to change. Changes to assumptions may have a
material impact on price/returns. Other than transactions in financial
instruments, any agreement KGS enters into must be executed by a KGS
authorized signatory. If you received in error, please delete and advise
sender. Communications are subject to review and archiving. Changes to
assumptions may have material impact on price or returns. For more
information, please contact your representative. If you received this
message in error, please delete the message and advise the sender.
Communications to and from our firm are subject to review and archiving.