File: flow-log2rrd.html.in

package info (click to toggle)
flow-tools 1%3A0.68-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,120 kB
  • ctags: 5,259
  • sloc: ansic: 43,197; sh: 1,611; perl: 661; python: 629; yacc: 303; makefile: 206; lex: 49
file content (178 lines) | stat: -rw-r--r-- 2,404 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<HTML
><HEAD
><TITLE
>flow-log2rrd</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.73
"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><H1
><A
NAME="AEN1"
><SPAN
CLASS="APPLICATION"
>flow-log2rrd</SPAN
></A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6"
></A
><H2
>Name</H2
><SPAN
CLASS="APPLICATION"
>flow-log2rrd</SPAN
>&nbsp;--&nbsp;Process the STAT: lines from <SPAN
CLASS="APPLICATION"
>flow-capture</SPAN
> and
<SPAN
CLASS="APPLICATION"
>flow-fanout</SPAN
> to RRD files.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN12"
></A
><H2
>Synopsis</H2
><P
><B
CLASS="COMMAND"
>flow-log2rrd</B
>  [-p<TT
CLASS="REPLACEABLE"
><I
> rrd_path</I
></TT
>]</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN17"
></A
><H2
>DESCRIPTION</H2
><P
>The <B
CLASS="COMMAND"
>flow-log2rrd</B
> utility processes the STAT lines
generated by <SPAN
CLASS="APPLICATION"
>flow-capture</SPAN
> and <SPAN
CLASS="APPLICATION"
>flow-fanout</SPAN
> and converts them into RRD files.  RRD's
are stored as rrd_path/capture|fanout.hostname.srcip.dstip.port.rrd.
The Datastores are flows,pkts,lost representing flows, packets, and lost
flows respectively.  Flow-fanout generates an additional DS nobufs
indicating the number of times a write() failed with ENOBUFS.</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN23"
></A
><H2
>OPTIONS</H2
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>-p<TT
CLASS="REPLACEABLE"
><I
> rrd_path</I
></TT
></DT
><DD
><P
>Path to store files.</P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN31"
></A
><H2
>EXAMPLES</H2
><DIV
CLASS="INFORMALEXAMPLE"
><A
NAME="AEN33"
></A
><P
></P
><P
>Convert flow-capture STAT lines in /var/log/netflow to RRD's in /flows/rrd/.</P
><P
>    <B
CLASS="COMMAND"
>cat /var/log/netflow | flow-rpt2rrd -p /flows/rrd</B
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN37"
></A
><H2
>BUGS</H2
><P
>Expects STAT lines every 5 minutes.  Hard coded to 7 days of 5 minute
averages and 365 days of 1 day averages.</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN40"
></A
><H2
>AUTHOR</H2
><P
>Mark Fullmer
<TT
CLASS="EMAIL"
>&#60;<A
HREF="mailto:maf@splintered.net"
>maf@splintered.net</A
>&#62;</TT
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN47"
></A
><H2
>SEE ALSO</H2
><P
><SPAN
CLASS="APPLICATION"
>flow-tools</SPAN
>(1)</P
></DIV
></BODY
></HTML
>