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  
    1818
    1919#
    2020# Required for default layout
    21 $BASEDIR = "/data/nfsen";
     21$BASEDIR = "__PREFIX__";
    2222
    2323#
    2424# Where to install the NfSen binaries
     
    2626
    2727#
    2828# Where to install the NfSen Perl modules
    29 $LIBEXECDIR="${BASEDIR}/libexec";
     29$LIBEXECDIR="${BASEDIR}/libexec/nfsen";
    3030
    3131#
    3232# Where to install the config files
     
    3636# NfSen html pages directory:
    3737# All php scripts will be installed here.
    3838# URL: Entry point for nfsen: http://<webserver>/nfsen/nfsen.php
    39 $HTMLDIR    = "/var/www/nfsen/";
     39$HTMLDIR    = "${BASEDIR}/www/nfsen/";
    4040
    4141#
    4242# Where to install the docs
     
    4444
    4545#
    4646# Var space for NfSen
    47 $VARDIR="${BASEDIR}/var";
     47$VARDIR="${BASEDIR}/var/nfsen";
    4848
    4949# directory for all pid files
    5050# $PIDDIR="$VARDIR/run";
     
    6060#
    6161# The Profiles stat directory, where all profile information
    6262# RRD DBs and png pictures of the profile are stored
    63 $PROFILESTATDIR="${BASEDIR}/profiles-stat";
     63$PROFILESTATDIR="${VARDIR}/profiles-stat";
    6464
    6565#
    6666# The Profiles directory, where all netflow data is stored
    67 $PROFILEDATADIR="${BASEDIR}/profiles-data";
     67$PROFILEDATADIR="${VARDIR}/profiles-data";
    6868
    6969#
    7070# Where go all the backend plugins
    71 $BACKEND_PLUGINDIR="${BASEDIR}/plugins";
     71$BACKEND_PLUGINDIR="${LIBEXECDIR}/plugins";
    7272
    7373#
    7474# Where go all the frontend plugins
     
    7676
    7777#
    7878# nfdump tools path
    79 $PREFIX  = '/usr/local/bin';
     79$PREFIX  = '__PREFIX__/bin';
    8080
    8181#
    8282# nfsend communication socket
     
    8888# This may be a different or the same uid than your web server.
    8989# Note: This user must be in group $WWWGROUP, otherwise nfcapd
    9090#       is not able to write data files!
    91 $USER    = "netflow";
     91$USER    = "__NETFLOWUSER__";
    9292
    9393# user and group of the web server process
    9494# All netflow processing will be done with this user
    95 $WWWUSER  = "www";
    96 $WWWGROUP = "www";
     95$WWWUSER  = "__WWWUSER__";
     96$WWWGROUP = "__WWWGROUP__";
    9797
    9898# Receive buffer size for nfcapd - see man page nfcapd(1)
    9999$BUFFLEN = 200000;
     
    158158
    159159%sources = (
    160160    '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' },
    163163);
    164164
    165165#