104.2. netams - Network Traffic Accounting and Monitoring Software

简介:

过程 104.1. 安装步骤

  1. netams netams-web

    $ sudo apt-get install netams netams-web
    				
    $ dpkg -s netams netams-web
    				
  2. NeTAMS administrator password

    				
    ┌───────────────────┤ Configuring netams ├────────────────────┐
    │ Please enter password for "admin" user in NeTAMS database.  │
    │                                                             │
    │ NeTAMS administrator password:                              │
    │                                                             │
    │ *******____________________________________________________ │
    │                                                             │
    │                           <Ok>                              │
    │                                                             │
    └─────────────────────────────────────────────────────────────┘
    
    ┌──────────┤ Configuring netams ├───────────┐
    │                                           │
    │                                           │
    │ Repeat password for NeTAMS user "admin":  │
    │                                           │
    │ *******__________________________________ │
    │                                           │
    │                  <Ok>                     │
    │                                           │
    └───────────────────────────────────────────┘
    
                    
    				

    如果你想重新配置安装过程可以运行下面命令

    $ sudo dpkg-reconfigure netams netams-web
    				
  3. 基本配置

    $ sudo vim /etc/default/netams
    RUN="yes"
    				
    $ sudo cp /etc/netams/netams.conf /etc/netams/netams.conf.old
    $ sudo vim /etc/netams/netams.conf
    
    $ sudo /etc/init.d/netams restart
    				
    				
    $ cat /etc/apache2/conf.d/netams.conf
    Alias /netams/images /usr/share/netams
    Alias /netams/stat /var/lib/netams/stat
    
    <Directory /var/lib/netams/stat/>
            Options -Indexes -FollowSymlinks
    
            DirectoryIndex index.html
    
            AllowOverride All
    </Directory>
    
    <Directory /usr/share/netams/>
            Options -Indexes -FollowSymlinks
            AllowOverride None
    </Directory>
    				
    				
    				
    $ cat /etc/apache2/conf.d/netams-web.conf
    ScriptAlias /netams/cgi-bin /usr/share/netams-web
    
    # Uncomment the following if you have no netams package installed
    #Alias /netams/images /usr/share/netams-web/images
    
    <Directory /usr/share/netams-web>
    
            Options -Indexes +FollowSymlinks
    
            AddHandler cgi-script .cgi
    
            AllowOverride None
    
    # By default we deny access from other hosts. May be you will need to configure
    # mod_auth_basic or mod_auth_mysql.
            Order deny,allow
            Deny from All
            Allow from 127.0.0.1
    
    </Directory>
    				
    				
  4. .netamsctl.rc

    $ vim ~/.netamsctl.rc
    login=admin
    password=123456
    host=localhost
    
    
    $ netamsctl "show version"
    NeTAMS 3.4.3 (3475.1) buildd@yellow / Tue 06 Apr 2010 03:40:49 +0000
    Run time  22 mins 6.5699 secs
    System time:  22 mins 1.2800 secs
    Average CPU/system load: 0.10%
    Process ID: 23647 RES: 9212K
    Memory allocated: 3640404 (23161), freed (31) (0 NULL) [23130 used]
    Total objects:
       Oids used: 9
       NetUnits: 4
       Policies: 3
       Services: 10
       Users: 1
       Connections: 1 active, 8 total
    
    Services info:
     Storage ID=1 type mysql wr_q 0/0 rd_q 0/0
     Data-source ID=1 type LIBPCAP source eth0:0 loop 316382 average 4182 mcsec
        Perf: average skew delay 21580 mcsec, PPS: 77, BPS: 16788
    Alerter 0 queue max: 255, current: 0
     Scheduled tasks: 1
    
    				

104.2.1. netams-web

http://localhost/netams/stat/

http://localhost/netams/cgi-bin/login.cgi




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
6月前
|
SQL Windows Perl
Configuring Automated Maintenance Tasks
Configuring Automated Maintenance Tasks
41 0
|
存储 安全 文件存储
Network Attached Storage
Network Attached Storage
133 0
Uptime And Monitoring Strategies For Cloud-Based E-Commerce Applications/Websites
In order to keep your e-commerce site functioning properly, you need to take positive steps to monitor both its performance and functionality.
1516 0
|
网络安全 网络性能优化 Linux
|
Linux 网络安全