11 Jan 2008 20:19
MRTG question
Maria Sanchez <mesanchez <at> hns.com>
2008-01-11 19:19:15 GMT
2008-01-11 19:19:15 GMT
Hi all,
I am new in using mrtg and rrdtools.... I am using mrtg to graph traffic information in our network. Traffic information is stored in an Oracle database.
The approach taken is the following:
1) There is a program that runs every minute and gets the latets traffic values (these are like counters). These values are stored in a file that mrtg will read.
2) mrtg is configure to run every minute to read those values (please see configuration file below).
mrtg is configured to create the rrd file only, we later use the rrdtool to graph the data.
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?.
Thank,
Maria
mrtg config file is (showing only target of interest, there are more targets):
=====
### Global Config Options
WorkDir:/opt/stm/5.40.6/output
RunAsDaemon:Yes
Forks: 8
Interval:1
LogFormat: rrdtool
LibAdd: /opt/rrdtool/lib/perl/5.8.8/sun4-solaris
PathAdd: /opt/rrdtool/bin
Target[sts1st4_agw1-chain1-IDU1]: `/var/tmp/debug.sh`
MaxBytes[sts1st4_agw1-chain1-IDU1]: 17179869180
Title[sts1st4_agw1-chain1-IDU1]: sts1st4_agw1 to IDU1 throughput
Options[sts1st4_agw1-chain1-IDU1]: growright, nopercent, integer, unknaszero, derive
Legend1[sts1st4_agw1-chain1-IDU1]: Bytes send
Legend2[sts1st4_agw1-chain1-IDU1]: Bytes received
=====
Originally we did not have the derive option, and the values were as confusing as these ones but different.
What it is not clear is how is this data is stored in rrd files.
I am new in using mrtg and rrdtools.... I am using mrtg to graph traffic information in our network. Traffic information is stored in an Oracle database.
The approach taken is the following:
1) There is a program that runs every minute and gets the latets traffic values (these are like counters). These values are stored in a file that mrtg will read.
2) mrtg is configure to run every minute to read those values (please see configuration file below).
mrtg is configured to create the rrd file only, we later use the rrdtool to graph the data.
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?.
Thank,
Maria
mrtg config file is (showing only target of interest, there are more targets):
=====
### Global Config Options
WorkDir:/opt/stm/5.40.6/output
RunAsDaemon:Yes
Forks: 8
Interval:1
LogFormat: rrdtool
LibAdd: /opt/rrdtool/lib/perl/5.8.8/sun4-solaris
PathAdd: /opt/rrdtool/bin
Target[sts1st4_agw1-chain1-IDU1]: `/var/tmp/debug.sh`
MaxBytes[sts1st4_agw1-chain1-IDU1]: 17179869180
Title[sts1st4_agw1-chain1-IDU1]: sts1st4_agw1 to IDU1 throughput
Options[sts1st4_agw1-chain1-IDU1]: growright, nopercent, integer, unknaszero, derive
Legend1[sts1st4_agw1-chain1-IDU1]: Bytes send
Legend2[sts1st4_agw1-chain1-IDU1]: Bytes received
=====
Originally we did not have the derive option, and the values were as confusing as these ones but different.
What it is not clear is how is this data is stored in rrd files.
| This is the data we collect: Each set indicates the time when mrtg read the file and the values in the file Fri Jan 11 18:41:31 UTC 2008 0 0 0 28 == Fri Jan 11 18:42:29 UTC 2008 20000 20000 0 28 == Fri Jan 11 18:43:28 UTC 2008 80000 80000 0 28 == Fri Jan 11 18:44:28 UTC 2008 80000 80000 0 28 == Fri Jan 11 18:45:29 UTC 2008 240000 240000 0 28 == Fri Jan 11 18:46:29 UTC 2008 320000 320000 0 28 == Fri Jan 11 18:47:28 UTC 2008 400000 400000 0 28 == Fri Jan 11 18:48:28 UTC 2008 480000 480000 0 28 == Fri Jan 11 18:49:28 UTC 2008 480000 480000 0 28 == Fri Jan 11 18:50:28 UTC 2008 640000 640000 0 28 == Fri Jan 11 18:51:29 UTC 2008 720000 720000 0 28 == Fri Jan 11 18:52:28 UTC 2008 800000 800000 0 28 == Fri Jan 11 18:53:27 UTC 2008 880000 880000 0 28 == Fri Jan 11 18:54:27 UTC 2008 960000 960000 0 28 == Fri Jan 11 18:55:29 UTC 2008 960000 960000 0 28 == Fri Jan 11 18:56:29 UTC 2008 1120000 1120000 0 28 == Fri Jan 11 18:57:28 UTC 2008 1200000 1200000 0 28 == Fri Jan 11 18:58:27 UTC 2008 1280000 1280000 0 28 == Fri Jan 11 18:59:28 UTC 2008 1360000 1360000 0 28 == Fri Jan 11 19:00:29 UTC 2008 1360000 1360000 0 28 == Fri Jan 11 19:01:30 UTC 2008 1520000 1520000 0 28 |
The content of the .rrd file which I read using
command: /opt/rrdtool/bin/rrdtool fetch sts1st4_agw1-chain1-idu1.rrd AVERAGE returns the following values: 1200076620: NaN NaN 1200076680: NaN NaN 1200076740: NaN NaN 1200076800: NaN NaN 1200076860: 0.0000000000e+00 0.0000000000e+00 1200076920: 1.6666666667e+02 1.6666666667e+02 1200076980: 6.9209039548e+02 6.9209039548e+02 1200077040: 4.7457627119e+02 4.7457627119e+02 1200077100: 1.3989071038e+03 1.3989071038e+03 1200077160: 1.9453551913e+03 1.9453551913e+03 1200077220: 1.3453928773e+03 1.3453928773e+03 1200077280: 1.3547892720e+03 1.3547892720e+03 1200077340: 6.2222222222e+02 6.2222222222e+02 1200077400: 1.4222222222e+03 1.4222222222e+03 1200077460: 1.9438979964e+03 1.9438979964e+03 1200077520: 1.3344447532e+03 1.3344447532e+03 1200077580: 1.3559322034e+03 1.3559322034e+03 1200077640: 1.3435028249e+03 1.3435028249e+03 1200077700: 6.0000000000e+02 6.0000000000e+02 1200077760: 1.3777777778e+03 1.3777777778e+03 1200077820: 1.9894538606e+03 1.9894538606e+03 1200077880: 1.3559322034e+03 1.3559322034e+03 1200077940: 1.3314809669e+03 1.3314809669e+03 1200078000: 6.1202185792e+02 6.1202185792e+02 1200078060: 1.3551912568e+03 1.3551912568e+03 1200078120: 1.9894415115e+03 1.9894415115e+03 1200078180: NaN NaN |
_______________________________________________ mrtg mailing list mrtg <at> lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
RSS Feed