Introduction to ntop configuration in Linux

Source: Internet
Author: User

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.

 
 
  1. Install graphviz:
  2. # Yum install graphviz
  3. Install ntop:
  4. # Yum install ntop
  5. Change ntop. conf:
  6. -- User ntop
  7. -- Db-file-path/var/ntop
  8. -- Use-syslog=Local1# Enable ntop to record logs to local1.
  9. Change/etc/syslog. conf:
  10. Local1. */var/log/ntop. log # Corresponds to ntop. conf. Remember to restart the syslog service.
  11. Change/etc/init. d/ntop:
  12. #! /Bin/bash
  13. #
  14. # Init file for the NTOP network monitor
  15. #
  16. # Chkconfig: 35 93 83 # Add 35 as-here to enable ntop to automatically start at 35 levels. Remember to use # chkconfig ntop on
  17. #
  18. # Description: NTOP Network Monitor
  19. #
  20. # Processname: ntop
  21. # Config:/etc/ntop. conf
  22. # Pidfile:/var/run/ntop
  23. # Source function library.
  24. ./Etc/rc. d/init. d/functions
  25. # Source networking configuration.
  26. ./Etc/sysconfig/network
  27. # Check that networking is up.
  28. ["$ {NETWORKING}" = "no"] & exit 0
  29. [-X "/usr/bin/ntop"] | exit 1
  30. [-R "/etc/ntop. conf"] | exit 1
  31. # [-R "/var/ntop/ntop_pw.db"] | exit 1
  32. RETVAL=0 
  33. Prog="Ntop" 
  34. Start (){
  35. Echo-n $ "Starting $ prog :"
  36. Daemon $ prog @/etc/ntop. conf-d-L # It turns out to be-d-L @... but an error will be reported.
  37. RETVAL= $?
  38. Echo
  39. [$ RETVAL-eq 0] & touch/var/lock/subsys/\ $ prog
  40. Return $ RETVAL
  41. }
  42. Stop (){
  43. Echo-n $ "Stopping $ prog :"
  44. Killproc $ prog
  45. RETVAL= $?
  46. Echo
  47. [$ RETVAL-eq 0] & rm-f/var/lock/subsys/$ prog
  48. Return $ RETVAL
  49. }
  50. Restart (){
  51. Stop
  52. Start
  53. }
  54. Case "$1" in
  55. Start)
  56. Start
  57. ;;
  58. Stop)
  59. Stop
  60. ;;
  61. Restart | reload)
  62. Restart
  63. ;;
  64. Condrestart)
  65. [-E/var/lock/subsys/$ prog] & restart
  66. RETVAL= $?
  67. ;;
  68. Status)
  69. Status $ prog
  70. RETVAL= $?
  71. ;;
  72. *)
  73. Echo $ "Usage: $0 {start | stop | restart | condrestart | status }"
  74. RETVAL=1 
  75. Esac
  76. 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

  1. Brief Introduction to februa Linux
  2. Detailed introduction to the use of Fedora Linux system files
  3. Describes the Linux GCC stability requirements.
  4. Learn more about Linux Network commands
  5. Install Linux firewall to ensure Linux security

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.