[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 17:11:44 +0100
You we're right! With LC_ALL=en_US, it's ok. I installed the last 0.9.7 but the same problem. Without LC_ALL=en_US, it's not ok. Thank you really for your quick help! Regards, Gauthier 2009/12/29 Howard Jones <howie@xxxxxxxxxx> > Gauthier DOUCHET wrote: > > ds[1].value = 3,7528320000e+06 > > ds[2].value = 2,7910872000e+07 > > 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. > > Could you try > LC_ALL=en_US php weathermap --debug (etc etc) > on the command line? I still think this is something to do with locales. > > I think that the 8 is because weathermap expects byte counters (like > SNMP), so it multiplies by 8. The original value of 1 seems to be the > part before the ',' in your rrd output. > > If the LC_ALL gives you correct values, then locale is the problem. If > you get too big values, then you need to also add gauge: to the front of > your TARGET lines. > > If locale *is* the problem, then please give 0.97test4 a try. I believe > that these problems are fixed there. > > Howie > -- 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
- 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):