Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use yum to install and configure Zabbix in CentOS

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

How to use yum installation to configure Zabbix in CentOS? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.

1. Install SNMP on the node-122 node as the server: # yum-y install net-snmp

2. Node-122 node modifies snmpd.conf configuration file:

# cd / etc/snmp/

# cp snmpd.conf {, .bak}

# vim snmpd.conf

Com2sec notConfigUser default marion

Group notConfigGroup v2c notConfigUser

View systemview included .1.3.6.1

Access notConfigGroup "" any noauth exact systemview none none

Description:

Com2sec notConfigUser default marion: user name, access IP whitelist (default represents all IP accessible), authentication password

Group notConfigGroup V2C notConfigUser: group name, SNMP version, user name

View systemview included .1.3.6.1: view name, incl/excl, and subtree,.1.3.6.1 indicate permissions, which can be accessed at the beginning, such as .1.3.6.1.4.1.2021.10.1.3 and .1.3.6.1.2.1.2

3. Node-122 node starts SNMP:

# systemctl start snmpd

# systemctl status snmpd

# ps aux | grep snmpd

# ss-tunlp | grep-w: 161

# systemctl enable snmpd

4. Install SNMP on the zabbix-server node as the client: # yum-y install net-snmp-utils

5. Zabbix-server nodes use OID and MIB to obtain information about node-122 nodes:

# snmpwalk-V2C-c marion 192.168.0.122 .1.3.6.1.4.1.2021.10.1.3

# snmpwalk-V2C-c marion 192.168.0.122 .1.3.6.1.2.1.2

# snmpwalk-V2C-c marion 192.168.0.122 laLoad

# snmpwalk-V2C-c marion 192.168.0.122 ifDescr

# snmpwalk-V2C-c marion 192.168.0.122 ifOperStatus

# snmpwalk-V2C-c marion 192.168.0.122 ifHCOutOctets

# snmpwalk-V2C-c marion 192.168.0.122 ifHCInOctets

6. Zabbix Web modifies the value corresponding to the macro {$SNMP_COMMUNITY}, which defaults to public:

Administration-- > General-- > Macros-- > Update

7. Zabbix Web adds the SNMP monitoring API of the node-122 node:

8. The node-122 node cancels all previously linked templates (monitoring items are in conflict), and relinks the SNMP monitoring template:

Check all the monitoring items and click "Check now":

9. View the latest monitoring data:

The above is the method of using yum to install and configure Zabbix in CentOS, and you need to use it yourself in order to understand the details. If you want to know more about it, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report