Ticket #38276: patch-etc-nfsen-dist.conf.diff
File patch-etc-nfsen-dist.conf.diff, 2.5 KB (added by jul_bsd@…, 11 years ago) |
---|
-
etc/nfsen-dist.conf
old new 18 18 19 19 # 20 20 # Required for default layout 21 $BASEDIR = " /data/nfsen";21 $BASEDIR = "__PREFIX__"; 22 22 23 23 # 24 24 # Where to install the NfSen binaries … … 26 26 27 27 # 28 28 # Where to install the NfSen Perl modules 29 $LIBEXECDIR="${BASEDIR}/libexec ";29 $LIBEXECDIR="${BASEDIR}/libexec/nfsen"; 30 30 31 31 # 32 32 # Where to install the config files … … 36 36 # NfSen html pages directory: 37 37 # All php scripts will be installed here. 38 38 # URL: Entry point for nfsen: http://<webserver>/nfsen/nfsen.php 39 $HTMLDIR = " /var/www/nfsen/";39 $HTMLDIR = "${BASEDIR}/www/nfsen/"; 40 40 41 41 # 42 42 # Where to install the docs … … 44 44 45 45 # 46 46 # Var space for NfSen 47 $VARDIR="${BASEDIR}/var ";47 $VARDIR="${BASEDIR}/var/nfsen"; 48 48 49 49 # directory for all pid files 50 50 # $PIDDIR="$VARDIR/run"; … … 60 60 # 61 61 # The Profiles stat directory, where all profile information 62 62 # RRD DBs and png pictures of the profile are stored 63 $PROFILESTATDIR="${ BASEDIR}/profiles-stat";63 $PROFILESTATDIR="${VARDIR}/profiles-stat"; 64 64 65 65 # 66 66 # The Profiles directory, where all netflow data is stored 67 $PROFILEDATADIR="${ BASEDIR}/profiles-data";67 $PROFILEDATADIR="${VARDIR}/profiles-data"; 68 68 69 69 # 70 70 # Where go all the backend plugins 71 $BACKEND_PLUGINDIR="${ BASEDIR}/plugins";71 $BACKEND_PLUGINDIR="${LIBEXECDIR}/plugins"; 72 72 73 73 # 74 74 # Where go all the frontend plugins … … 76 76 77 77 # 78 78 # nfdump tools path 79 $PREFIX = ' /usr/local/bin';79 $PREFIX = '__PREFIX__/bin'; 80 80 81 81 # 82 82 # nfsend communication socket … … 88 88 # This may be a different or the same uid than your web server. 89 89 # Note: This user must be in group $WWWGROUP, otherwise nfcapd 90 90 # is not able to write data files! 91 $USER = " netflow";91 $USER = "__NETFLOWUSER__"; 92 92 93 93 # user and group of the web server process 94 94 # All netflow processing will be done with this user 95 $WWWUSER = " www";96 $WWWGROUP = " www";95 $WWWUSER = "__WWWUSER__"; 96 $WWWGROUP = "__WWWGROUP__"; 97 97 98 98 # Receive buffer size for nfcapd - see man page nfcapd(1) 99 99 $BUFFLEN = 200000; … … 158 158 159 159 %sources = ( 160 160 'upstream1' => { 'port' => '9995', 'col' => '#0000ff', 'type' => 'netflow' }, 161 'peer1' => { 'port' => '9996', 'IP' => '172.16.17.18' },162 'peer2' => { 'port' => '9996', 'IP' => '172.16.17.19' },161 # 'peer1' => { 'port' => '9996', 'IP' => '172.16.17.18' }, 162 # 'peer2' => { 'port' => '9996', 'IP' => '172.16.17.19' }, 163 163 ); 164 164 165 165 #