<div dir="ltr"><div><div>Hello, <br><br></div>I am struggling with displaying custom graph. <br><br></div><div>It should display volumegroups on host with VGSIZE, VGFREE and VGPRCT (usage of VG) <br></div><div>Number of VG are not constant, it may differ. <br><br></div><div>So i am sending it as data and i can find rrd on xymon server. <br><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">TEST=<b>VG</b><br></span></div><div><span style="font-family:monospace,monospace"><br>BBVGB=$(sudo /usr/sbin/vgs --units B --nosuffix --noheadings --aligned --o vg_name,vg_size,vg_free)<br><br>while read VG VGSIZE VGFREE; do<br>VGPRCT=$(bc <<< "scale=2;100-(${VGFREE}/${VGSIZE}*100)")<br>DATA="${DATA}<br>[<b>VG2</b>,${VG}.rrd]<br>DS:vgsize:GAUGE:600:0:U ${VGSIZE}<br>DS:vgfree:GAUGE:600:0:U ${VGFREE}<br>DS:vgprct:GAUGE:600:0:100 ${VGPRCT}<br>"<br>done <<< "${BBVGB}"</span><br><br><br></div><div>It produce <br></div><div><span style="font-family:monospace,monospace">[<b>VG2</b>,appvg.rrd]<br>DS:vgsize:GAUGE:600:0:U 314572800000<br>DS:vgfree:GAUGE:600:0:U 69130518528<br>DS:vgprct:GAUGE:600:0:100 75<br><br>[<b>VG2</b>,rootvg.rrd]<br>DS:vgsize:GAUGE:600:0:U 2472800000<br>DS:vgfree:GAUGE:600:0:U 430518528<br>DS:vgprct:GAUGE:600:0:100 97<br><br></span></div><div><span style="font-family:monospace,monospace">Sending it to xymon server with <br>${XYMON} ${XYMSRV} "data ${MACHINE}.trends<br>${DATA}"</span><br></div><div><br></div><div>Data are delivered, i can dump rrd on xymonserver, seems to ok to me, archive is filling up, but i am not able to display it on trends or GRAPH_<b>VG</b>="<b>VG2</b>" page. <br><br></div><div><span style="font-family:monospace,monospace">rrdttol dump <b>VG2</b>,appvg.rrd<br>        <ds><br>                <name> vgsize </name><br>                <type> GAUGE </type><br>                <minimal_heartbeat> 600 </minimal_heartbeat><br>                <min> 0.0000000000e+00 </min><br>                <max> NaN </max><br><br>                <!-- PDP Status --><br>                <last_ds> 314572800000 </last_ds><br>                <value> 2.6109542400e+13 </value><br>                <unknown_sec> 0 </unknown_sec><br>        </ds></span><br><br></div><div><br><br></div><div>I set it in xymonserver.cfg to TEST2RRD="....VG2"  (is it correct?) and GRAPHS="...VG2" <br><br></div><div>I tried to define it also in graphs.cfg <br><span style="font-family:monospace,monospace">[<b>VG2</b>]<br>        FNPATTERN VG2.(.+).rrd<br>        TITLE Volume group<br>        DEF:vgsize=@RRDFN@:vgsize:AVERAGE<br>        DEF:vgfree=@RRDFN@:vgfree:AVERAGE<br>        DEF:vgprct=@RRDFN@:vgprct:AVERAGE<br>        LINE1.5:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>        GPRINT:vgsize:LAST: \: %5.1lf (cur)<br>        GPRINT:vgsize:MAX: \: %5.1lf (max)<br>        GPRINT:vgsize:MIN: \: %5.1lf (min)<br>        GPRINT:vgsize:AVERAGE: \: %5.1lf (avg)\n<br>        GPRINT:vgfree:LAST: \: %5.1lf (cur)<br>        GPRINT:vgfree:MAX: \: %5.1lf (max)<br>        GPRINT:vgfree:MIN: \: %5.1lf (min)<br>        GPRINT:vgfree:AVERAGE: \: %5.1lf (avg)\n<br>        GPRINT:vgprct:LAST: \: %5.1lf (cur)<br>        GPRINT:vgprct:MAX: \: %5.1lf (max)<br>        GPRINT:vgprct:MIN: \: %5.1lf (min)<br>        GPRINT:vgprct:AVERAGE: \: %5.1lf (avg)\n</span><br><br><br></div><div>I was able to understand when i was sending ncv only <br>vg:percentage<br>appvg:75<br>rootvg:98<br><br>, and it worked. <br><br></div><div>But i am stupid for more complex solutions and lost in english. I am sure it is very easy task, but i just do not get it. <br></div><div><br></div><div>Thank you for your help<br><br></div><div>W.<br><br></div><div>P.S: I have plan to send VG as status with human formated output and VG2 will be data for graphs. <br></div></div>