[rrd-developers] A tricky issue with rrdtool update command
Gorijavolu, Suresh
suresh.gorijavolu at cgi.com
Fri Jan 6 07:41:20 CET 2012
Hi members,
I had faced an issue with rrdtool and look for your help in resolving
that. Thanks a billion for all who contributed to the development of
this RRDTOOL. It has been very useful for us in one of our monitoring
apps.
Details of the issue
Eco system - RRDtool 1.4.5, PHP 5.3.6
A php parser had executed rrdtool update command 5 times and returns
successful in each case. However the RRDFILE created has only two data
points. The last 3 data points did not show up in the rrd file.
Removed the parser created RRDFILE and recreated it manually. Tried
update command manually.
First instance of command
/usr/bin/rrdtool updatev
/home/cactiuser/CMC/RRDFILE/genband-acut/dc4cam/SSOQ_statistics.rrd
"1323851400:1:0:1:1:0:0:0:1618:1618"
Corresponding data point showed up in RRDFILE
<!-- 2011-12-14 03:30:00 EST / 1323851400 -->
<row><v>1.0000000000e+00</v><v>0.0000000000e+00</v><v>1.0000000000e+00</
v><v>1.0000000000e+00</v><v>0.0000000000e+00</v><v>0.0000000000e+00</v><
v>0.0000000000e+00</v><v>1.6180000000e+03</v><v>1.6180000000e+03</v></ro
w>
Second instance of command
/usr/bin/rrdtool updatev
/home/cactiuser/CMC/RRDFILE/genband-acut/dc4cam/SSOQ_statistics.rrd
1323852300:1:0:1:1:0:0:0:2026:2026
Data point showed in the RRDFILE
<!-- 2011-12-14 03:45:00 EST / 1323852300 -->
<row><v>1.0000000000e+00</v><v>0.0000000000e+00</v><v>1.0000000000e+00</
v><v>1.0000000000e+00</v><v>0.0000000000e+00</v><v>0.0000000000e+00</v><
v>0.0000000000e+00</v><v>2.0260000000e+03</v><v>2.0260000000e+03</v></ro
w>
Third instance of command
/usr/bin/rrdtool updatev
/home/cactiuser/CMC/RRDFILE/genband-acut/dc4cam/SSOQ_statistics.rrd
"1323866700:1:0:1:1:0:0:0:1987:1987"
Data point has not shown up in the RRDFILE
<!-- 2011-12-14 07:45:00 EST / 1323866700 -->
<row><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN<
/v><v>NaN</v><v>NaN</v></row>
Fourth instance of command
/usr/bin/rrdtool updatev
/home/cactiuser/CMC/RRDFILE/genband-acut/dc4cam/SSOQ_statistics.rrd
1323873900:1:0:1:1:0:0:0:1782:1782
Data point has not shown up in the RRDFILE
<!-- 2011-12-14 09:45:00 EST / 1323873900 -->
<row><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN<
/v><v>NaN</v><v>NaN</v></row>
Fifth instance of command
/usr/bin/rrdtool updatev
/home/cactiuser/CMC/RRDFILE/genband-acut/dc4cam/SSOQ_statistics.rrd
1323891900:1:0:1:1:0:0:0:1666:1666
Data point has not shown up in the RRDFILE
<!-- 2011-12-14 14:45:00 EST / 1323891900 -->
<row><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN</v><v>NaN<
/v><v>NaN</v><v>NaN</v></row>
The behavior of update command is same when I used update or updatev and
when the values are encased in quotes or without quotes.
And the command used to create RRDFILE is
/usr/bin/rrdtool create ${RRD_FILE} \
--start ${3} \
--step 900 \
DS:nb_ops:GAUGE:1800:0:U \
DS:nb_failed_ops:GAUGE:1800:0:U \
DS:nb_success_ops:GAUGE:1800:0:U \
DS:nb_over_green:GAUGE:1800:0:U \
DS:nb_over_yellow:GAUGE:1800:0:U \
DS:nb_over_orange:GAUGE:1800:0:U \
DS:nb_over_red:GAUGE:1800:0:U \
DS:min_time_ops:GAUGE:1800:0:U \
DS:time_ops:GAUGE:1800:0:U \
RRA:AVERAGE:0.5:1:672 \
RRA:AVERAGE:0.5:4:720 \
RRA:AVERAGE:0.5:96:366 \
RRA:AVERAGE:0.5:2880:60 \
RRA:MIN:0.5:1:672 \
RRA:MIN:0.5:4:720 \
RRA:MIN:0.5:96:366 \
RRA:MIN:0.5:2880:60 \
RRA:MAX:0.5:1:672 \
RRA:MAX:0.5:4:720 \
RRA:MAX:0.5:96:366 \
RRA:MAX:0.5:2880:60
Thanks in advance for your help.
- Suresh Gorijavolu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120105/103c1ca2/attachment.htm
More information about the rrd-developers
mailing list