/var/lib/mrtg v/s /usr/local/nagios/share/perfdata
Posted: Thu Feb 28, 2019 7:08 am
Dear Expert
while I was comparing my result
/var/lib/mrtg RRD file is simply giving the result in BYTES (if I am wrong, please correct me) then upto the user to convert it to K, M, G
rrdtool graph dummy -s20190101 -e20190201 DEF:test=/varlibmrtg/router-3750-1_10001.rrd:ds0:MAX PRINT:test:MAX:'Max - %.3lf'
Max - 1209984.202
rrdtool graph dummy -s20190101 -e20190201 DEF:test=/usrlocnagshareperf/router_3750_1_fast1_0_1_Bandwidth.rrd:1:MAX PRINT:test:MAX:'Max - %.3lf'
Max - 9.717
if me correct that /var/lib/mrtg simple giving result in BYTES, then how to know /usr/local/nagios/share/perfdata/HOST/SERVICE giving result in B,K,M or G without taking help of any other file (xml).
Regards
while I was comparing my result
/var/lib/mrtg RRD file is simply giving the result in BYTES (if I am wrong, please correct me) then upto the user to convert it to K, M, G
rrdtool graph dummy -s20190101 -e20190201 DEF:test=/varlibmrtg/router-3750-1_10001.rrd:ds0:MAX PRINT:test:MAX:'Max - %.3lf'
Max - 1209984.202
rrdtool graph dummy -s20190101 -e20190201 DEF:test=/usrlocnagshareperf/router_3750_1_fast1_0_1_Bandwidth.rrd:1:MAX PRINT:test:MAX:'Max - %.3lf'
Max - 9.717
if me correct that /var/lib/mrtg simple giving result in BYTES, then how to know /usr/local/nagios/share/perfdata/HOST/SERVICE giving result in B,K,M or G without taking help of any other file (xml).
Regards