Show
Ignore:
Timestamp:
10/18/07 11:41:05 (15 years ago)
Author:
andreu
Message:

new aggregation method, based on SNMP index. New parameters in renetcolParam.h and new compilation options in configure.in.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/renetcolParam.h

    r58 r59  
    2626#define RENETCOLPARAM_H 
    2727 
     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/src/routers.txt" 
     47/*  
     48 * FILE with your prefix/subnet  
     49 */ 
     50#define SUBNETS_LIST "/home/andreu/renetcol-0.0.12beta/src/IPv4_prefix.txt" 
     51/*  
     52 * two constants, here a subnet is include in a prefix  
     53 */ 
     54#define MAX_IPV4_PREFIX 4000 
     55#define MAX_IPV4_SUBNET 1000 
     56/*  
     57 * FILE for the rules  
     58 */ 
     59#define RULES_FILE "/home/andreu/renetcol-0.0.12beta/src/rules.txt" 
     60/*  
     61 * FILE with SNMP index of the interfaces  
     62 * tagged "C"ustomers or "B"ackbone  
     63 */ 
     64#define INTERFACES_TYPE_LIST ""  
     65/*  
     66 * maximum SNMP index  
     67 */ 
     68#define MAX_SNMP_INDEX 900 
    2869/* 
    29  * renetcol param 
    30  */  
     70 * Path to the rrd file 
     71 */ 
     72#define PREFIX_RRD_LOCATION "/mnt/data/RRD/RENATER/IPv4_SUBNET/" 
     73#define MATRIX_RRD_LOCATION "/mnt/data/RRD/RENATER/MATRIX/" 
    3174 
    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 ROUTER_INDEX_MAX 55 /* routers number + 1 */ 
    35 #define ROUTERS_LIST "/home/andreu/renetcol-0.0.12beta/src/routers.txt"     /* FILE with your routers IP address */  
    36 #define SUBNETS_LIST "/home/andreu/renetcol-0.0.12beta/src/IPv4_prefix.txt"     /* FILE with your subnets */ 
    37 #define RULES_FILE "/home/andreu/renetcol-0.0.12beta/src/rules.txt"       /* FILE for the rules */ 
    38 #define INTERFACES_TYPE_LIST "" /* FILE with SNMP index of the interfaces */ 
    39                                 /* tagged "C"ustomers or "B"ackbone */ 
    40 #define MAX_SNMP_INDEX 900 /* maximum SNMP index for interfaces */ 
    4175 
    42 #define STEP 5  /* interval - in min */ 
     76/**************************************************************** 
     77 * the following parameters CAN be changed but it's NOT REQUIRED 
     78 ***************************************************************/ 
     79#define STEP 5 
    4380#define FIELD_TYPE_NUMBER 89 
    44 #define MAX_RULES_PER_FIELD 10 /* maximum rules number for one field */ 
     81#define MAX_RULES_PER_FIELD 10 
    4582#define SHMSIZE 33554432 
    4683#define SOCKET_BUFFER_SIZE 1500 
    4784#define TIME_OUT 300 
    48  
    49 /* 
    50  * renetcolAgg param 
    51  */ 
    52  
    53 #define PREFIX_RRD_LOCATION "/mnt/data/RRD/RENATER/IPv4_SUBNET/" 
    54 #define MATRIX_RRD_LOCATION "/mnt/data/RRD/RENATER/MATRIX/" 
    5585#define RRD_EXTENSION ".rrd" 
    56  
    5786#define RRD_PARAM_PREFIX_0 "rrdcreate" 
    5887#define RRD_PARAM_PREFIX_1 "--start" 
     
    81110#define RRD_PARAM_PREFIX_24 "RRA:MAX:0.5:24:1550" 
    82111#define RRD_PARAM_PREFIX_25 "RRA:MAX:0.5:288:1594" 
    83  
    84112#define RRD_PARAM_MATRIX_0 "rrdcreate" 
    85113#define RRD_PARAM_MATRIX_1 "--start" 
     
    97125#define RRD_PARAM_MATRIX_13 "RRA:MAX:0.5:24:1550" 
    98126#define RRD_PARAM_MATRIX_14 "RRA:MAX:0.5:288:1594" 
    99  
    100127#define RRD_UPDATE_0 "rrdupdate" 
    101  
    102 /* 
    103  * renetcolSender param 
    104  */ 
    105  
    106128#define RECEPT_PORT "52571" 
    107129#define VAR_SHARED_SIZE 4