<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Le 6 août 2012 à 11:24, Henrik Størner a écrit :</div><blockquote type="cite"><div>On 06-08-2012 10:45, Joel Carnat wrote:<br><blockquote type="cite">When creating custom graph from multiple RRD, every GPRINT and COMMENT are repeated for each FNPATTERN.<br></blockquote><blockquote type="cite">Is there a way to have text only written once.<br></blockquote><br>It should only print once, but it depends on where you put it in the graph-definition.<br><br><blockquote type="cite">Something like:<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>(...)<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>COMMENT:@RRDPARAM@ title<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span>GPRINT:val@RRDIDX@:LAST:%4.0lf<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>GPRINT:val@RRDIDX@:MIN:%4.0lf<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>GPRINT:val@RRDIDX@:MAX:%4.0lf<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>GPRINT:val@RRDIDX@:AVERAGE:%4.0lf\l<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span>COMMENT:Last comment written only once<br></blockquote><br>Should be OK, if you write it *after* all of the DEF/CDEF/LINE/AREA definitions.<br><br>At least, that is how I think it works. Please post the full graphs.cfg definition.<br><br></div></blockquote><div><br></div><div>[vsphere_datastore]<br>        FNPATTERN ^vsphere_datastore.(.+).rrd<br>        TITLE Datastore Activity<br>        YAXIS Latency (ms)<br>        -b 1000<br>        -l 0<br>        -E<br>        COMMENT:                       <br>        COMMENT:   Cur\:<br>        COMMENT:   Min\:<br>        COMMENT:   Avg\:<br>        COMMENT:   Max\:\j<br>        DEF:rlat@RRDIDX@=@RRDFN@:rlat:AVERAGE<br>        DEF:wlat@RRDIDX@=@RRDFN@:wlat:AVERAGE<br>        CDEF:crlat@RRDIDX@=rlat@RRDIDX@,-1,*<br>        AREA:crlat@RRDIDX@#@COLOR@:@RRDPARAM@ read latency <br>        GPRINT:rlat@RRDIDX@:LAST:%6.2lf<br>        GPRINT:rlat@RRDIDX@:MIN:%6.2lf<br>        GPRINT:rlat@RRDIDX@:AVERAGE:%6.2lf<br>        GPRINT:rlat@RRDIDX@:MAX:%6.2lf\j<br>        AREA:wlat@RRDIDX@#@COLOR@:@RRDPARAM@ write latency<br>        GPRINT:wlat@RRDIDX@:LAST:%6.2lf<br>        GPRINT:wlat@RRDIDX@:MIN:%6.2lf<br>        GPRINT:wlat@RRDIDX@:AVERAGE:%6.2lf<br>        GPRINT:wlat@RRDIDX@:MAX:%6.2lf\j<br>        COMMENT: \j<br><br></div><div>What I would like is the "Cur/min/Avg/Max" line to appear only once at the beginning and the "new line" t appear only once at the end. Moving "COMMENT" section doesn't seem to do anything. Xymon is 4.3.9, compiled from sources on OpenBSD.</div><div><br></div><div>The graph is attached.</div><div><img height="52" width="85.4224" apple-width="yes" apple-height="yes" id="9c58ebc1-5615-41c0-b240-99db9a58596c" src="cid:21DE09A6-4031-465B-A784-6ECE92C53F28@arumtec.net"></div><br><blockquote type="cite"><div><br>Regards,<br>Henrik<br><br>_______________________________________________<br>Xymon mailing list<br><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>http://lists.xymon.com/mailman/listinfo/xymon<br></div></blockquote></div><br></body></html>