[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] Units problem with PNP Nagios
- From: Gauthier DOUCHET <gauthier.douchet@xxxxxxxxx>
- Subject: Re: [php-weathermap] Units problem with PNP Nagios
- Date: Tue, 29 Dec 2009 16:36:54 +0100
The rrdtool info says: ds[1].last_ds = "156368" ds[1].value = 3,7528320000e+06 ds[2].last_ds = "1162953" ds[2].value = 2,7910872000e+07 And the debug of weathermap: DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:458] configs/infra-technhom.conf: 1,6480164000e+05 is OK value for 1 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:458] configs/infra-technhom.conf: 1,1536788400e+06 is OK value for 2 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:492] configs/infra-technhom.conf: RRD ReadDataFromRealRRD: Returning (1,6480164000e+05,1,1536788400e+06,1262100720) DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:641] configs/infra-technhom.conf: RRD ReadData: Returning (8,8,1262100720) So I think, it's not taking the right value for ds1 and ds2, value instead last_ds. Is it possible to modify that? I put the complete output below. (I'm using weathermap 0.96a) Regards Gauthier --- rrdtool info: filename = "rrds/Switch-21-Bat6-Salle-Serveurs/Bandwidth_FW_0_1_Port_6_Sortie_Internet.rrd" rrd_version = "0003" step = 60 last_update = 1262100444 ds[1].type = "GAUGE" ds[1].minimal_heartbeat = 8460 ds[1].min = NaN ds[1].max = NaN ds[1].last_ds = "156368" ds[1].value = 3,7528320000e+06 ds[1].unknown_sec = 0 ds[2].type = "GAUGE" ds[2].minimal_heartbeat = 8460 ds[2].min = NaN ds[2].max = NaN ds[2].last_ds = "1047026" ds[2].value = 2,5128624000e+07 ds[2].unknown_sec = 0 And the weathermap debug: DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxx:737] configs/infra-technhom.conf: ReadData: New Target: rrds/Switch-21-Bat6-Salle-Serveurs/Bandwidth_FW_0_1_Port_6_Sortie_Internet.rrd:1:2 DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxx:781] configs/infra-technhom.conf: ReadData: Matched for WeatherMapDataSource_rrd. Calling WeatherMapDataSource_rrd->ReadData() DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:533] configs/infra-technhom.conf: Special DS names seen (1 and 2). DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:553] configs/infra-technhom.conf: SCALING result by 8 DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:611] configs/infra-technhom.conf: RRD ReadData: Target DS names are 1 and 2 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:359] configs/infra-technhom.conf: RRD ReadData: traditional style DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:399] configs/infra-technhom.conf: RRD ReadData: Running: /usr/bin/rrdtool fetch rrds/Switch-21-Bat6-Salle-Serveurs/Bandwidth_FW_0_1_Port_6_Sortie_Internet.rrd AVERAGE --start now-800 --end now DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262099940: 1,5117476000e+05 1,1832996400e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100000: 1,5117476000e+05 1,1832996400e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100060: 1,5117476000e+05 1,1832996400e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100120: 1,5117476000e+05 1,1832996400e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100180: 1,5588040000e+05 1,0590600000e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100240: 1,5588040000e+05 1,0590600000e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100300: 1,5588040000e+05 1,0590600000e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100360: 1,5588040000e+05 1,0590600000e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100420: 1,5588040000e+05 1,0590600000e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100480: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100540: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100600: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100660: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > 1262100720: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:419] configs/infra-technhom.conf: > DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:427] configs/infra-technhom.conf: RRD ReadData: Read 15 lines from rrdtool DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:428] configs/infra-technhom.conf: RRD ReadData: Headings are: 1 2 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: -- DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: --1262100720: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: --1262100660: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: --1262100600: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: --1262100540: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: --1262100480: nan nan DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:437] configs/infra-technhom.conf: --1262100420: 1,5588040000e+05 1,0590600000e+06 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:458] configs/infra-technhom.conf: 1,5588040000e+05 is OK value for 1 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:458] configs/infra-technhom.conf: 1,0590600000e+06 is OK value for 2 DEBUG: [wmrrd_read_from_real_rrdtool@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:492] configs/infra-technhom.conf: RRD ReadDataFromRealRRD: Returning (1,5588040000e+05,1,0590600000e+06,1262100420) It 2009/12/29 Howard Jones <howie@xxxxxxxxxx> > Gauthier DOUCHET wrote: > > Hi, > > > > I just discovered the debug command, that's useful. :) > > > > I found that rrdtool is searching for the AVERAGE value which > > corresponds to ds[1].value and ds[2].value. > > > > But for me, it would be ds[1].last_ds and ds[2].last_ds, I'm searching > > how to tell that to weathermap. > It should be searching for the last value in the AVERAGE DS, not the > average value in the whole rrd file. > > You can see the full command line in the debug output, anyway, to check. > -- Gauthier DOUCHET
- Follow-Ups:
- Re: [php-weathermap] Units problem with PNP Nagios
- From: Howard Jones
- Re: [php-weathermap] Units problem with PNP Nagios
- References:
- Units problem with PNP Nagios
- From: Gauthier DOUCHET
- Re: [php-weathermap] Units problem with PNP Nagios
- From: Howard Jones
- Re: [php-weathermap] Units problem with PNP Nagios
- From: Gauthier DOUCHET
- Re: [php-weathermap] Units problem with PNP Nagios
- From: Howard Jones
- Units problem with PNP Nagios
- Prev by Date: Re: [php-weathermap] Units problem with PNP Nagios
- Next by Date: Re: [php-weathermap] Units problem with PNP Nagios
- Previous by thread: Re: [php-weathermap] Units problem with PNP Nagios
- Next by thread: Re: [php-weathermap] Units problem with PNP Nagios
- Index(es):