其实就是指定rrdtool的一个参数 –units-exponent 0vim /usr/local/pnp4nagios/share/templates/get_cdn_bw_usage.php
<?php# Plugin: get_cdn_bw_usage# Output: Last 5mins 10140.73218Mbp/s | data=11040.73218Mbps;$opt[1] = " --units-exponent 0 --vertical-label \"$UNIT[1]\" --title \"$servicedesc\" ";$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:AVERAGE " ;$def[1] .= "AREA:var1#0066FF:\"bandwidth\" " ;$def[1] .= "GPRINT:var1:LAST:\"%.5lf %s$UNIT[1] last\" " ;$def[1] .= "GPRINT:var1:AVERAGE:\"%.5lf %s$UNIT[1] avg\" " ;$def[1] .= "GPRINT:var1:MAX:\"%.5lf %s$UNIT[1] max\\n\" " ;?>