<div dir="ltr"><div><div><div>Hi J.C.,<br><br></div>This is really great!! I've been testing this new functionality in the 4.3.22beta release and it appears to be working exactly how it's supposed to!<br><br></div>Would it be possible to also make it so that you can exclude parts of lines/multiple lines (not just at the end of the message) from being parsed using a block form -like method, in addition to what you've already put in place?<br><br></div>Something like this:<br><br><!-- ncv_skip --> *this should be ignored* </--> ip6_mrt_cache : 0<br>
ext4_inode_cache <!-- ncv_skip --> *this should also be ignored* </--> : 7960000<br><div class="gmail_extra"><br></div><div class="gmail_extra">Basically, the parsing tool would just see this to parse for the graphing:<br><br>ip6_mrt_cache : 0<br>
ext4_inode_cache : 7960000<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Is this something that would be possible to also put in place? I'm not sure how the new functionality is done now, so I don't know if this is something that's feasible to add in or not.<br><br></div><div class="gmail_extra">If it's not very easy or very feasible or even possible at all (without major re-work of the code), then that's fine. The existing new functionality for parsing skipping will be very useful to me as it is!<br><br></div><div class="gmail_extra">But if it could be added, that would be really awesome and even more useful for me!!<br><br></div><div class="gmail_extra">If this is something that is possible, but probably won't be ready for the actual 4.3.22 release, then that's perfectly fine with me as well! I'm willing to wait until the next release if that's what is necessary! :)<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks as always!<br><br clear="all"></div><div class="gmail_extra"><div><div><div>--</div><div>Matt Vander Werf</div></div></div>
<br><div class="gmail_quote">On Sat, Oct 17, 2015 at 10:54 PM, J.C. Cleaver <span dir="ltr"><<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">FYI, all,<br>
<br>
4.3.22 will have comment markers that can be used for both skipping a line<br>
and for ending processing. Something along the lines of this will work:<br>
<pre><br>
ip6_dst_cache : 7680<br>
ndisc_cache : 7680<br>
<!-- ncv_skip -->ip6_mrt_cache : 0<br>
ext4_inode_cache : 7960000<br>
<!-- ncv_end --><br>
scsi_sense_cache : 15360<br>
</pre><br>
<br>
Not entirely sure if that will render properly :) But essentially:<br>
pre-pend lines with "ncv_skip" in a regular HTML comment to skip it, and a<br>
bare "ncv_end" in a comment will abort further processing for that<br>
message.<br>
<br>
<br>
I'd considered adding regex capabilities directly into the NCV module, but<br>
it's a fairly time sensitive operation on more heavily-loaded servers, so<br>
it's important to keep existing modules like that as efficient as<br>
possible.<br>
<br>
The process of RRD module writing here is pretty simple though (simpler<br>
than I'd recalled it), and it shouldn't be too hard to add other types of<br>
automated/regular processing besides NCV that could be called up.<br>
<br>
<br>
HTH,<br>
<br>
-jc<br>
<div><div><br>
<br>
On Tue, October 6, 2015 7:42 am, Matt Vander Werf wrote:<br>
> (Sending this again to the list, as I sent it using the wrong e-mail<br>
> previously (non-subscriber e-mail))<br>
><br>
> I second this request for enhancement. It would be nice to be able to send<br>
> more data from the client to be displayed on the column/test page, but not<br>
> get parsed to be included in the RRD graph. Only parsing certain lines<br>
> that<br>
> are in the NCV format would be a nice feature. Something like what J.C.<br>
> mentioned ("a data parser that looks for a hidden HTML comment marker for<br>
> lines to process (and ignores the rest)") would work well for this, IMO.<br>
><br>
> Or is there a way to do this already? (even through a hack?)<br>
><br>
> Nothing urgent, just something that would be nice to be included in some<br>
> future Xymon release.<br>
><br>
> Thanks.<br>
><br>
> --<br>
> Matt Vander Werf<br>
><br>
> On Tue, Oct 6, 2015 at 10:39 AM, Matt Vander Werf <<a href="mailto:matt1299@gmail.com" target="_blank">matt1299@gmail.com</a>><br>
> wrote:<br>
><br>
>> I second this request for enhancement. It would be nice to be able to<br>
>> send<br>
>> more data from the client to be displayed on the column/test page, but<br>
>> not<br>
>> get parsed to be included in the RRD graph. Only parsing certain lines<br>
>> that<br>
>> are in the NCV format would be a nice feature. Something like what J.C.<br>
>> mentioned ("a data parser that looks for a hidden HTML comment marker<br>
>> for<br>
>> lines to process (and ignores the rest)") would work well for this, IMO.<br>
>><br>
>> Or is there a way to do this already? (even through a hack?)<br>
>><br>
>> Nothing urgent, just something that would be nice to be included in some<br>
>> future Xymon release.<br>
>><br>
>> Thanks.<br>
>><br>
>> --<br>
>> Matt Vander Werf<br>
>><br>
>> On Mon, Oct 5, 2015 at 7:48 PM, Boldt, David <<a href="mailto:dboldt@usgs.gov" target="_blank">dboldt@usgs.gov</a>> wrote:<br>
>><br>
>>> Thanks for these leads. Will looks at both the filter and "trends"<br>
>>> message options.<br>
>>><br>
>>> As a request for enhancement, I think it would be useful to have an<br>
>>> option to use a regexp to extract data from the status, one for each<br>
>>> variable.<br>
>>><br>
>>><br>
>>><br>
>>> On Mon, Oct 5, 2015 at 7:36 PM, J.C. Cleaver <<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>><br>
>>> wrote:<br>
>>><br>
>>>> On Mon, October 5, 2015 3:52 pm, Boldt, David wrote:<br>
>>>> > I'm in the process of converting Big Brother tests to XYMon and<br>
>>>> would<br>
>>>> like<br>
>>>> > to enable RRD/graphics for these tests.<br>
>>>> ><br>
>>>> > Several of these tests present date/time information which is<br>
>>>> important.<br>
>>>> ><br>
>>>> > As a workaround for one test I have replaced the colon on a HH:MM:DD<br>
>>>> > formatted date with a dot, but it doesn't really look like a time<br>
>>>> anymore.<br>
>>>> ><br>
>>>> > * Is there a way to have NCV ignore colons (and only use "=")?<br>
>>>> ><br>
>>>> > * Is there a way to have NCV ignore a line (which might contain<br>
>>>> colons)?<br>
>>>><br>
>>>><br>
>>>> Unfortunately, there isn't a way to do either of these at the moment.<br>
>>>> I'd<br>
>>>> considered a data parser that looks for a hidden HTML comment marker<br>
>>>> for<br>
>>>> lines to process (and ignores the rest), but it's not quite present<br>
>>>> yet.<br>
>>>><br>
>>>><br>
>>>> ><br>
>>>> > * Can I use Data messages in such a way that the corresponding<br>
>>>> Status<br>
>>>> > message is not parsed?<br>
>>>><br>
>>>> The easiest way to do this would be to add a --filter= option to the<br>
>>>> xymond_channel command line for the xymond_rrd process that's handling<br>
>>>> the<br>
>>>> *status* channel, but not the data channel.<br>
>>>><br>
>>>> There's a CPU load hit for doing so (since now you're doing a PCRE on<br>
>>>> each<br>
>>>> message), however it may not have much of an impact depending on your<br>
>>>> message volume.<br>
>>>><br>
>>>><br>
>>>> > * Might there be some other mechanism entirely?<br>
>>>><br>
>>>> Generally, speaking for more advanced RRD submission, the 'trends'<br>
>>>> message<br>
>>>> can be a useful data payload which is read directly by xymond_rrd. The<br>
>>>> advantage there (aside from more direct control) is the ability to<br>
>>>> send<br>
>>>> data points for multiple graphs at once, which could outweigh the<br>
>>>> expense<br>
>>>> of another message transmission.<br>
>>>><br>
>>>><br>
>>>> HTH,<br>
>>>><br>
>>>> -jc<br>
>>>><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>> --<br>
>>>                                          -- David Boldt<br>
>>>                                             <<a href="mailto:dboldt@usgs.gov" target="_blank">dboldt@usgs.gov</a>><br>
>>><br>
>>><br>
>>>    "Ah, this is obviously some strange usage of the word 'safe' that I<br>
>>> wasn't previously aware of."<br>
>>>     --Douglas Adams (1952 - 2001), Arthur Dent in "The Hitchhikers<br>
>>> Guide<br>
>>> to the Galaxy"<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Xymon mailing list<br>
>>> <a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
>>> <a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
>>><br>
>>><br>
>><br>
> _______________________________________________<br>
> Xymon mailing list<br>
> <a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
> <a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>