projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed some corner cases in drawing code to get the same results as before with way...
[rrdtool.git]
/
doc
/
rrd-beginners.pod
diff --git
a/doc/rrd-beginners.pod
b/doc/rrd-beginners.pod
index
37145e6
..
c3d0a39
100644
(file)
--- a/
doc/rrd-beginners.pod
+++ b/
doc/rrd-beginners.pod
@@
-1,4
+1,4
@@
-=head1 NAME
+=head1 NAME
rrd-beginners - RRDtool Beginners' Guide
rrd-beginners - RRDtool Beginners' Guide
@@
-59,7
+59,7
@@
data flow to update the RRDtool database.
RRDtool is designed to store time series of data. With every data
update, an assosiated time stamp is stored. Time is always expressed
RRDtool is designed to store time series of data. With every data
update, an assosiated time stamp is stored. Time is always expressed
-in seconds passed since epoch (01-01-197
1
). RRDtool can be installed
+in seconds passed since epoch (01-01-197
0
). RRDtool can be installed
on Unix as well as Windows. It comes with a command set to carry out
various operations on RRD databases. This command set can be accessed
from the command line, as well as from Shell or Perl scripts. The
on Unix as well as Windows. It comes with a command set to carry out
various operations on RRD databases. This command set can be accessed
from the command line, as well as from Shell or Perl scripts. The
@@
-135,9
+135,9
@@
explained better with the following example:
Values = 300, 600, 900, 1200
Step = 300 seconds
Values = 300, 600, 900, 1200
Step = 300 seconds
- COUNTER DS = 1, 1, 1, 1
+ COUNTER DS = 1, 1, 1, 1
DERIVE DS = 1, 1, 1, 1
DERIVE DS = 1, 1, 1, 1
- ABSOLUTE DS = 1, 2, 3, 4
+ ABSOLUTE DS = 1, 2, 3, 4
GAUGE DS = 300, 600, 900, 1200
The next parameter is B<heartbeat>. In our example, heartbeat is 600
GAUGE DS = 300, 600, 900, 1200
The next parameter is B<heartbeat>. In our example, heartbeat is 600
@@
-251,7
+251,7
@@
generation is done using Perl scripts. These scripts are shown below:
=head3 Perl script (retrieves data from database and generates graphs and statistics)
#!/usr/bin/perl -w
=head3 Perl script (retrieves data from database and generates graphs and statistics)
#!/usr/bin/perl -w
- # This script fetches data from target.rrd, creates a graph of memory
+ # This script fetches data from target.rrd, creates a graph of memory
# consumption on the target (Dual P3 Processor 1 GHz, 656 MB RAM)
# call the RRD perl module
# consumption on the target (Dual P3 Processor 1 GHz, 656 MB RAM)
# call the RRD perl module
@@
-262,8
+262,8
@@
generation is done using Perl scripts. These scripts are shown below:
my $start_time = $end_time - 2592000; # set start 30 days in the past
# fetch average values from the RRD database between start and end time
my $start_time = $end_time - 2592000; # set start 30 days in the past
# fetch average values from the RRD database between start and end time
- my ($start,$step,$ds_names,$data) =
- RRDs::fetch("target.rrd", "AVERAGE",
+ my ($start,$step,$ds_names,$data) =
+ RRDs::fetch("target.rrd", "AVERAGE",
"-r", "600", "-s", "$start_time", "-e", "$end_time");
# save fetched values in a 2-dimensional array
my $rows = 0;
"-r", "600", "-s", "$start_time", "-e", "$end_time");
# save fetched values in a 2-dimensional array
my $rows = 0;