mapping purple to red, and wild card for COMPACT
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20191011/12abf0ac/attachment.htm>
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20191014/6607d6ea/attachment.htm>
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20191014/2ccccc80/attachment.htm>
On 14/10/2019 14:57, Ron Cohen wrote:
Still couldn't find a way around the mapping of purple to red. Will appreciate any help.
I've no idea is this is natively possible, but you could for example periodically run a script on your xymon server along the lines of:
==== begin ==== #!/bin/bash for LINE in $(/usr/lib/xymon/client/bin/xymon 127.0.0.1 "xymondboard test=c_.* color=purple fields=hostname,testname"); do
HOSTNAME=$(echo $LINE | cut -d '|' -f 1) TESTNAME=$(echo $LINE | cut -d '|' -f 2)
/usr/lib/xymon/client/bin/xymon 127.0.0.1 "status+24h $HOSTNAME.$TESTNAME red some error message if you like"
done ==== end ====
to find the hostname and testname for all purple c_.* tests and send a corresponding red status message with a lifetime of 24h (or whatever length you prefer).
Adam
Alerts.cfg can key off a test being purple.
-----Original Message----- From: Xymon <xymon-bounces at xymon.com> On Behalf Of Adam Thorn Sent: Monday, October 14, 2019 11:44 AM To: xymon at xymon.com Subject: Re: [Xymon] mapping purple to red, and wild card for COMPACT
On 14/10/2019 14:57, Ron Cohen wrote:
Still couldn't find a way around the mapping of purple to red. Will appreciate any help.
I've no idea is this is natively possible, but you could for example periodically run a script on your xymon server along the lines of:
==== begin ==== #!/bin/bash for LINE in $(/usr/lib/xymon/client/bin/xymon 127.0.0.1 "xymondboard test=c_.* color=purple fields=hostname,testname"); do
HOSTNAME=$(echo $LINE | cut -d '|' -f 1) TESTNAME=$(echo $LINE | cut -d '|' -f 2)
/usr/lib/xymon/client/bin/xymon 127.0.0.1 "status+24h $HOSTNAME.$TESTNAME red some error message if you like"
done ==== end ====
to find the hostname and testname for all purple c_.* tests and send a corresponding red status message with a lifetime of 24h (or whatever length you prefer).
Adam
Xymon mailing list Xymon at xymon.com https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%...
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
Working fine. Thanks.
?Get BlueMail for Android ?
On 14 Oct 2019, 18:09, at 18:09, Adam Thorn <alt36 at cam.ac.uk> wrote:
On 14/10/2019 14:57, Ron Cohen wrote:
Still couldn't find a way around the mapping of purple to red. Will appreciate any help.
I've no idea is this is natively possible, but you could for example periodically run a script on your xymon server along the lines of:
==== begin ==== #!/bin/bash for LINE in $(/usr/lib/xymon/client/bin/xymon 127.0.0.1 "xymondboard test=c_.* color=purple fields=hostname,testname"); do
HOSTNAME=$(echo $LINE | cut -d '|' -f 1) TESTNAME=$(echo $LINE | cut -d '|' -f 2)
/usr/lib/xymon/client/bin/xymon 127.0.0.1 "status+24h $HOSTNAME.$TESTNAME red some error message if you like"
done ==== end ====
to find the hostname and testname for all purple c_.* tests and send a corresponding red status message with a lifetime of 24h (or whatever length you prefer).
Adam
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
alt36@cam.ac.uk
-
Paul.Root@CenturyLink.com
-
rcohen55@gmail.com