linux install snmp service-ubuntu

sudo apt-get install snmp snmpd snmp-mibs-downloader

# Install snmp

sudo service snmpd status

# Check the running status of snmpd

snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.1.1

# Test it will return the relevant information of the linux system
For example iso.3.6.1.2.1.1.1.0= STRING: "Linux leaf
4.2.0- 34- generic #39-Ubuntu SMP Thu Mar 1022:13:01 UTC 2016 x86_64"

sudo vi /etc/snmp/snmpd.conf

	agentAddress udp:127.0.0.1:161

	#Modify to agentAddress udp:0.0.0.0:161(If you customize the port, just tell me)
	#About 45 lines

	view systemonly included .1.3.6.1.2.1.1

	view systemonly included   .1.3.6.1.2.1.25.1

	#Add a new line below

	view systemonly included   .1

	#About 52 lines

	rocommunity publicdefault-V systemonly

	public-->Modified into a custom community

	default-->Modified to snmp receiving server 210.X.X.X

	rocommunity XXXX(Define a community)210.X.X.X

sudo service snmpd restart #Restart service

After the configuration is complete, use the modified port and community for monitoring.

Recommended Posts

linux install snmp service-ubuntu
Linux01 install centOS6.5mini
Linux Centos7 install jdk1.8
CentOS (linux) install PostgreSQL
Centos 7 install JDK (Linux install jdk)
Windows 10 install Linux subsystem Ubuntu
Know Linux and install CentOS
Install python environment under Linux
2.5 Linux (Ubuntu18.04) install database PostgreSQL
Linux Centos7 install redis tutorial
Install MySQL 8.0.16 on Linux Centos
Install python3 on linux, keep python2
Install MySQL under Linux (CentOS 7)
CentOS 6.8 under linux install mongodb
Install Hadoop cluster on Linux (CentOS7+hadoop-2.8.0)
Install MySQL on Linux CentOS7 (Windows)
​Install Oracle database on CentOS Linux
Linux CentOS6 compile and install Pyt
Use VMware15 to install Linux (CentOS6.5)
Install Jenkins on linux centos (non-docker way)
Install linux (ubuntu) dual system under windows system
Install mysql8.0.13 version under Linux CentOS7 system
How to install MySQL on Ubuntu 18.04 (linux)
Windows 10 subsystem linux install pagoda panel Ubuntu
Linux install Docker and run Ubuntu system