Xymon Mailing List Archive search

Help with removing top line of Combo Status page

5 messages in this thread

list Ashu Patel · Thu, 22 Feb 2018 16:59:24 +0000 ·
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)

[cid:image002.png at 01D3ABD4.944F5580]
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.
list Jeremy Laidman · Tue, 27 Mar 2018 23:45:47 +1100 ·
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
quoted from Ashu Patel


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.

list Ashu Patel · Wed, 28 Mar 2018 15:42:51 +0000 ·
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? ☺
quoted from Jeremy Laidman


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<mailto: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)

[cid:image001.png at 01D3C689.E654E960]
quoted from Jeremy Laidman
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.
list Jeremy Laidman · Thu, 29 Mar 2018 14:53:57 +1100 ·
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.
quoted from Ashu Patel


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
quoted from Ashu Patel


*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.
list Ashu Patel · Thu, 29 Mar 2018 12:51:36 +0000 ·
Thank you again Jeremy. I’m going to see if I can tackle it via web page header modification.
quoted from Jeremy Laidman

From: Jeremy Laidman [mailto:user-0608abae5e7c@xymon.invalid]
Sent: Wednesday, March 28, 2018 11:54 PM
To: Ashu Patel <user-8755d7c0d62e@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Help with removing top line of Combo Status page

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<mailto: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? ☺


From: Jeremy Laidman [mailto:user-0608abae5e7c@xymon.invalid<mailto:user-0608abae5e7c@xymon.invalid>]
Sent: Tuesday, March 27, 2018 8:46 AM
To: Ashu Patel
Cc: xymon at xymon.com<mailto: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<mailto: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)

[cid:image001.png at 01D3C73B.242B4610]
quoted from Jeremy Laidman
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.

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.