Environment introduction
OS: Ubuntu 10.10 Server 64-bit
Servers:
zabbix-server:10.6.1.181 zabbix
-client-1:10.6.1.182
1. Environment deployment
In the previous chapter, we have built a minimal environment, that is, a server and an agent; but this is just the beginning. We want to use Zabbix to monitor the server resources according to our own needs, and then Drawing, alarming, and a series of configurations are required.
In this chapter, we will complete the following tasks to familiarize ourselves with the custom configuration of Zabbix:
1. Monitor CPU, memory, swap partition, disk space, network IO and other system information through the built-in method of Zabbix;
2. Set Trigger , specify the threshold value of each monitoring item;
3. Customize the drawing format and color of each monitoring item;
4. Install Nginx on the agent;
5. Configure custom templates and methods for monitoring Nginx process status;
6. Configure HTTP Check
7. Configure email alarms and simulate failures ;
2. Configuration step
2.1 Configure the Agent and create the Host, so that the Server and the Agent can be connected
View Agent hostname
ubuntu@zabbix-client-1:~$ hostname
zabbix-client-1
Configure the corresponding options
ubuntu@zabbix-client-1:~$ sudo vim /usr/local/etc/zabbix_agentd.conf
Server=10.6.1.181 ServerActive=10.6.1.181 Hostname=zabbix-client-1
重启Agent
ubuntu@zabbix-client-1:~$ sudo /etc/init.d/zabbix-agent restart
Stopping Zabbix agent daemon: zabbix_agentd Starting Zabbix agent daemon: zabbix_agentd
Create a Host in the WEB interface