<div dir='auto'>I'd just `cat` one or two testcycles with<div dir="auto"><br></div><div dir="auto">   xymoncmd xymond_channel=client cat -</div><div dir="auto"><br></div><div dir="auto">Search the output for my host(s) and craft a regex from that.</div><div dir="auto"><br></div><div dir="auto">You can test with the added filter-option with that too.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Apr 18, 2019 13:39, Neil Simmonds <neilsimmonds1808@gmail.com> wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><p><span style="font-size:10pt;font-family:'arial' , sans-serif;color:blue">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</span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif;color:blue"> </span></p><p><b>From:</b> Thomas Eckert <tom@it-eckert.de> <br /><b>Sent:</b> 18 April 2019 12:01<br /><b>To:</b> Neil Simmonds <neilsimmonds1808@gmail.com><br /><b>Cc:</b> xymon@xymon.com<br /><b>Subject:</b> Re: [Xymon] xymond_channel</p><p> </p><div><p>There is a `--filter=REGEX` for xymond_channel.</p><div><p>Never used it myself but I'm curious if it works ...</p></div></div><div><p> </p><div><p>On Apr 18, 2019 12:55, Neil Simmonds <<a href="mailto:neilsimmonds1808@gmail.com">neilsimmonds1808@gmail.com</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-top:5pt;margin-right:0cm;margin-bottom:5pt"><div><div><p><span style="font-size:10pt;font-family:'arial' , sans-serif">I’m running 6 scripts from tasks.cfg as the following,</span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif"> </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif">CMD xymond_channel --channel=client --log=$XYMONSERVERLOGS/script.log $XYMONHOME/ext/script.sh</span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif"> </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif">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. </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif"> </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif">These scripts process that data and do the alerting sending the data to a specific host.test on Xymon. </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif"> </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif">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?</span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif"> </span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif">Regards,</span></p><p><span style="font-size:10pt;font-family:'arial' , sans-serif">Neil Simmonds</span></p></div></div></blockquote></div><p> </p></div></div></div></blockquote></div><br></div>