MAX result value conflict between Graph and CLI
Posted: Mon Mar 04, 2019 8:17 am
dear Expert
this is my template to plot latency graph (/usr/local/nagios/share/pnp/templates/)
$def[1] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;
$def[1] .= "GPRINT:var1:MIN:\"%8.0lf MIN\" " ;
$def[1] .= "GPRINT:var1:AVERAGE:\"%8.0lf AVG\" " ;
$def[1] .= "GPRINT:var1:MAX:\"%8.0lf MAX\" " ;
$def[1] .= "GPRINT:var1:LAST:\"%8.0lf LAST\\n\" " ;
Please check the attached rrd graph
MIN = 29
AVG = 33
MAX = 49
LAST = 35
and compare below CLI result.............why only MAX value is not same...........I tried many other Bandwidth and Latency graph but MAX value in CLI not matching with graph value.
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:MIN:'Value - %.3lf'
Value - 29.021
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:AVERAGE:'Value - %.3lf'
Value - 33.244
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:MAX:'Value - %.3lf'
Value - 44.497 <<<<<<<<<<< why only this value not matching with attached rrd graph
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:LAST:'Value - %.3lf'
Value - 35.000
this is my template to plot latency graph (/usr/local/nagios/share/pnp/templates/)
$def[1] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;
$def[1] .= "GPRINT:var1:MIN:\"%8.0lf MIN\" " ;
$def[1] .= "GPRINT:var1:AVERAGE:\"%8.0lf AVG\" " ;
$def[1] .= "GPRINT:var1:MAX:\"%8.0lf MAX\" " ;
$def[1] .= "GPRINT:var1:LAST:\"%8.0lf LAST\\n\" " ;
Please check the attached rrd graph
MIN = 29
AVG = 33
MAX = 49
LAST = 35
and compare below CLI result.............why only MAX value is not same...........I tried many other Bandwidth and Latency graph but MAX value in CLI not matching with graph value.
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:MIN:'Value - %.3lf'
Value - 29.021
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:AVERAGE:'Value - %.3lf'
Value - 33.244
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:MAX:'Value - %.3lf'
Value - 44.497 <<<<<<<<<<< why only this value not matching with attached rrd graph
rrdtool graph dummy -s20190101 -e20190201 DEF:test=$chorchor:1:AVERAGE PRINT:test:LAST:'Value - %.3lf'
Value - 35.000