Bandwidth Monitoring with NTop (Network Top)
Basic Configuration of NTOP:
Edit /etc/ntop.conf file in your faviorate editor and enable the misc options.
[root@yourmachine ~] vi /etc /ntop.conf
### Sets the user that ntop runs as.
### NOTE: This should not be root unless you really understand the security risks.
–user ntop
### Sets the directory that ntop runs from.
–db-file-path /var/ntop
### Interface(s) that ntop will capture on (default: eth0)
–interface eth0
### Configures ntop not to trust MAC addrs. This is used when port mirroring or SPAN
#–no-mac
### Logging messages to syslog (instead of the console):
### NOTE: To log to a specific facility, use –use-syslog=local3
### NOTE: The = is REQUIRED and no spaces are permitted.
–use-syslog=local1
### Tells ntop to track only local hosts as specified by the –local-subnets option
#–track-local-hosts
### Sets the port that the HTTP webserver listens on
### NOTE: –http-server 3000 is the default
–http-server 3000
### Sets the port that the optional HTTPS webserver listens on
#–https-server 3001
### Sets the networks that ntop should consider as local.
### NOTE: Uses dotted decimal and CIDR notation. Example: 192.168.0.0/24
### The addresses of the interfaces are always local and don’t need to be specified.
#–local-subnets xx.xx.xx.xx/yy
### Sets the domain. ntop should be able to determine this automatically.
#–domain mydomain.com
### Sets program to run as a daemon
### NOTE: For more than casual use, you probably want this.
#–daemon
So for above conf file is perfect but you can modify as per your requirement.