![](https://secure.gravatar.com/avatar/a3e02be57a886f41a4c629d69f6ac715.jpg?s=120&d=mm&r=g)
Hi,
Currently running: 0.16.1.7533 (26th January 2016)
We’ve noticed the DOM optic power sensor data to be graphed at 0W all the time. Noticing the ‘value’ figure is correct on the optic’s power status page, we subsequently found all data in the RRD to be correct. eg: <!-- 2016-02-25 20:50:00 GMT / 1456433400 --> <row><v>6.1840000000e-04</v></row> <!-- 2016-02-25 20:55:00 GMT / 1456433700 --> <row><v>6.1300000000e-04</v></row> <!-- 2016-02-25 21:00:00 GMT / 1456434000 --> <row><v>6.1435000000e-04</v></row>
It just seems the rrdtool graph function is not rendering this sensor data with anything useful. The graph is being generated with something like this:
rrdtool graph /tmp/FLjPO7rtfRJQOfGn.png -Y --lower-limit 0 --alt-autoscale-max --start 1456347228 --end 1456433628 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal --font LEGEND:8:'DroidSansMono,DejaVuSansMono' --font AXIS:7:'DroidSansMono,DejaVuSansMono' --font-render-mode normal -E -A COMMENT:' Last Max\n' DEF:sensor=/srv/www/iss/observium/rrd/t40-ar14/sensor-power-cisco-entity-sensor-58513400.rrd:sensor:AVERAGE DEF:sensor_max=/srv/www/iss/observium/rrd/t40-ar14/sensor-power-cisco-entity-sensor-58513400.rrd:sensor:MAX DEF:sensor_min=/srv/www/iss/observium/rrd/t40-ar14/sensor-power-cisco-entity-sensor-58513400.rrd:sensor:MIN AREA:sensor_max#c5c5c5 AREA:sensor_min#ffffffff LINE1.5:sensor#cc0000:'Transceiver Rx Power -' GPRINT:sensor:LAST:%6.2lfW GPRINT:sensor:MAX:%6.2lfW\l HRULE:0.0009585#999999::dashes
Seeing the data collected is in the order of 10^-4 d.p. small, how can we stop this being rounded to 0 all the time on a the graph? I understand completely this is rrdtool not automatically choosing a very good scale for you, but is there any way to detect these low values and fix them up for the graphs by order of 1000 say?
Cheers
Sandy