<div>All,</div>
<div> </div>
<div>Somewhat similar question to one asked earlier about custom data/graphing</div>
<div> </div>
<div>I have a script that gets SAR data. I am creating the rrd files manually up front, as they have a different</div>
<div>step frequency that hobbit would create.</div>
<div> </div>
<div>It outputs (for example)</div>
<div> </div>
<div>cpu0pusr:number</div>
<div>cpu0pwio:number</div>
<div>cpu0pidl:number</div>
<div>cpu1pusr:number</div>
<div>cpu1pwio:number</div>
<div>cpu1pidl:number</div>
<div> </div>
<div>etc...</div>
<div>This can vary based on the number of cpu's in the box. I am only doing this on a limited number of hosts (3) so</div>
<div>hand creating the RRD's isn't too big of a deal. The problem is graphing. Some of these have 16 CPU's, some only 4.</div>
<div>If I create a graph definition, it would have to be universal (i.e have up to 16 definitions for everything) but that would</div>
<div>make the graphs for the boxes with only 4 CPU's not look right (I think, havn't tested yet)</div>
<div> </div>
<div>What I was wondering is, is there a way in the hobbitgraph.cfg to do something like:</div>
<div>(NOTE: I know this syntax isn't correct, it's more for readability purposes)</div>
<div> </div>
<div>[sar]<br>        TITLE sar data<br>        YAXIS percent<br>        DEF:cpu$NUMpusr=sar.rrd:cpu$NUMpusr:AVERAGE<br>        DEF:cpu$NUMpwio=sar.rrd:cpu$NUMpwio:AVERAGE<br>        DEF:cpu$NUMpidl=sar.rrd:cpu$NUMpidl:AVERAGE
<br>        LINE1:cpu$NUMpusr#CC3333:cpu$NUM percent usr<br>        LINE1:cpu$NUMpwio#FF0000:cpu$NUM percent wio<br>        LINE1:cpu$NUMpidl#0000FF:cpu$NUM percent idle<br>        COMMENT:\n<br>        GPRINT:cpu$NUMpusr:LAST:CPU $NUM usr \: %5.1lf%s (cur)
<br>        GPRINT:cpu$NUMpusr:MAX: \: %5.1lf%s (max)<br>        GPRINT:cpu$NUMpusr:MIN: \: %5.1lf%s (min)<br>        GPRINT:cpu$NUMpusr:AVERAGE: \: %5.1lf%s (avg)\n<br>        GPRINT:cpu$NUMpwio:LAST:CPU $NUM wio. \: %5.1lf%s (cur)
<br>        GPRINT:cpu$NUMpwio:MAX: \: %5.1lf%s (max)<br>        GPRINT:cpu$NUMpwio:MIN: \: %5.1lf%s (min)<br>        GPRINT:cpu$NUMpwio:AVERAGE: \: %5.1lf%s (avg)\n<br>        GPRINT:cpu$NUMpidl:LAST:CPU $NUM idle. \: %5.1lf%s (cur)
<br>        GPRINT:cpu$NUMpidl:MAX: \: %5.1lf%s (max)<br>        GPRINT:cpu$NUMpidl:MIN: \: %5.1lf%s (min)<br>        GPRINT:cpu$NUMpidl:AVERAGE: \: %5.1lf%s (avg)\n<br> </div>
<div> </div>
<div>I think the more correct way is to split the RRD files into sar0.rrd, sar1.rrd, etc... and use the FPATTERN thing with the index.</div>
<div>I can split the output up and change the test name for each cpu to sar0,sar1 etc.. so that it updates the correct </div>
<div>RRD, but I just wanted to find out first if there is a way to do this in 1 RRD and do the work in the graph portion.</div>
<div> </div>
<div>Thanks,</div>
<div>Jeff</div>
<div> </div>