Greetings, I'm trying to do a php script to flat some graphics of mine, for example I have a graph showing 46.33M and I want it to be cut down to 46M precisely. So I did some coding on exporting the XML, editing it and reimporting the dump. So far so good. Here my question:
I exported the data of a single time, for example: * rrdtool fetch myrrd.rrd AVERAGE -s '20160608 18:00' -e '20160608 18:00'* and I get the values: *1465409100: 3.5134258945e+05 3.2815561127e+06* Converting them to MB would be: >>> float("3.5134258945e+05") / 1000 / 1000 * 8 *2.8107407156000006* >>> float("3.2815561127e+06") / 1000 / 1000 * 8 *26.2524489016* When I use rrdgraph , the result is diferent. It gives me 3.90M and 29.27M to the exactly same time, from the same rrdfile. I'm doing the graph with the following options: --start '20160608 18:00' --end '20160608 1800' DEF:in=myrrd:in:AVERAGE DEF:out=myrrd:out:AVERAGE CDEF:bits_in=in,8,* CDEF:bits_out=out,8,* AREA:bits_in#00FF00:RX LINE1:bits_out#0000FF:TX Pretty simple graph, showing the average traffic of input and output, multiplied by 8 to get the value into megabits per second, since the rrd data is fetched from InOctets and OutOctes via snmp. I wonder if some of you would know why the rrdfetch is not showing the same data as the rrdgraph. Thanks in advance. -- - Arch Linux - Usuário Linux #470599. LPI ID: LPI000187143 - Desenvolvedor Java/Python/Web - +55 (88) 9713-7657 - Bacharel em Sistemas de Informação pela Estácio ( http://www.estacio.br/ ) - Irc: lokidarkeden at freenode.com - http://www.leandrocosta.pro.br
_______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users