root/trunk/src/renetcolParam.h @ 54

Revision 36, 4.0 KB (checked in by andreu, 16 years ago)

ticket #1 #2 #7 closed - release 0.0.9beta

Line 
1/*
2 * File: renetcolParam.h
3 *
4 * Authors: ANDREU Francois-Xavier
5 *
6 * Copyright (C) 2007 GIP RENATER
7 */
8
9/*  This file is part of renetcol.
10 *
11 *  renetcol is free software; you can redistribute it and/or modify
12 *  it under the terms of the GNU General Public License as published by
13 *  the Free Software Foundation; either version 2 of the License, or
14 *  (at your option) any later version.
15 *
16 *  renetcol is distributed in the hope that it will be useful,
17 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 *  GNU General Public License for more details.
20 *
21 *  You should have received a copy of the GNU General Public License
22 *  along with renetcol; if not, write to the Free Software
23 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
24 */
25#ifndef RENETCOLPARAM_H
26#define RENETCOLPARAM_H
27
28/*
29 * renetcol param
30 */ 
31
32#define RECEPTION_ADDRESS "" /* your collector address - syntax: 10.0.0.90 */
33#define RECEPTION_PORT 9999 /* your collector port to recept netflow export */
34#define STEP 5  /* interval - in min */
35#define ROUTER_INDEX_MAX 55 /* routers number + 1 */
36#define FIELD_TYPE_NUMBER 89
37#define MAX_RULES_PER_FIELD 10 /* maximum rules number for one field */
38#define MAX_IP_FLOW 10000
39#define MAX_MPLS_FLOW 200
40#define SHMSIZE 33554432
41#define SOCKET_BUFFER_SIZE 1500
42#define TIME_OUT 300
43
44#ifdef CRIHAN
45#define OUTPUT_IP "/tmp/ipflow"
46#define EXTENSION ".txt" 
47#define OUTPUT_MPLS "/tmp/mplsflow"
48#define MAX_IP_OUTPUT_FILES 3
49#define MAX_MPLS_OUTPUT_FILES 3
50#define IP_TIME_THRESHOLD 60 /* in sec */
51#define MPLS_TIME_THRESHOLD 60 /* in sec */
52#endif /* CRIHAN */
53
54/*
55 * renetcolAgg param
56 */
57
58#define PREFIX_RRD_LOCATION "/mnt/data/RRD/RENATER/IPv4_SUBNET/"
59#define MATRIX_RRD_LOCATION "/mnt/data/RRD/RENATER/MATRIX/"
60#define RRD_EXTENSION ".rrd"
61
62#define RRD_PARAM_PREFIX_0 "rrdcreate"
63#define RRD_PARAM_PREFIX_1 "--start"
64#define RRD_PARAM_PREFIX_2 "1106560200"
65#define RRD_PARAM_PREFIX_3 "--step"
66#define RRD_PARAM_PREFIX_4 "300"
67#define RRD_PARAM_PREFIX_5 "DS:inFlows:GAUGE:600:U:U"
68#define RRD_PARAM_PREFIX_6 "DS:outFlows:GAUGE:600:U:U"
69#define RRD_PARAM_PREFIX_7 "DS:inBytes:GAUGE:600:U:U"
70#define RRD_PARAM_PREFIX_8 "DS:outBytes:GAUGE:600:U:U"
71#define RRD_PARAM_PREFIX_9 "DS:inPkts:GAUGE:600:U:U"
72#define RRD_PARAM_PREFIX_10 "DS:outPkts:GAUGE:600:U:U"
73#define RRD_PARAM_PREFIX_11 "DS:inFirstCoS:GAUGE:600:U:U"
74#define RRD_PARAM_PREFIX_12 "DS:outFirstCoS:GAUGE:600:U:U"
75#define RRD_PARAM_PREFIX_13 "DS:inSecondCoS:GAUGE:600:U:U"
76#define RRD_PARAM_PREFIX_14 "DS:outSecondCoS:GAUGE:600:U:U"
77#define RRD_PARAM_PREFIX_15 "DS:inThirdCoS:GAUGE:600:U:U"
78#define RRD_PARAM_PREFIX_16 "DS:outThirdCoS:GAUGE:600:U:U"
79#define RRD_PARAM_PREFIX_17 "DS:inFourthCoS:GAUGE:600:U:U"
80#define RRD_PARAM_PREFIX_18 "DS:outFourthCoS:GAUGE:600:U:U"
81#define RRD_PARAM_PREFIX_19 "RRA:AVERAGE:0.5:1:2100"
82#define RRD_PARAM_PREFIX_20 "RRA:AVERAGE:0.5:24:1550"
83#define RRD_PARAM_PREFIX_21 "RRA:AVERAGE:0.5:288:1594"
84#define RRD_PARAM_PREFIX_22 "RRA:AVERAGE:0.5:2016:1040"
85#define RRD_PARAM_PREFIX_23 "RRA:MAX:0.5:1:2100"
86#define RRD_PARAM_PREFIX_24 "RRA:MAX:0.5:24:1550"
87#define RRD_PARAM_PREFIX_25 "RRA:MAX:0.5:288:1594"
88
89#define RRD_PARAM_MATRIX_0 "rrdcreate"
90#define RRD_PARAM_MATRIX_1 "--start"
91#define RRD_PARAM_MATRIX_2 "1106560200"
92#define RRD_PARAM_MATRIX_3 "--step"
93#define RRD_PARAM_MATRIX_4 "300"
94#define RRD_PARAM_MATRIX_5 "DS:Flows:GAUGE:600:U:U"
95#define RRD_PARAM_MATRIX_6 "DS:Bytes:GAUGE:600:U:U"
96#define RRD_PARAM_MATRIX_7 "DS:Pkts:GAUGE:600:U:U"
97#define RRD_PARAM_MATRIX_8 "RRA:AVERAGE:0.5:1:2100"
98#define RRD_PARAM_MATRIX_9 "RRA:AVERAGE:0.5:24:1550"
99#define RRD_PARAM_MATRIX_10 "RRA:AVERAGE:0.5:288:1594"
100#define RRD_PARAM_MATRIX_11 "RRA:AVERAGE:0.5:2016:1040"
101#define RRD_PARAM_MATRIX_12 "RRA:MAX:0.5:1:2100"
102#define RRD_PARAM_MATRIX_13 "RRA:MAX:0.5:24:1550"
103#define RRD_PARAM_MATRIX_14 "RRA:MAX:0.5:288:1594"
104
105#define RRD_UPDATE_0 "rrdupdate"
106
107/*
108 * renetcolSender param
109 */
110
111#define RECEPT_PORT "52571"
112#define VAR_SHARED_SIZE 4
113#define FILE_TEMPO "/tmp/rules.tmp"
114
115#endif /* RENETCOLPARAM_H */
Note: See TracBrowser for help on using the browser.