<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1413209432728_4328">Greetings,</div><div id="yui_3_16_0_1_1413209432728_4329"><br></div><div id="yui_3_16_0_1_1413209432728_4344" dir="ltr">I'm creating a rrdtool database with a large number of datasources (~45). It is working fine, but due the large number of datasources, it's pretty hard to make find out which line is which datasource based on the legend since I'm forced to used small intervals of color to make them different to the eyes.</div><div id="yui_3_16_0_1_1413209432728_4412" dir="ltr"><br></div><div id="yui_3_16_0_1_1413209432728_4411" dir="ltr">Just to illustrate, I used an array to fetch a color for each line (hope it is OK to put Perl code here):</div><div id="yui_3_16_0_1_1413209432728_4410" dir="ltr"><br></div><div id="yui_3_16_0_1_1413209432728_4392" dir="ltr">    my @colors = (<br style="" class="">        '000080', '0000CD', '006400', '008080', '00BFFF', '00FA9A',<br style="" class="">        '00FF7F', '00FFFF', '1E90FF', '228B22', '2F4F4F', '3CB371',<br style="" class="">        '4169E1', '483D8B', '4B0082', '5F9EA0', '66CDAA', '6A5ACD',<br style="" class="">        '708090', '7B68EE', '7FFF00', '800000', '808000', '87CEEB',<br style="" class="">        '8A2BE2', '8B008B', '8FBC8F', '9370DB', '98FB98', '9ACD32',<br style="" class="">        'A52A2A', 'ADD8E6', 'AFEEEE', 'B0E0E6', 'B8860B', 'BC8F8F',<br style="" class="">        'C0C0C0', 'CD5C5C', 'D2691E', 'D3D3D3', 'DA70D6', 'DB7093',<br style="" class="">        'DCDCDC', 'DEB887', 'E6E6FA', 'EE82EE', 'F08080', 'F0F8FF',<br style="" class="">        'F0FFFF', 'F5DEB3', 'F5F5F5', 'F8F8FF', 'FAEBD7', 'FAFAD2',<br style="" class="">    );<br style="" class=""><br></div><div id="yui_3_16_0_1_1413209432728_4346" dir="ltr">In most of cases, only part of those datasources will have interesting results (~8% of datasources will have values near zero). I would like to filter only the datasources that have a value greater than a threshold.</div><div id="yui_3_16_0_1_1413209432728_4348" dir="ltr"><br></div><div id="yui_3_16_0_1_1413209432728_4349" dir="ltr">My naive attempt was to use fetch with the same values I'll be using for graph (start date, end date an cfunc).</div><div id="yui_3_16_0_1_1413209432728_4413" dir="ltr"><br></div><div id="yui_3_16_0_1_1413209432728_4414" dir="ltr">Is this procedure correct? Is there a better way to do that?</div><div id="yui_3_16_0_1_1413209432728_4415" dir="ltr"><br></div><div id="yui_3_16_0_1_1413209432728_4416" dir="ltr">Thanks,</div><div id="yui_3_16_0_1_1413209432728_4417" dir="ltr"><br></div><div id="yui_3_16_0_1_1413209432728_4418" dir="ltr">Alceu<br></div><div id="yui_3_16_0_1_1413209432728_4330"><br></div><div></div></div></body></html>