[Xymon] Xymongrep suggestion: pick up additional test parameters

J.C. Cleaver cleaver at terabithia.org
Wed Nov 25 00:52:33 CET 2015



On Tue, November 24, 2015 1:23 pm, Ribeiro, Glauber wrote:
> There are xymon tests which include additional parameters. For example:
> the network tests can include a port number, and apache has a url.
> Currently, xymongrep doesn't support these, because it only works with
> exact matches. It would be nice for it to be able to recognize colon
> (tag:parameter or tag:parameter1,parameter2) and equals (tag=parameter or
> tag=parameter1,parameter2) and supply these as additional words in the
> output.
>
> Just an idea, in case it's considered useful for a future version.

Hi Glauber,

It needs to be documented better, but xymongrep does actually support
wildcards for matching (I believe of the posix variety). Thus ports, ':',
and '=' test variations should be retrievable. I.e.,:

[root at localhost ~]# xymoncmd xymongrep dns* | grep '='
216.239.32.10 ns1.google.com # dns=a:google.com

(From a script, you might need to escape the wildcard)

URL styles of tags can be retrieved that way too, but I agree that having
them easily reachable by test type /alone/ would be a nice feature.


HTH,
-jc




More information about the Xymon mailing list