<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
&nbsp;I am new in using mrtg and rrdtools....&nbsp; I am using mrtg to graph
traffic information in our network. Traffic information is stored in an
Oracle database.<br>
<br>
The approach taken is the following:<br>
<br>
1) There is a program that runs every minute and gets the latets
traffic values (these are like counters).&nbsp;&nbsp; These values are stored in
a file that mrtg will read.<br>
2) mrtg is configure to run every minute to read those values (please
see configuration file below).<br>
&nbsp; &nbsp; mrtg is configured to create the rrd file only, we later use the
rrdtool to graph the data.<br>
<br>
the information bellow lists the values we get from the file (read from
mrtg using the debug.sh script) and the values stored in the rrdfile.
They do not match, and I am not able to find any pattern to it.... Can
somebody explain to me how mrtg ends with these values in the rrd
file?. <br>
<br>
Thank,<br>
&nbsp;&nbsp;&nbsp; Maria<br>
<br>
<br>
mrtg config file is (showing only target of interest, there are more
targets):<br>
<br>
=====<br>
### Global Config Options<br>
<br>
WorkDir:/opt/stm/5.40.6/output<br>
RunAsDaemon:Yes<br>
Forks: 8<br>
Interval:1<br>
LogFormat: rrdtool<br>
LibAdd: /opt/rrdtool/lib/perl/5.8.8/sun4-solaris<br>
PathAdd: /opt/rrdtool/bin<br>
<br>
<br>
Target[sts1st4_agw1-chain1-IDU1]: `/var/tmp/debug.sh`<br>
MaxBytes[sts1st4_agw1-chain1-IDU1]: 17179869180<br>
Title[sts1st4_agw1-chain1-IDU1]: sts1st4_agw1 to IDU1 throughput<br>
Options[sts1st4_agw1-chain1-IDU1]: growright,&nbsp; nopercent, integer,
unknaszero, derive<br>
Legend1[sts1st4_agw1-chain1-IDU1]: Bytes send<br>
Legend2[sts1st4_agw1-chain1-IDU1]: Bytes received<br>
<br>
<br>
=====<br>
<br>
Originally we did not have the derive option, and the values were as
confusing as these ones but different. <br>
<br>
What it is not clear is how is this data is stored in rrd files.<br>
<br>
<i><br>
</i>
<table border="1" cellpadding="2" cellspacing="2" height="2306"
 width="845">
  <tbody>
    <tr>
      <td valign="top">This is the data we collect: <br>
Each set indicates the time when mrtg read the <br>
file and the values in the file<br>
      <i><br>
      <br>
      <br>
      <br>
      <br>
Fri Jan 11 18:41:31 UTC 2008</i><br>
0<br>
0<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:42:29 UTC 2008</i><br>
20000<br>
20000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:43:28 UTC 2008</i><br>
80000<br>
80000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:44:28 UTC 2008</i><br>
80000<br>
80000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:45:29 UTC 2008</i><br>
240000<br>
240000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:46:29 UTC 2008</i><br>
320000<br>
320000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:47:28 UTC 2008</i><br>
400000<br>
400000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:48:28 UTC 2008</i><br>
480000<br>
480000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:49:28 UTC 2008</i><br>
480000<br>
480000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:50:28 UTC 200</i>8<br>
640000<br>
640000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:51:29 UTC 2008</i><br>
720000<br>
720000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:52:28 UTC 2008</i><br>
800000<br>
800000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:53:27 UTC 2008</i><br>
880000<br>
880000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:54:27 UTC 2008</i><br>
960000<br>
960000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:55:29 UTC 2008</i><br>
960000<br>
960000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:56:29 UTC 2008</i><br>
1120000<br>
1120000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:57:28 UTC 2008</i><br>
1200000<br>
1200000<br>
0<br>
28<br>
==<i><br>
Fri Jan 11 18:58:27 UTC 2008</i><br>
1280000<br>
1280000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 18:59:28 UTC 2008</i><br>
1360000<br>
1360000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 19:00:29 UTC 2008</i><br>
1360000<br>
1360000<br>
0<br>
28<br>
==<br>
      <i>Fri Jan 11 19:01:30 UTC 2008</i><br>
1520000<br>
1520000<br>
0<br>
28<br>
      <br>
      </td>
      <td valign="top">The content of the .rrd file which I read using
command:<br>
      <br>
/opt/rrdtool/bin/rrdtool fetch sts1st4_agw1-chain1-idu1.rrd AVERAGE<br>
returns the following values:<br>
      <br>
1200076620: NaN NaN<br>
1200076680: NaN NaN<br>
1200076740: NaN NaN<br>
1200076800: NaN NaN<br>
1200076860: 0.0000000000e+00 0.0000000000e+00<br>
1200076920: 1.6666666667e+02 1.6666666667e+02<br>
1200076980: 6.9209039548e+02 6.9209039548e+02<br>
1200077040: 4.7457627119e+02 4.7457627119e+02<br>
1200077100: 1.3989071038e+03 1.3989071038e+03<br>
1200077160: 1.9453551913e+03 1.9453551913e+03<br>
1200077220: 1.3453928773e+03 1.3453928773e+03<br>
1200077280: 1.3547892720e+03 1.3547892720e+03<br>
1200077340: 6.2222222222e+02 6.2222222222e+02<br>
1200077400: 1.4222222222e+03 1.4222222222e+03<br>
1200077460: 1.9438979964e+03 1.9438979964e+03<br>
1200077520: 1.3344447532e+03 1.3344447532e+03<br>
1200077580: 1.3559322034e+03 1.3559322034e+03<br>
1200077640: 1.3435028249e+03 1.3435028249e+03<br>
1200077700: 6.0000000000e+02 6.0000000000e+02<br>
1200077760: 1.3777777778e+03 1.3777777778e+03<br>
1200077820: 1.9894538606e+03 1.9894538606e+03<br>
1200077880: 1.3559322034e+03 1.3559322034e+03<br>
1200077940: 1.3314809669e+03 1.3314809669e+03<br>
1200078000: 6.1202185792e+02 6.1202185792e+02<br>
1200078060: 1.3551912568e+03 1.3551912568e+03<br>
1200078120: 1.9894415115e+03 1.9894415115e+03<br>
1200078180: NaN NaN<br>
      <br>
      </td>
    </tr>
  </tbody>
</table>
<i><br>
</i><br>
<br>
</body>
</html>