Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
3241 rexy 1
<?php
2
/**
3
 * config file for nfsen-ng.
4
 *
5
 * remarks:
6
 * * database name = datasource class name (case-sensitive)
7
 * * log priority should be one of the predefined core constants prefixed with LOG_
8
 */
9
 
10
$nfsen_config = [
11
    'general' => [
12
        'ports' => [
13
            443, 80, 22, 53,
14
        ],
15
        'sources' => [
16
            'alcasar_netflow',
17
        ],
18
        'filters' => [
19
            'proto udp',
20
            'proto tcp',
21
        ],
22
        'db' => 'RRD',
23
        'processor' => 'NfDump',
24
    ],
25
    'frontend' => [
26
        'reload_interval' => 60,
27
        'defaults' => [
28
            'view' => 'graphs', // graphs, flows, statistics
29
            'graphs' => [
30
                'display' => 'sources', // sources, protocols, ports
31
                'datatype' => 'flows', // flows, packets, traffic
32
                'protocols' => ['any'], // any, tcp, udp, icmp, others (multiple possible if display=protocols)
33
            ],
34
            'flows' => [
35
                'limit' => 50,
36
            ],
37
            'statistics' => [
38
                'order_by' => 'bytes',
39
            ],
40
        ],
41
    ],
42
    'nfdump' => [
43
        'binary' => '/usr/bin/nfdump',
44
        'profiles-data' => '/var/log/nfsen/profiles-data',
45
        'profile' => 'live',
46
        'max-processes' => 1, // maximum number of concurrently running nfdump processes
47
    ],
48
    'db' => [
49
        'Akumuli' => [
50
            // 'host' => 'localhost',
51
            // 'port' => 8282,
52
        ],
53
        'RRD' => [],
54
    ],
55
    'log' => [
56
        'priority' => \LOG_INFO, // LOG_DEBUG is very talkative!
57
    ],
58
];