Ubuntu installation test snmpd-Linux Enterprise Application-Linux server application information. The following is a detailed description. The company has more than 20 servers that need monitoring and management, and login is not busy every day. We are considering using snmp for monitoring.
1. installation. Install snmpd on a ubuntu machine (this is ubuntu)
# Apt-get install snmpd snmp
2. Simple test.
# Snmpwalk-v 1-c public localhost
If there is a response, it means your snmpd is working properly.
3. Configure/etc/snmp/snmpd. conf
First, modify it. Pay attention to private11 and use it later.
# Sec. name source community
Com2sec paranoid default public
Com2sec readonly default public
Com2sec readwrite default private11
Modify the disk space (check the disk space in the disk/directory)
# Disk checks
#
# The agent can check the amount of available disk space, and make
# Sure it is abve a set limit.
# Disk PATH [MIN = DEFDISKMINIMUMSPACE]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the Mib's errorFlag set.
# Default value = DEFDISKMINIMUMSPACE.
# Check the/partition and make sure it contains at least 100 megs.
Disk/100000
Modify it again (check the average server cpu load)
# Load average checks
#
# Load [1MAX = DEFMAXLOADAVE] [5MAX = DEFMAXLOADAVE] [15MAX = DEFMAXLOADAVE]
#
# 1MAX: If the 1 minute load average is above this limit at query
# Time, the errorFlag will be set.
# 5MAX: Similar, but for 5 min average.
# 15MAX: Similar, but for 15 min average.
# Check for loads:
Load 1 1 1
4. Test
Test the server CPU load (here, private11 is the private11 in com2sec readwrite default private11)
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