Windows Disk IO Size graph failing

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Windows Disk IO Size graph failing

(private) HKS
Recent OpenNMS 1.7.0 snapshot.

The Short:
I've put together a set of Disk IO graphs for Windows based on
netsnmp.diskio.bytes/ops/opsize, and everything displays properly
except for the Read Size portion of opsize. This may be due to a
divide by zero problem, but I'm not familiar enough with RRD to track
it down myself.

The Long:
I've built report.custom.sinf.diskio.bytes,
report.custom.sinf.diskio.ops, and report.custom.sinf.diskio.opsize as
almost exact mimics of their netsnmp counterparts. I've included all
three configurations at the bottom of this email.

diskio.ops and diskio.bytes work perfectly. diskio.opsize complains
"No Data Found." The GPRINT functions display properly for the Write
side of things, but the Read ones show:
"Avg: NaN ?  Min: 312.91  Max: NaN ?"

If the Read portion is commented out, the Write-half displays
perfectly. If I change the line:

The Read portion displays a graph identical to sinf.diskio.bytes (as
expected). What I don't quite understand is why this is a problem for
this graph in particular. The identical netsnmp graphs have no problem
displaying despite large empty spots in their diskio.bytes graphs.
What am I missing, or how can I go about tracking this down?

Thanks in advance.

-HKS IO Bytes
report.custom.sinf.diskio.bytes.command=--title="Disk IO Bytes" \
 DEF:nread={rrd1}:sinfLDskRdBytPerSc:AVERAGE \
 DEF:nwritten={rrd2}:sinfLDskWtBytPerSc:AVERAGE \
 CDEF:nwritteninv=nwritten,-1,* \
 AREA:nread#00ff00:"Read" \
 GPRINT:nread:AVERAGE:"Avg \\: %10.2lf %s" \
 GPRINT:nread:MIN:"Min \\: %10.2lf %s" \
 GPRINT:nread:MAX:"Max \\: %10.2lf %s\\n" \
 AREA:nwritteninv#0000ff:"Written" \
 GPRINT:nwritten:AVERAGE:"Avg \\: %10.2lf %s" \
 GPRINT:nwritten:MIN:"Min \\: %10.2lf %s" \
 GPRINT:nwritten:MAX:"Max \\: %10.2lf %s\\n" IO Operations
report.custom.sinf.diskio.ops.command=--title="Disk IO Operations" \
 DEF:reads={rrd1}:sinfLDskRdsPerSec:AVERAGE \
 DEF:writes={rrd2}:sinfLDskWtsPerSec:AVERAGE \
 CDEF:writesinv=writes,-1,* \
 AREA:reads#00ff00:"Read" \
 GPRINT:reads:AVERAGE:"Avg \\: %10.2lf %s" \
 GPRINT:reads:MIN:"Min \\: %10.2lf %s" \
 GPRINT:reads:MAX:"Max \\: %10.2lf %s\\n" \
 AREA:writesinv#0000ff:"Written" \
 GPRINT:writes:AVERAGE:"Avg \\: %10.2lf %s" \
 GPRINT:writes:MIN:"Min \\: %10.2lf %s" \
 GPRINT:writes:MAX:"Max \\: %10.2lf %s\\n" IO Size
report.custom.sinf.diskio.opsize.command=--title="Disk IO Size" \
 DEF:reads={rrd1}:sinfLDskRdsPerSec:AVERAGE \
 DEF:writes={rrd2}:sinfLDskWtsPerSec:AVERAGE \
 DEF:nread={rrd3}:sinfLDskRdBytPerSc:AVERAGE \
 DEF:nwritten={rrd4}:sinfLDskWtBytPerSc:AVERAGE \
 CDEF:readsize=nread,reads,/ \
 CDEF:writesize=nwritten,writes,/ \
 CDEF:writesizeinv=writesize,-1,* \
 AREA:readsize#00ff00:"Read Size" \
 GPRINT:readsize:AVERAGE:"Avg \\: %10.2lf %s" \
 GPRINT:readsize:MIN:"Min \\: %10.2lf %s" \
 GPRINT:readsize:MAX:"Max \\: %10.2lf %s\\n"
 AREA:writesizeinv#0000ff:"Write Size" \
 GPRINT:writesize:AVERAGE:"Avg \\: %10.2lf %s" \
 GPRINT:writesize:MIN:"Min \\: %10.2lf %s" \
 GPRINT:writesize:MAX:"Max \\: %10.2lf %s\\n" \

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Please read the OpenNMS Mailing List FAQ:

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page: