安裝 Plugin - PortTracker

    內容表格
    沒有標頭
    cd /usr/local/src/nfdump-1.6.13
    ./configure --enable-nfprofile --enable-nftrack --with-rrdpath=/usr/bin
    make
    cp bin/nftrack /usr/local/bin/
    
    mkdir /usr/local/nfsen/ports-db
    chown -R apache:apache /usr/local/nfsen/ports-db/
    
    vim /usr/local/src/nfsen-1.3.6p1/contrib/PortTracker/PortTracker.pm
    
    my $PORTSDBDIR = "/usr/local/nfsen/ports-db";    #第61行
    
    cp /usr/local/src/nfsen-1.3.6p1/contrib/PortTracker/PortTracker.pm /usr/local/nfsen/plugins/
    cp /usr/local/src/nfsen-1.3.6p1/contrib/PortTracker/PortTracker.php /var/www/html/nfsen/plugins/
    
    vim /usr/local/nfsen/etc/nfsen.conf
    
    #第213行 ()括號內,新增[ 'live',   'PortTracker' ],
    @plugins = (
        # profile    # module
        # [ '*',     'demoplugin' ],
        [ 'live',   'PortTracker' ],
    );
    

    產生PortTracker測試數據:

    sudo -u apache /usr/local/bin/nftrack -I -d /usr/local/nfsen/ports-db/
    #Create DBs ...
    Creating tcp:flows | Left: 341 files
    依主機運算效能,大概要等候10~15分鐘左右
    

    重啟 Nfsen

    /usr/local/nfsen/bin/nfsen stop
    /usr/local/nfsen/bin/nfsen start
    
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core