Using different versions of rrdtool on windows 7 x64 platform, I faced this and
I cannot understand the reason : the max or current printed values does not
always
match updated data :
Lets take an example :
creating the db file :
rrdtool.exe create temp.rrdtool-db -b 1501538399
DS:SERIE:GAUGE:86400:U:U
RRA:LAST:0.5:288:10
updating data :
rrdtool.exe update temp.rrdtool-db -t SERIE 1501624799:0 1501711199:0
1501797599:0
1501883999:0 1501970399:0 1502056799:0 1502143199:0 1502229599:0
1502315999:176
graphing :
rrdtool.exe graph Change.png -a PNG --start 1501538399 -F --step 300 -l 0
-h 200 -v "Count" -w 800 -r -b 1000
DEF:DS=temp.rrdtool-db:SERIE:LAST
AREA:DS#0000FF:"Change"
GPRINT:DS:MAX:" Max \: %10.0lf "
GPRINT:DS:LAST:" Current \: %10.0lf \n"
The graph is generated. Looking at graph, the Current and max vals are 175
(should be 176)
new one :
creating the db file :
rrdtool.exe create temp.rrdtool-db -b 1501538399
DS:SERIE:GAUGE:86400:U:U
RRA:LAST:0.5:288:10
updating data :
rrdtool.exe update temp.rrdtool-db -t SERIE 1501624799:0 1501711199:0
1501797599:0
1501883999:0 1501970399:0 1502056799:0 1502143199:0 1502229599:0
1502315999:176
1502402399:1495
graphing :
rrdtool.exe graph Change.png -a PNG --start 1501538399 -F --step 300 -l 0
-h 200 -v "Count" -w 800 -r -b 1000
DEF:DS=temp.rrdtool-db:SERIE:LAST
AREA:DS#0000FF:"Change"
GPRINT:DS:MAX:" Max \: %10.0lf "
GPRINT:DS:LAST:" Current \: %10.0lf \n"
The graph is generated. Looking at graph, the Current and max vals are 1490
. (should be 1495)
Where am I wrong ? What did I wrong ???
Thanks for your lights, I am clueless
Cheers
Th
Kind regards - Bien cordialement - Vriendelijke groeten,
Thierry FAIDHERBE
Backup/Storage & System Management
LE FOREM
Département des Systèmes d'Information, Direction Infrastructure
Boulevard Tirou, 104 Tel: +32 (0)71/206730
B-6000 CHARLEROI Mobile: +32 (477)/995319
BELGIUM Mail : Thierry.faidherbe<at>forem.be
"The urgent is done, the impossible is being processed ... For miracles
Allow time".
"Nowadays, people know the price of everything and the value of nothing",
Oscar Wilde
"The future belongs to those who believe in the beauty of their dreams",
Eleanor Roosevelt
"Courage is not having the strength to go on;
it is going on when you don't have the strength.", Theodore
Roosevelt
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
