I've been looking at this all day and haven't been able to figure out why my rrdtool command would be generating different results from Cacti. Here's my command:
Code: Select all
/usr/bin/rrdtool graph dummy.png --start=STARTTIME --end=ENDTIME
DEF:tin=DATASOURCE:traffic_in:AVERAGE
DEF:tout=DATASOURCE:traffic_out:AVERAGE
VDEF:totalin=tin,TOTAL VDEF:totalout=tout,TOTAL
CDEF:maxinout=tin,tout,MAX,8,*
CDEF:tinbits=tin,8,*
CDEF:toutbits=tout,8,*
VDEF:nintyfifth=maxinout,95,PERCENTNAN
VDEF:nintyfifthin=tinbits,95,PERCENTNAN
VDEF:nintyfifthout=toutbits,95,PERCENTNAN
PRINT:totalin:\%lf
PRINT:totalout:\%lf
PRINT:nintyfifth:\%lf
PRINT:nintyfifthin:\%lf
PRINT:nintyfifthout:\%lf
2>&1
overall 95th: |95:bits:6:max:2|
traffic_in 95th: |95:bits:0:current:2|
traffic_out 95th: |95:bits:0:current:2|
Both traffic_in and traffic_out have the appropriate data source set. Cacti seems to report a higher 95th percentile than what my rrdgraph command is giving in the oddities. It also appears to be stemming from a higher traffic_in 95th percentile.
At this point, I'm asking the forums before going over Cacti's 95th percentile function in lib/graph_variables.php line-by-line to see why it's giving me differences in values.
Why am I getting higher 95th percentile values from Cacti than rrdtool only in certain cases?