Xymon Mailing List Archive search

Custom RRD Graph Issue

list Sam L
Mon, 30 May 2011 10:28:12 -0400
Message-Id: <user-60942a609441@xymon.invalid>

Warning: I'm very new to RRD (and xymon).
I followed the custom graphs how-to and tried to setup a custom graph with 3 items on it.  The output of my ext script looks like:
cpu: 35sda: 47sdb: 39

Everything seems to be working fine and RRD appears to be picking up the data, but my graph doesn't look right.  At the bottom of the graph it is reporting correctly on all 3 values, but they just aren't graphing correctly.  The first one, cpu is fine. sda appears to be graphing, but in the color for sdd. sdb doesn't graph at all.
I'm not sure how to alter the example configuration for 3 lines instead of two, but I obviously didn't get it right.  In graphs.cfg I have the following:


[deg]

        TITLE Temperature

        YAXIS Celsius

        DEF:cpu=deg.rrd:cpu:AVERAGE

        DEF:sda=deg.rrd:sda:AVERAGE

        DEF:sdb=deg.rrd:sdb:AVERAGE

        LINE2:cpu#00FF00:cpu

        LINE2:sda#FF0000:sda

        LINE2:sda#0000FF:sdb

        COMMENT:\n

        GPRINT:cpu:LAST:cpu \: %5.1lf%s (cur)

        GPRINT:cpu:MAX: \: %5.1lf%s (max)

       
GPRINT:cpu:MIN: \: %5.1lf%s (min)

        GPRINT:cpu:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:sda:LAST:sda \: %5.1lf%s (cur)

        GPRINT:sda:MAX: \: %5.1lf%s (max)

        GPRINT:sda:MIN: \: %5.1lf%s (min)

        GPRINT:sda:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:sdb:LAST:sdb \: %5.1lf%s (cur)

        GPRINT:sdb:MAX: \: %5.1lf%s (max)

        GPRINT:sdb:MIN: \: %5.1lf%s (min)

        GPRINT:sdb:AVERAGE: \: %5.1lf%s (avg)\n
Any thoughts?