Code

addeded documentation for json
[rrdtool-all.git] / contrib / rrdproc / README
1 * rrdproc.c Copyright 1999 Damien Miller <djm@mindrot.org>
2 **
3 **
4 ** This program is a very lightweight collecter for rrdtool. It reads
5 ** and parses /proc/net/dev and sends a rrdtool remote control update
6 ** command to stdout.
7 **
8 ** rrdproc will sleep a user-defined amount of time between reads from
9 ** /proc/net/dev. This time should match the sample rate you created your
10 ** RRD files with.
11 **
12 ** Example:
13 **
14 ** rrdproc --interface=ppp0 \
15 **         --wait 30 \
16 **         --filename=/home/djm/traffic-ppp0.rrd | rrdtool -
17 **
18 ** This will update the RRD file /home/djm/traffic-eth0.rrd with bytes
19 ** received and sent on eth0 every 30 seconds.
20 **
21 ** rrdproc --interface=eth0 \
22 **         --wait 300 \
23 **         --frame \
24 **         --filename=/home/djm/traffic-eth0.rrd | rrdtool -
25 **
26 ** Will update /home/djm/traffic-eth0.rrd with counts of framing errors and
27 ** collisions every 5 minutes
28 **
29 ** rrdproc is licensed under the GNU GPL version 2. Please refer to
30 ** http://www.fsf.org/copyleft/gpl.html for details.