[Xymon] Custom non-ncv graph

Tomáš Wachtarczyk tomas.wachtarczyk at gmail.com
Wed Mar 23 14:04:04 CET 2016


When i define

[VG2]
        TITLE VG - Size
        YAxis Bytes
        FNPATTERN VG2,(.+).rrd
        DEF:vgs at RRDIDX@=@RRDFN@:vgsize:AVERAGE
        LINE2:vgs at RRDIDX@#@COLOR@:@RRDPARAM@

I am able to generate VGSIZE for 3 VG on machine.

I think i will do 3 graphs for VGSIZE, VGFREE and VGPRCT
I am not able to do that into one.

W.

On Wed, Mar 23, 2016 at 1:15 PM, Tomáš Wachtarczyk <
tomas.wachtarczyk at gmail.com> wrote:

> I am able to generate graph manualy by
>
> rrdtool graph /tmp/output.png --width 500 --start 1458648243 -v "VG"  \
> DEF:vgsize=/tmp/VG2,appvg.rrd:vgsize:AVERAGE \
> DEF:vgfree=/tmp/VG2,appvg.rrd:vgfree:AVERAGE \
> DEF:vgprct=/tmp/VG2,appvg.rrd:vgprct:AVERAGE \
> LINE2:vgsize#FF0000:vgsize \
> LINE2:vgfree#00FF00:vgfree \
> LINE2:vgprct#0000FF:vgprct
>
>
> So i think i have something wrong in graphs.cfg
>
> W.
>
>
> On Wed, Mar 23, 2016 at 12:29 PM, Tomáš Wachtarczyk <
> tomas.wachtarczyk at gmail.com> wrote:
>
>> 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/b400ef44/attachment.html>


More information about the Xymon mailing list