root/trunk/src/renetcolParam.h @ 63

Revision 60, 5.5 KB (checked in by andreu, 15 years ago)

new aggregation mode based on SNMP index and AS aggregation

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 * Parameters which MUST be changed:
30 **************************************/ 
31/*
32 * your collector address - syntax: 10.0.0.90
33*/
34#define RECEPTION_ADDRESS ""
35/*
36 * your collector port to recept netflow export
37 */ 
38#define RECEPTION_PORT 9999
39/*
40 * routers number + 1
41 */
42#define ROUTER_INDEX_MAX 55
43/*
44 * FILE with your routers IP address
45*/ 
46#define ROUTERS_LIST "/home/andreu/renetcol-0.0.12beta/conf/routers.txt"
47/*
48 * FILE with your prefix/subnet
49 */
50#define SUBNETS_LIST "/home/andreu/renetcol-0.0.12beta/conf/IPv4_prefix.txt"
51/*
52 * FILE with the list of AS with accounting
53 */
54#define AS_LIST "/home/andreu/renetcol-0.0.12beta/conf/AS.txt"
55/*
56 * constants, here a subnet is include in a prefix
57 */
58#define MAX_IPV4_PREFIX 4000
59#define MAX_IPV4_SUBNET 1000
60#define MAX_AS 3
61/*
62 * FILE for the rules
63 */
64#define RULES_FILE "/home/andreu/renetcol-0.0.12beta/conf/rules.txt"
65/*
66 * FILE with SNMP index of the interfaces
67 * tagged "C"ustomers or "B"ackbone
68 */
69#define INTERFACES_TYPE_LIST "" 
70/*
71 * maximum SNMP index
72 */
73#define MAX_SNMP_INDEX 900
74/*
75 * Path to the rrd file
76 */
77#define PREFIX_RRD_LOCATION "/mnt/data/RRD/RENATER/IPv4_SUBNET/"
78#define MATRIX_RRD_LOCATION "/mnt/data/RRD/RENATER/MATRIX/"
79#define AS_RRD_LOCATION "/mnt/data/RRD/RENATER/AS/"
80
81/****************************************************************
82 * the following parameters CAN be changed but it's NOT REQUIRED
83 ***************************************************************/
84#define STEP 5
85#define FIELD_TYPE_NUMBER 89
86#define MAX_RULES_PER_FIELD 10
87#define SHMSIZE 33554432
88#define SOCKET_BUFFER_SIZE 1500
89#define TIME_OUT 300
90#define RRD_EXTENSION ".rrd"
91#define RRD_PARAM_PREFIX_0 "rrdcreate"
92#define RRD_PARAM_PREFIX_1 "--start"
93#define RRD_PARAM_PREFIX_2 "1106560200"
94#define RRD_PARAM_PREFIX_3 "--step"
95#define RRD_PARAM_PREFIX_4 "300"
96#define RRD_PARAM_PREFIX_5 "DS:inFlows:GAUGE:600:U:U"
97#define RRD_PARAM_PREFIX_6 "DS:outFlows:GAUGE:600:U:U"
98#define RRD_PARAM_PREFIX_7 "DS:inBytes:GAUGE:600:U:U"
99#define RRD_PARAM_PREFIX_8 "DS:outBytes:GAUGE:600:U:U"
100#define RRD_PARAM_PREFIX_9 "DS:inPkts:GAUGE:600:U:U"
101#define RRD_PARAM_PREFIX_10 "DS:outPkts:GAUGE:600:U:U"
102#define RRD_PARAM_PREFIX_11 "DS:inFirstCoS:GAUGE:600:U:U"
103#define RRD_PARAM_PREFIX_12 "DS:outFirstCoS:GAUGE:600:U:U"
104#define RRD_PARAM_PREFIX_13 "DS:inSecondCoS:GAUGE:600:U:U"
105#define RRD_PARAM_PREFIX_14 "DS:outSecondCoS:GAUGE:600:U:U"
106#define RRD_PARAM_PREFIX_15 "DS:inThirdCoS:GAUGE:600:U:U"
107#define RRD_PARAM_PREFIX_16 "DS:outThirdCoS:GAUGE:600:U:U"
108#define RRD_PARAM_PREFIX_17 "DS:inFourthCoS:GAUGE:600:U:U"
109#define RRD_PARAM_PREFIX_18 "DS:outFourthCoS:GAUGE:600:U:U"
110#define RRD_PARAM_PREFIX_19 "RRA:AVERAGE:0.5:1:2100"
111#define RRD_PARAM_PREFIX_20 "RRA:AVERAGE:0.5:24:1550"
112#define RRD_PARAM_PREFIX_21 "RRA:AVERAGE:0.5:288:1594"
113#define RRD_PARAM_PREFIX_22 "RRA:AVERAGE:0.5:2016:1040"
114#define RRD_PARAM_PREFIX_23 "RRA:MAX:0.5:1:2100"
115#define RRD_PARAM_PREFIX_24 "RRA:MAX:0.5:24:1550"
116#define RRD_PARAM_PREFIX_25 "RRA:MAX:0.5:288:1594"
117#define RRD_PARAM_MATRIX_0 "rrdcreate"
118#define RRD_PARAM_MATRIX_1 "--start"
119#define RRD_PARAM_MATRIX_2 "1106560200"
120#define RRD_PARAM_MATRIX_3 "--step"
121#define RRD_PARAM_MATRIX_4 "300"
122#define RRD_PARAM_MATRIX_5 "DS:Flows:GAUGE:600:U:U"
123#define RRD_PARAM_MATRIX_6 "DS:Bytes:GAUGE:600:U:U"
124#define RRD_PARAM_MATRIX_7 "DS:Pkts:GAUGE:600:U:U"
125#define RRD_PARAM_MATRIX_8 "RRA:AVERAGE:0.5:1:2100"
126#define RRD_PARAM_MATRIX_9 "RRA:AVERAGE:0.5:24:1550"
127#define RRD_PARAM_MATRIX_10 "RRA:AVERAGE:0.5:288:1594"
128#define RRD_PARAM_MATRIX_11 "RRA:AVERAGE:0.5:2016:1040"
129#define RRD_PARAM_MATRIX_12 "RRA:MAX:0.5:1:2100"
130#define RRD_PARAM_MATRIX_13 "RRA:MAX:0.5:24:1550"
131#define RRD_PARAM_MATRIX_14 "RRA:MAX:0.5:288:1594"
132#define RRD_PARAM_AS_0 "rrdcreate"
133#define RRD_PARAM_AS_1 "--start"
134#define RRD_PARAM_AS_2 "1106560200"
135#define RRD_PARAM_AS_3 "--step"
136#define RRD_PARAM_AS_4 "300"
137#define RRD_PARAM_AS_5 "DS:inFlows:GAUGE:600:U:U"
138#define RRD_PARAM_AS_6 "DS:outFlows:GAUGE:600:U:U"
139#define RRD_PARAM_AS_7 "DS:inBytes:GAUGE:600:U:U"
140#define RRD_PARAM_AS_8 "DS:outBytes:GAUGE:600:U:U"
141#define RRD_PARAM_AS_9 "DS:inPkts:GAUGE:600:U:U"
142#define RRD_PARAM_AS_10 "DS:outPkts:GAUGE:600:U:U"
143#define RRD_PARAM_AS_11 "RRA:AVERAGE:0.5:1:2100"
144#define RRD_PARAM_AS_12 "RRA:AVERAGE:0.5:24:1550"
145#define RRD_PARAM_AS_13 "RRA:AVERAGE:0.5:288:1594"
146#define RRD_PARAM_AS_14 "RRA:AVERAGE:0.5:2016:1040"
147#define RRD_PARAM_AS_15 "RRA:MAX:0.5:1:2100"
148#define RRD_PARAM_AS_16 "RRA:MAX:0.5:24:1550"
149#define RRD_PARAM_AS_17 "RRA:MAX:0.5:288:1594"
150#define RRD_UPDATE_0 "rrdupdate"
151#define RECEPT_PORT "52571"
152#define VAR_SHARED_SIZE 4
153#define FILE_TEMPO "/tmp/rules.tmp"
154
155#endif /* RENETCOLPARAM_H */
Note: See TracBrowser for help on using the browser.