Linux is developing rapidly. Do you know about Linux? Are you an application of Linux? If you need to configure ntop today, this article will introduce you in detail how to configure ntop in Linux, which plays a role in learning how to configure ntop in Linux. Used to monitor network conditions.
Install rpmforge:
# Wget requests
The source code package does not work for a long time. rpmforge is still very useful.
- Install graphviz:
- # Yum install graphviz
- Install ntop:
- # Yum install ntop
- Change ntop. conf:
- -- User ntop
- -- Db-file-path/var/ntop
- -- Use-syslog=Local1# Enable ntop to record logs to local1.
- Change/etc/syslog. conf:
- Local1. */var/log/ntop. log # Corresponds to ntop. conf. Remember to restart the syslog service.
- Change/etc/init. d/ntop:
- #! /Bin/bash
- #
- # Init file for the NTOP network monitor
- #
- # Chkconfig: 35 93 83 # Add 35 as-here to enable ntop to automatically start at 35 levels. Remember to use # chkconfig ntop on
- #
- # Description: NTOP Network Monitor
- #
- # Processname: ntop
- # Config:/etc/ntop. conf
- # Pidfile:/var/run/ntop
- # Source function library.
- ./Etc/rc. d/init. d/functions
- # Source networking configuration.
- ./Etc/sysconfig/network
- # Check that networking is up.
- ["$ {NETWORKING}" = "no"] & exit 0
- [-X "/usr/bin/ntop"] | exit 1
- [-R "/etc/ntop. conf"] | exit 1
- # [-R "/var/ntop/ntop_pw.db"] | exit 1
- RETVAL=0
- Prog="Ntop"
- Start (){
- Echo-n $ "Starting $ prog :"
- Daemon $ prog @/etc/ntop. conf-d-L # It turns out to be-d-L @... but an error will be reported.
- RETVAL= $?
- Echo
- [$ RETVAL-eq 0] & touch/var/lock/subsys/\ $ prog
- Return $ RETVAL
- }
- Stop (){
- Echo-n $ "Stopping $ prog :"
- Killproc $ prog
- RETVAL= $?
- Echo
- [$ RETVAL-eq 0] & rm-f/var/lock/subsys/$ prog
- Return $ RETVAL
- }
- Restart (){
- Stop
- Start
- }
- Case "$1" in
- Start)
- Start
- ;;
- Stop)
- Stop
- ;;
- Restart | reload)
- Restart
- ;;
- Condrestart)
- [-E/var/lock/subsys/$ prog] & restart
- RETVAL= $?
- ;;
- Status)
- Status $ prog
- RETVAL= $?
- ;;
- *)
- Echo $ "Usage: $0 {start | stop | restart | condrestart | status }"
- RETVAL=1
- Esac
- Exit $ RETVAL
Configure ntop:
Add dot. path/usr/bin/dot to Admin-Preferences to implement the drawing function.
Other considerations:
Use the following command to set a management password before the first startup, which will be used for web page settings later. The user name is admin by default, and the password is set by the following command.
#/Usr/bin/ntop-P/var/ntop-u ntop-
Open port 3000 in the firewall, or modify the configuration file to another one. In this way, ntop is successfully configured in Linux.
This article is from the "shark giant dish-vegetable garden" blog, please be sure to keep this source http://sharkyan.blog.51cto.com/536264/245041
- Brief Introduction to februa Linux
- Detailed introduction to the use of Fedora Linux system files
- Describes the Linux GCC stability requirements.
- Learn more about Linux Network commands
- Install Linux firewall to ensure Linux security