You need to use a CDEF to handle the calculation. I store counters in bytes as they are retrieved from the device and graph as bits.
You take your DEF (bytes) and create a CDEF for the calculation (*8 = bits). Example: DEF:in=yourfile.rrd:in:AVERAGE DEF:out=yourfile.rrd:out:AVERAGE CDEF:bitsin=in,8,* CDEF:bitsout=out,8,* Graph bitsin/bitsout instead and there you go. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Westlake, Simon Sent: Wednesday, August 23, 2006 12:49 To: [email protected] Subject: [rrd-users] PHP4-RRDTool continues.. I emailed the list yesterday about a 'problem' I'm having with php4-rrdtool (it seems to interpret bits in an rrd file as bytes.) I have searched in vain for a way to fix this problem and I haven't found a way of doing so. So, the only solutions I could come up with is to: Multiply by 8 when inputting the data into the RRD file. Multiply by 8 when generating the graph. The first option is awful and I really don't want to have to do it. However, I also don't see a way of manipulating the data with rrdgraph to multiply the value by 8. I'd rather not stop using php4-rrdtool if possible, and it is enabling me to accomplish a specific task quite easily and it works fine for all the graphs other than traffic. Does anyone know of some undocumented way (or some way I'm not understanding from the rrdgraph manpage) to manipulate the data pulled from the rrd file and perform a mathematical equation on it? -- Simon Westlake Time Warner Cable Business Class Network Engineer Ph: 414.908.4791 | Cell: 414.688.7956 -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
