Zabbix monitors Linux hosts based on snmp

Zabbix monitors Linux hosts based on snmp

Preface:

The Linux host is relatively easy to handle, whether it is installing the agent program or using SNMP, it is relatively convenient. This article aims to introduce how to connect the client and server through SNMP.

environment:

server:192.168.249.142

client:192.168.249.145

Basic configuration: turn off selinux, turn off the firewall or open port 161.

1. Basic configuration of snmp on the client side:

1. Install snmp (using Alibaba yum source):

[root@cinder snmp]# yum install net-snmp

2. Modify the community name in the configuration file as needed:

3. Start the snmp service:

2. Configuration of the server:

1. Add the Linux host:

2. Configure the community name:

3. Add templates as needed:

4. Add:

You can see that the green icon of snmp is on, which means that there is no problem with our operation and the server and client can interact normally. If the icon is not on, there may be a problem with the configuration of the community name if there is no problem with the network.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to use ss command instead of netstat in Linux operation and maintenance
  • Detailed explanation of Linux ss command
  • Linux inter-process communication method socket usage example
  • The difference between non-blocking mode and blocking mode of Linux UDP socket
  • Linux network programming UDP Socket program example
  • Linux network programming socket file transfer example
  • Zabbix monitors the process of Linux system services
  • How to set up Zabbix to monitor Linux hosts
  • Detailed explanation of the implementation method of Linux monitoring important processes
  • Detailed explanation of Linux using ss command combined with zabbix to monitor socket

<<:  Summary of MySQL common functions

>>:  Even a novice can understand the difference between typeof and instanceof in js

Recommend

Summary of shell's method for determining whether a variable is empty

How to determine whether a variable is empty in s...

Web designer is a suitable talent

<br />There is no road in the world. When mo...

Detailed explanation of the usage of two types of temporary tables in MySQL

External temporary tables A temporary table creat...

Vue detailed introductory notes

Table of contents 1. Introduction 2. Initial Vue ...

Detailed instructions for installing Jenkins on Ubuntu 16.04

1. Prerequisites JDK has been installed echo $PAT...

Solve the problem that Docker cannot ping the host machine under Mac

Solution Abandon the Linux virtual machine that c...

How to use CSS media query aspect-ratio less

CSS media query has a very convenient aspect rati...

CSS3 to achieve menu hover effect

Result: html <nav id="nav-1"> <...

Add unlimited fonts to your website with Google Web Fonts

For a long time, website development was hampered...

Analysis of the principle of Nginx using Lua module to implement WAF

Table of contents 1. Background of WAF 2. What is...