Xymon Mailing List Archive search

xymond_channel

4 messages in this thread

list Neil Simmonds · Thu, 18 Apr 2019 11:55:19 +0100 ·
I'm running 6 scripts from tasks.cfg as the following,

 
CMD xymond_channel --channel=client --log=$XYMONSERVERLOGS/script.log
$XYMONHOME/ext/script.sh

 
The reason for doing this is that we have some custom monitors written on a
mainframe but they just send data as part of the general Xymon data and
Xymon doesn't understand the data so ignores it. 

 
These scripts process that data and do the alerting sending the data to a
specific host.test on Xymon. 

 
These scripts have been observed to use quite a bit of CPU and I assume that
is due to them reading all client data. Is there a way to narrow it down so
it will only read data coming from a specific host?

 
Regards,

Neil Simmonds
list Thomas Eckert · Thu, 18 Apr 2019 13:00:57 +0200 ·
There is a `--filter=REGEX` for xymond_channel.
Never used it myself but I'm curious if it works ...

quoted from Neil Simmonds
On Apr 18, 2019 12:55, Neil Simmonds wrote:

I’m running 6 scripts from tasks.cfg as the following,


CMD xymond_channel --channel=client --log=$XYMONSERVERLOGS/script.log $XYMONHOME/ext/script.sh


The reason for doing this is that we have some custom monitors written on a mainframe but they just send data as part of the general Xymon data and Xymon doesn’t understand the data so ignores it.


These scripts process that data and do the alerting sending the data to a specific host.test on Xymon.


These scripts have been observed to use quite a bit of CPU and I assume that is due to them reading all client data. Is there a way to narrow it down so it will only read data coming from a specific host?


Regards,

Neil Simmonds

list Neil Simmonds · Thu, 18 Apr 2019 12:39:17 +0100 ·
I did try it but can’t find any examples so am not sure how to make it work. The attempts I made stopped the script working but no errors were genrated
quoted from Thomas Eckert

 
From: Thomas Eckert <user-0871e9ea8ab4@xymon.invalid> 
Sent: 18 April 2019 12:01
To: Neil Simmonds <user-feff97fabd3d@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] xymond_channel

 
There is a `--filter=REGEX` for xymond_channel.

Never used it myself but I'm curious if it works ...

 
On Apr 18, 2019 12:55, Neil Simmonds <user-feff97fabd3d@xymon.invalid <mailto:user-feff97fabd3d@xymon.invalid> > wrote:

I’m running 6 scripts from tasks.cfg as the following,

 
CMD xymond_channel --channel=client --log=$XYMONSERVERLOGS/script.log $XYMONHOME/ext/script.sh

 
The reason for doing this is that we have some custom monitors written on a mainframe but they just send data as part of the general Xymon data and Xymon doesn’t understand the data so ignores it. 

 
These scripts process that data and do the alerting sending the data to a specific host.test on Xymon. 

 
These scripts have been observed to use quite a bit of CPU and I assume that is due to them reading all client data. Is there a way to narrow it down so it will only read data coming from a specific host?

 
Regards,

Neil Simmonds
list Thomas Eckert · Thu, 18 Apr 2019 13:53:35 +0200 ·
I'd just `cat` one or two testcycles with
xymoncmd xymond_channel=client cat -

Search the output for my host(s) and craft a regex from that.

You can test with the added filter-option with that too.

quoted from Neil Simmonds
On Apr 18, 2019 13:39, Neil Simmonds wrote:

I did try it but can’t find any examples so am not sure how to make it work. The attempts I made stopped the script working but no errors were genrated


From: Thomas Eckert
Sent: 18 April 2019 12:01
To: Neil Simmonds
Cc: xymon@xymon.com
Subject: Re: [Xymon] xymond_channel


There is a `--filter=REGEX` for xymond_channel.

Never used it myself but I'm curious if it works ...


On Apr 18, 2019 12:55, Neil Simmonds <user-feff97fabd3d@xymon.invalid> wrote:

I’m running 6 scripts from tasks.cfg as the following,


CMD xymond_channel --channel=client --log=$XYMONSERVERLOGS/script.log $XYMONHOME/ext/script.sh


The reason for doing this is that we have some custom monitors written on a mainframe but they just send data as part of the general Xymon data and Xymon doesn’t understand the data so ignores it.


These scripts process that data and do the alerting sending the data to a specific host.test on Xymon.


These scripts have been observed to use quite a bit of CPU and I assume that is due to them reading all client data. Is there a way to narrow it down so it will only read data coming from a specific host?


Regards,

Neil Simmonds