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

Steps for CentOS 7.7 yum installation and configuration of Zabbix 4.0 LTS

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the "CentOS 7.7 yum installation and configuration of Zabbix 4.0 LTS steps" related knowledge, in the actual case of the operation process, many people will encounter such a dilemma, then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Custom monitoring template:

Monitoring items can be added quickly by using templates, and templates can be imported and exported

1. Use basic commands to monitor 11 states of node-122 node TCP:

ESTABLISHED

SYN_SENT

SYN_RCVD

FIN_WAIT1

FIN_WAIT2

TIME_WAIT

CLOSED

CLOSE_WAIT

LAST_ACK

LISTEN

CLOSING

# netstat-ant

# netstat-ant | grep "ESTABLISHED"

# netstat-ant | grep-c "ESTABLISHED"

2. Create a configuration file:

# vim / etc/zabbix/zabbix_agentd.d/tcp_status.conf

UserParameter=tcp.status [*], netstat-ant | grep-c "$1"

# systemctl restart zabbix-agent.service

3. Zabbix-server node test value:

# zabbix_get-s 192.168.0.122-k tcp.status [ESTABLISHED]

# zabbix_get-s 192.168.0.122-k tcp.status [LISTEN]

# zabbix_get-s 192.168.0.122-k tcp.status [time _ WAIT]

4. Create a new template:

Configuration-- > Templates-- > Create template-- > Add

5. Template creation application set:

6. Template creation monitoring items:

The same cloning Item,Key is tcp.status [syn _ SENT], tcp.status [syn _ RCVD], tcp.status [fin _ WAIT1], tcp.status [fin _ WAIT2], tcp.status [time _ WAIT], tcp.status [CLOSED], tcp.status [close _ WAIT], tcp.status [last _ ACK], tcp.status [LISTEN], tcp.status [CLOSING]

Note: you can also copy the monitoring items of other hosts to the new custom template

7. Node-122 node links the new custom template:

8. View the latest monitoring data: Monitoring-- > Latest data

9. Import and export of templates:

(1) Import:

(2) Export:

Note: the exported template is a xml file, which needs to be used together with / etc/zabbix/zabbix_agentd.d/*.conf configuration file (need to restart Zabbix Agent) and / scripts/*.sh script file. The template must be linked to the monitored node to take effect.

10. Get more monitoring templates:

This is the end of the "steps for CentOS 7.7 yum installation and configuration of Zabbix 4.0 LTS". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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