Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  rrdtool: ERROR: rrd->ds_def malloc

    Posted Tue April 07, 2020 08:44 AM

    Originally posted by: ctremel


     

    hi,

    updated our management server to aixtoolbox and the  lpar2rrd instance on it had quite some difficulties with your rrdtool package.

    the default 64bit version yields the above error, changing the link to the 32bit binary fixed the error.

     

    i read about this in the rrdtool forums, and it seems this is a somewhat  common error in the rrd library, but i did not investigate this any further.

     

     

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: rrdtool: ERROR: rrd->ds_def malloc

    Posted Tue April 07, 2020 02:06 PM

    Originally posted by: AyappanP


    We don't have access to lpar2rrd. How lpar2rrd invokes rrdtool ?

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: rrdtool: ERROR: rrd->ds_def malloc

    Posted Wed April 08, 2020 03:42 AM

    Originally posted by: ctremel


    rrdtool is called via the RRDp module from your rrdtool-perl package.

     

     excerpt from lpar2rrd code:

    use RRDp;

     

    # start RRD via a pipe
    RRDp::start "$rrdtool";

    timing_debug("rrdtool start");

    # keep here green - yellow - red - blue ...
    my @color = ( "#FF0000", "#0000FF", "#FFFF00", "#00FFFF", "#FFA500", "#00FF00", "#808080", "#FF00FF", "#800080", "#FDD017", "#0000A0", "#3BB9FF", "#008000", "#800000",
    "#C0C0C0", "#ADD8E6", "#F778A1", "#800517", "#736F6E", "#F52887", "#C11B17", "#5CB3FF", "#A52A2A", "#FF8040", "#2B60DE", "#736AFF", "#1589FF", "#98AFC7", "#8D38C9", "#3
    07D7E", "#F6358A", "#151B54", "#6D7B8D", "#FDEEF4", "#FF0080", "#F88017", "#2554C7", "#FFF8C6", "#D4A017", "#306EFF", "#151B8D", "#9E7BFF", "#EAC117", "#E0FFFF", "#1531
    7E", "#6C2DC7", "#FBB917", "#FCDFFF", "#15317E", "#254117", "#FAAFBE", "#357EC7", "#4AA02C", "#38ACEC" );
    my $color_max = 53;    # 0 - 53 is 54 colors

    my @table_out = "";
    my $ret = create_graph( $host, $server, $lpar, $item, $time, $name_out, $type_sam, $upper, $alarm, $graph_hours, $amax, $start_unix, $end_unix, $entitle );

    # close RRD pipe
    RRDp::end;

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: rrdtool: ERROR: rrd->ds_def malloc

    Posted Wed April 08, 2020 05:34 AM

    Originally posted by: AyappanP


    The perl used is 32bit or 64bit ? There could be a mismatch between 32/64bit version perl and rrdtool. 


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: rrdtool: ERROR: rrd->ds_def malloc

    Posted Wed April 08, 2020 05:42 AM

    Originally posted by: ctremel


    hmm...you are providing different 32/64bit binaries in your perl package? if yes, i was not aware of that and this might be of course be the source of my problem.

     


    #AIX-Open-Source-Software
    #AIXOpenSource