Jay Christopherson
2008-10-08 17:22:26 UTC
This might be more appropriate for another list, but since its ONMS I'm
working with I'm hoping that maybe I can get a quick answer here.
My issue is that I am trying to graph a singe datasource in ONMS, but it is
not graphing correctly. The datasource in question is spitting out whole
integers, but JRobin/ONMS seems to be storing the numbers as decimals.
Using jrobin-inspector, I can see that a number that was fetched as "6" (via
collectd logfile), is getting stored as a fraction in scientific notation.
I understand that this is how RRD/JRobin stores numbers, but I would expect
to be able to fetch and store whole integer. I've tried using both a LAST
and AVERAGE datasource definition. Here is my current definition:
jmx-datacollection:
<jmx-collection name="jsr160"
maxVarsPerPdu = "50">
<rrd step = "300">
<rra>RRA:AVERAGE:0.5:1:8928</rra>
<rra>RRA:AVERAGE:0.5:12:8784</rra>
<rra>RRA:MIN:0.5:12:8784</rra>
<rra>RRA:MAX:0.5:12:8784</rra>
</rrd>
...
<attrib name="Last5MinuteExpiredCount" alias="VrmL5mExpCount"
type="gauge"/>
...
snmp-graph.properties:
report.jvm.vrml5mexp.name=VRM Expired Count
report.jvm.vrml5mexp.columns=VrmL5mExpCount
report.jvm.vrml5mexp.type=interfaceSnmp
report.jvm.vrml5mexp.command=--title="VRM Last5MinuteExpiredCount" \
DEF:vrml5mexp={rrd1}:VrmL5mExpCount:AVERAGE \
AREA:vrml5mexp#99ff00:"VRM_L5M" \
GPRINT:vrml5mexp:LAST:"ExpiredCount (Current) : %8.2lf %s\\n"
Example from collectd.log:
collectd.log.4:2008-10-08 07:33:54,631 INFO [CollectdScheduler-50
Pool-fiber2] RrdUtils: updateRRD: updating RRD file
/opt/opennms/share/rrd/snmp/76/jvm/VrmL5mExpCount.jrb with values
'1223476435:6'
When I would expect to see a "6.0" on the graph (and printed out), I see
some sort of decimal like "3.45". I am sure the issue is my understanding
of how JRobin/RRDTool works, but I am having trouble understanding exactly
what is going on here.
Thanks!
Jay
working with I'm hoping that maybe I can get a quick answer here.
My issue is that I am trying to graph a singe datasource in ONMS, but it is
not graphing correctly. The datasource in question is spitting out whole
integers, but JRobin/ONMS seems to be storing the numbers as decimals.
Using jrobin-inspector, I can see that a number that was fetched as "6" (via
collectd logfile), is getting stored as a fraction in scientific notation.
I understand that this is how RRD/JRobin stores numbers, but I would expect
to be able to fetch and store whole integer. I've tried using both a LAST
and AVERAGE datasource definition. Here is my current definition:
jmx-datacollection:
<jmx-collection name="jsr160"
maxVarsPerPdu = "50">
<rrd step = "300">
<rra>RRA:AVERAGE:0.5:1:8928</rra>
<rra>RRA:AVERAGE:0.5:12:8784</rra>
<rra>RRA:MIN:0.5:12:8784</rra>
<rra>RRA:MAX:0.5:12:8784</rra>
</rrd>
...
<attrib name="Last5MinuteExpiredCount" alias="VrmL5mExpCount"
type="gauge"/>
...
snmp-graph.properties:
report.jvm.vrml5mexp.name=VRM Expired Count
report.jvm.vrml5mexp.columns=VrmL5mExpCount
report.jvm.vrml5mexp.type=interfaceSnmp
report.jvm.vrml5mexp.command=--title="VRM Last5MinuteExpiredCount" \
DEF:vrml5mexp={rrd1}:VrmL5mExpCount:AVERAGE \
AREA:vrml5mexp#99ff00:"VRM_L5M" \
GPRINT:vrml5mexp:LAST:"ExpiredCount (Current) : %8.2lf %s\\n"
Example from collectd.log:
collectd.log.4:2008-10-08 07:33:54,631 INFO [CollectdScheduler-50
Pool-fiber2] RrdUtils: updateRRD: updating RRD file
/opt/opennms/share/rrd/snmp/76/jvm/VrmL5mExpCount.jrb with values
'1223476435:6'
When I would expect to see a "6.0" on the graph (and printed out), I see
some sort of decimal like "3.45". I am sure the issue is my understanding
of how JRobin/RRDTool works, but I am having trouble understanding exactly
what is going on here.
Thanks!
Jay