The use of the SNMP protocol set has always been a concern of administrators. So we will give a detailed explanation of Linux SNMP. First, let's explain how to start the protocol. The basic functions of the Linux SNMP Protocol are: to obtain, set, and receive unexpected mess
First, install SNMP1.1, download the source code of NET-SNMPSelect an SNMP version, such as 5.7.1, as follows: HTTP://SOURCEFORGE.NET/PROJECTS/NET-SNMP/FILES/NET-SNMP/5.7.1/, as shown in: After the download is complete, get a compressed package as shown 1.2. Transfer the compressed package to a remote Linux serverT
Configure the snmp service in linux and snmp in linux-- How to Configure snmp on Linux-- Attach an iso CD image file firstMount-o loop/soft/rhel-server-6.4-x86_64-dvd.iso/mnt/cdrom-- Check whether the
" configuration entry as shown: 4.2. Select the version of the V2C SNMP protocolLocate "ACTIVE monitoring" as shown in: Modify the following: 4.3, set access rights Locate "ACCESS CONTROL" as shown in: Find "rocommunity public default-v systemonly", put the-v systemonly removed, this is set access permissions, removed after access to all, as shown: 4.4, save snmpd.conf after exit Press the "ESC" key on the upper left corner of the keyboard to e
use the command:$ service SNMPD StartTip: Starting SNMPD: [OK], the SNMP service started successfully.You can set the SNMP service to boot from boot, which eliminates the hassle of manual startup.Use the command: $ chkconfig snmpd on to set the SNMPD service to boot from.Then use the command: $ chkconfig--list | grep snmpd to see if it has been set successfully.4. Verifying
Use SNMP and Cacti to monitor Linux servers
SNMP (Simple Network Management Protocol) is used to collect internal data, such as load, disk status, and bandwidth. Network monitoring tools such as Cacti use this data to generate icons for monitoring purposes.
In a typical Cacti and S
Tags: top accept ACK Back add user cannot ref tar parameterLinux SNMPThe following example uses the SUSE10 Linux environment, but it also applies to other Linux distributions.Compiling and installingFirst we need to download NET-SNMP source code, choose a version, such as 5.7.1, the address is as follows:Http://sourceforge.net/projects/net-
When learning this, we need some tools to help us contact and manage them. So we will give a brief introduction to this part today. We all know that the basic functions of Linux SNMP are: to obtain, set, and receive unexpected information sent by a proxy. Obtaining refers to sending a request from the base station. The proxy returns the corresponding data based o
system processes, monitoring the current number of processes in the system. monitoring principle Monitoring Bao uses the standard SNMP protocol to provide server monitoring functionality to users, which means that the SNMP agent (SNMPD) must be running on the monitored server. Next we'll detail how to install, turn on the SNMP agent on a
SNMP is an indispensable helper for network administrators. Its specific function is to assist the Administrator in network management. However, different systems have different operations. Today we will introduce the Operation Problems of the SNMP protocol in windows and Linux systems.
Windows SNMP protocol
The
printer, the number of coffee cups made by the coffee maker, and the current used for calculation.
An incremental counter can be monitored and drawn into an image using the methods you have learned. Later we will be able to monitor values like thermometers. Most people interested in RRDtool use a counter that tracks the data volume transmitted by network devices. In this way, we will do this next step. We will start by explaining how to collect data.
Some may say that some
Configure SNMP on Debian or Ubuntu
To install the SNMP agent (SNMPD) on a Debian based system, run the following command:
The code is as follows:
root@server:~# Apt-get Install SNMPD
Then, edit the configuration file as follows.
The code is as follows:
root@server:~# vim/etc/snmp/snmpd.conf
# Make SNMPD listen and all the interfaces
Agentaddress udp:161
In linux, the SNMP installation configuration takes the redhat installation configuration as an example: compile and install www.2cto.com. First, we need to download the Net-SNMP source code and select a version, such as the latest version 5.7.1, the address is http://sourceforge.net/projects/net-snmp/files/net as foll
:
################################################################################ disk checks## The agent can check the amount of available disk space, and make# sure it is above a set limit. # disk PATH [MIN=100000]## PATH: mount path to the disk in question.# MIN: Disks with space below this value will have the Mib's errorFlag set.# Default value = 100000.# Check the / partition and make sure it contains at least 10 megs.#disk / 10000Set
# Disk/10000
Remove the # Before and cance
################################################################################ Disk checks## the agent can check The amount of available disk space, and make# sure it is above a set limit. # disk path [min=100000]## path: mount path to the disk in question.# MIN: Disks with space below this value would The Mib ' s errorflag set.# Default value = 100000.# Check the/partition and make sure it contains at least me GS. #disk/10000Will#disk/10000Before the # number is removed, uncomment6
Readobject.cgenerating the Tmporary code file:netsnmptmp.25506.cvoid init_readobject (void); Checking for Init_ ReadObject in Readobject.cinit_readobject (void) checking for shutdown_readobject in READOBJECT.CRUNNING:GCC- Fno-strict-aliasing-g-o2-ulinux-dlinux=linux-d_reentrant-d_gnu_source-ddebian-fwrapv-fno-strict-aliasing-pipe- I/usr/local/include-d_largefile_source-d_file_offset_bits=64-i/usr/lib/x86_64-linux
number of pages printed by the printer, the number of coffee cups made by the coffee maker and the current used for calculation can all be used 。
Incremental counters can be monitored, and use the methods you have learned to draw images. Later we will be able to monitor values like thermometers. Most people interested in RRDtool will use a method that tracks the amount of data transmitted by network devices. counter. In this way, we will proceed to this step. We will begin by explaining how to
startRestart the SNMP service if it is started/ETC/INIT.D/SNMPD restartTesting SNMPTo see if the port is openNetstat-ln | grep 161Installing the SNMP test toolYum Install Net-snmp-utilsNative Test SNMP data (modify monit for configured community name)Snmpwalk-v 2c-c public localhost systemSnmpwalk-v3-u username-l auth
Through further understanding of SNMP, we know how important this powerful protocol function is. Therefore, you must master the Linux SNMP service. I learned about Linux SNMP and learned about it as a Simple Network Management Protocol. The protocol used to manage nodes on a
ArticleDirectory
1) install SNMP
2) Configure SNMP
3) Start and Stop SNMP
4) Firewall
(1) install SNMP in Linux
For more information, see how to install SNMP in Linux
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.