扫码阅读
手机扫码阅读

企业级监控方案——zabbix!(下)

62 2024-07-21

我们非常重视原创文章,为尊重知识产权并避免潜在的版权问题,我们在此提供文章的摘要供您初步了解。如果您想要查阅更为详尽的内容,访问作者的公众号页面获取完整文章。

查看原文:企业级监控方案——zabbix!(下)
文章来源:
咸鱼运维杂谈
扫码关注公众号
Zabbix Agent Deployment Summary

Zabbix-Agent Deployment

After discussing the basics of Zabbix in a previous article and deploying the Zabbix server, this article focuses on deploying the Zabbix-agent service on two virtual machines. The components of Zabbix include the core Zabbix server, a database for storing data, Zabbix-proxy to reduce server load, Zabbix-agent on the monitored host, and a web interface for easy access to Zabbix.

1. Deployment

The deployment architecture includes a server and two agents. The Zabbix-agent is installed on agent1 (the same steps apply to agent2), with configuration files modified to include the Zabbix server's IP address. The firewall and SELinux are disabled to facilitate communication between the server and the agent.

2. Monitoring

Monitoring items are added to the web interface for agent1 and agent2. It is essential to link to a template to obtain the Zabbix agent status, with the icon indicating the status in green or red. Graphical interfaces are also created for monitoring items.

3. Custom Monitoring Items

Custom monitoring items can be defined for more personalized settings. An example is creating a custom monitoring item to track the disk I/O on agent1. A user parameter is added to the agent's configuration file, and server-side verification is performed with the zabbix-get tool.

Zabbix-Proxy Deployment

Zabbix-proxy is used to alleviate the load on the Zabbix server, especially in distributed environments where monitoring a large number of agents is required. The proxy can collect performance and availability data and report it to the server.

1. Proxy Software Installation

Zabbix-proxy and the database are installed on proxy1. The database is initialized, and tables are imported. The proxy configuration file is modified to connect to the Zabbix server.

2. Agent Configuration

The agent's configuration file is updated to communicate with the newly configured proxy. On the server's web interface, the proxy program is added, and the agent's monitoring is adjusted to reflect the proxy's use.

Conclusion

The article provided a simple Zabbix architecture deployment, demonstrating server and agent setup, active and passive monitoring methods, and the use of Zabbix-proxy to reduce server load in distributed scenarios. It also showed the installation, deployment, and monitoring configuration of Zabbix-proxy to monitor the agent.

想要了解更多内容?

查看原文:企业级监控方案——zabbix!(下)
文章来源:
咸鱼运维杂谈
扫码关注公众号