This is a discussion on [rrd-users] mrtg / rrdtool update problem within the RRD Users forums, part of the Networking and Network Related category; Dear All, I have a problem with MRTG/RRDTOOl not updating the AVERAGE field but only the MAX. The target ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Dear All,
I have a problem with MRTG/RRDTOOl not updating the AVERAGE field but only the MAX. The target VCRLQ-3-7 his AVERAGE does not get updated because rrdtool returns NaN. It is stored in the MAX field only. So I can't properly graph my rrd files because if I use MAX instead of AVERAGE I get too high values on week/month/year base. As you can see from the debug output MRTG receives the information via SNMP and tries to update the rrdfile. But it returns NaN and only the MAX field gets filled in. I assume it's an rrdtool problem since MRTG receives the information and the error occours on updating the rrdfile. Any suggestions? Regards, Geert Hauawerts. ================================================== =========== MRTG debug output: ================== --base: Act on Router/Target vcrlq-3-7 --base: Get Current values: in:2967537080, out:3737279001, up:undef, name:undef, time:1187971201 --base: Create Graphics --base: start RRDtool section --base: maxi:12500000, maxo:12500000 --log: Called: RRDs::tune(/XXXX/vcrlq-3-7.rrd -a ds0:12500000 -a ds1:12500000 -d ds0:COUNTER -d ds1:COUNTER) --log: Calling: RRDs::update(/XXXX/vcrlq-3-7.rrd, '1187971201:2967537080:3737279001') --log: Called: RRDs::info(/XXXX/vcrlq-3-7.rrd) --log: Called: RRDs::fetch(/XXXX/vcrlq-3-7.rrd,'AVERAGE','-s',1187971200,'-e',1187971200) --log: got: NaN/NaN mrtg.cfg: ========== WorkDir: /XXXX LogFormat: rrdtool Target[8S4CQ-1-1]: #Fa0/16:XX@YY MaxBytes[8S4CQ-1-1]: 12500000 Title[8S4CQ-1-1]: 8S4CQ-1-1 Target[VCRLQ-3-7]: #Fa0/9:XX@YY MaxBytes[VCRLQ-3-7]: 12500000 Title[VCRLQ-3-7]: VCRLQ-3-7 Target[VCRLQ-3-5]: #Fa0/8:XX@YY MaxBytes[VCRLQ-3-5]: 12500000 Title[VCRLQ-3-5]: VCRLQ-3-5 Target[VCRLQ-7-8]: #Fa0/3:XX@YY MaxBytes[VCRLQ-7-8]: 12500000 Title[VCRLQ-7-8]: VCRLQ-7-8 generic debug output: ===================== web1-m1 # rrdtool dump vcrlq-3-7.rrd | grep 2007-08-24 | grep NaN | wc -l 60 web1-m1 # rrdtool dump vcrlq-3-7.rrd | grep 2007-08-24 | grep NaN | head -n 5 <!-- 2007-08-24 11:15:00 UTC / 1187954100 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:20:00 UTC / 1187954400 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:25:00 UTC / 1187954700 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:30:00 UTC / 1187955000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:35:00 UTC / 1187955300 --> <row><v> NaN </v><v> NaN </v></row> web1-m1 # As you can see below it just stopped working. Even when I delete the rrdfile it will not work. (this is in <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->) <!-- 2007-08-24 11:00:00 UTC / 1187953200 --> <row><v> 1.1394408093e+06 </v><v> 7.4955681567e+04 </v></row> <!-- 2007-08-24 11:05:00 UTC / 1187953500 --> <row><v> 3.5354034556e+06 </v><v> 1.6853120614e+05 </v></row> <!-- 2007-08-24 11:10:00 UTC / 1187953800 --> <row><v> 2.4640682202e+06 </v><v> 1.1496912463e+05 </v></row> <!-- 2007-08-24 11:15:00 UTC / 1187954100 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:20:00 UTC / 1187954400 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:25:00 UTC / 1187954700 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:30:00 UTC / 1187955000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:35:00 UTC / 1187955300 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:40:00 UTC / 1187955600 --> <row><v> NaN </v><v> NaN </v></row> As you can see AVERAGE empty, MAX filled in. web1-m1 /CCC/Storage/DI8ZF/RRD-IPServices # rrdtool dump vcrlq-3-7.rrd | grep "2007-08-24 11:35:00 UTC" <!-- 2007-08-24 11:35:00 UTC / 1187955300 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2007-08-24 11:35:00 UTC / 1187955300 --> <row><v> 2.5529396798e+06 </v><v> 1.5479542797e+05 </v></row> web1-m1 /CCC/Storage/DI8ZF/RRD-IPServices # web1-m1 ~ # uname -a Linux web1-m1 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007 x86_64 GNU/Linux web1-m1 ~ # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 67 model name : Dual-Core AMD Opteron(tm) Processor 1214 stepping : 2 cpu MHz : 2211.366 cache size : 1024 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy bogomips : 4426.31 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc processor : 1 vendor_id : AuthenticAMD cpu family : 15 model : 67 model name : Dual-Core AMD Opteron(tm) Processor 1214 stepping : 2 cpu MHz : 2211.366 cache size : 1024 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy bogomips : 4423.05 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc web1-m1 ~ # free -m total used free shared buffers cached Mem: 2012 245 1767 0 0 173 -/+ buffers/cache: 71 1941 Swap: 3812 0 3812 web1-m1 ~ # _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |