
Once setup zabbix client will be able to sent data to server, You can check logs on zabbix client machine tail -f /var/log/zabbix/zabbix_agentd.log Add template, you can import the custom template attached in the link.Make sure 1000 ports are open on the client and server for communication.Under Configuration, click on Host, add the exact hostname.Login on Zabbix server URL : HTTP:///zabbix.Restart the service, systemctl restart rvice Setting up Host Configuration in Zabbix Server
Define Hostname, This value is used it uniquely identify in Zabbix server and IT SHOULD BE EXACT MATCH in Zabbix server host configuration. Define value in ServerActive, for agetn active. Define Value in Server:, Used for passive monitoring. Install the agent and enable at boot Edit Agent Config File vim /etc/zabbix/zabbix_nf Linux: AMI 2, Apache server, php 7.4 through FPM, MySQL server. Setting Up Zabbix Agent on LAMP Server Ĭonsidering the following stack of LAMP application Passive, Zabbix server will make a request to Zabbix agent to pull the data. Active: where agent sends the data automatically. Zabbix agent utilized to send the data to Zabbix server on basis of these template configurations. Item contains triggers that raise alarm on basis of the defined threshold. The template contains “items” which has a configuration for what needs to monitor. There are a prebuilt template for Linux/apache/PHP/MySQL and many more services and you can also create Create a Host configuration, just an entry with hostname and associate monitoring template. There is a Zabbix agent installed and configured on the machine which requires monitoring, called Host. There is a Zabbix server, which has a monitoring interface. You can browser this url for the front end Once setup is done and assuming port 80 is open on the zabbix server, Systemctl enable zabbix-server zabbix-agent apache2
Systemctl restart zabbix-server zabbix-agent apache2 Zcat /usr/share/doc/zabbix-server-mysql*/ | mysql -uzabbix -p zabbix
We are following exactly the same steps as mentioned on this page, except one part, where we need to install MySQL server because we are using the same machine to host zabbix database as well.ĭpkg -i zabbix-release_5.0-1+focal_all.debĪpt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agentĪpt-get install mysql-server mysql-client. Setting Up Zabbix ServerĪs mentioned, we are using, Zabbix 5.0 on ubuntu. Making Changes so that Apache access logs can be monitoredįirst of All, We need to set up a Zabbix server. Setting Up Apache configuration on LAMP server.
Setting up Host Configuration in Zabbix Server.Setting Up Zabbix Agent on LAMP Server.