[Xymon] Custom non-ncv graph

Tomáš Wachtarczyk tomas.wachtarczyk at gmail.com
Wed Mar 23 12:29:59 CET 2016


I tried it with "VG2," but same.

When i had ncv VG graph,

SPLITNCV_VG="*:GAUGE"

i used

FNPATTERN VG.(.+).rrd
without problem and

-rw-rw-r-- 1 xymon xymon 19640 Mar 23 10:59
../data/rrd/hostname/VG,appvg.rrd
-rw-rw-r-- 1 xymon xymon 19640 Mar 23 11:00
../data/rrd/hostname/VG,rootvg.rrd
-rw-rw-r-- 1 xymon xymon 19640 Mar 23 11:00
../data/rrd/hostname/VG,vgdata.rrd

were created into one graph without problem.


[VG]
        FNPATTERN VG.(.+).rrd
        TITLE Volume group
        YAXIS Percentage
        DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE
        LINE1.5:p at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n




On Wed, Mar 23, 2016 at 11:59 AM, Jeremy Laidman <jlaidman at rebel-it.com.au>
wrote:

> On Wed, Mar 23, 2016 at 9:43 PM Tomáš Wachtarczyk <
> tomas.wachtarczyk at gmail.com> wrote:
>
>
>> It produce
>> [*VG2*,appvg.rrd]
>>
>
>
>> [*VG2*,rootvg.rrd]
>>
>
>
>> I tried to define it also in graphs.cfg
>> [*VG2*]
>>         FNPATTERN VG2.(.+).rrd
>>
>
> Shouldn't that be:
>           FNPATTERN VG2,(.+).rrd
>
> I'm not entirely sure but I always thought the PCRE parser only looks
> inside the parens, and so a dot (aka period, or ".") outside the parens
> will be a literal dot, and won't match a comma in the filename.
>
> J
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160323/a6d2a4d2/attachment.html>


More information about the Xymon mailing list