Posts

Showing posts from April, 2016

Zabbix Proxies on CentOS 7

Image
Overview A Zabbix proxy can collect performance and availability data on behalf of the Zabbix server. This way, a proxy can take on itself some of the load of collecting data and offload the Zabbix server. Also, using a proxy is the easiest way of implementing centralized and distributed monitoring, when all agents and proxies report to one Zabbix server and all data is collected centrally. A Zabbix proxy can be used to: Monitor remote locations Monitor locations having unreliable communications Offload the Zabbix server when monitoring thousands of devices Simplify the maintenance of distributed monitoring Setting up Proxy Server We will be using a separate Linux server with CentOS 7 as the base operating system with MariaDB database server installed on it that will be used as a local database for Proxy server. So in this article we assume that you already had set up your Zabbix Server. [root@localhost ~]# rpm --import http://repo.zabbix.com/RPM-GPG

Monitor MySQL using Zabbix Agent and MySQL App template

With Zabbix (tested with Zabbix 2.4 and 3.0), we can monitor the MySQL server performances using Zabbix Agent and the  Template App MySQL  included in Zabbix Server. First of all, we have to create a MySQL user account to be used to access mysql and get the  necessary  stats. Login to the client and run in command line the command above (type the MySQL root password when prompted): mysql -uroot -p -e"GRANT USAGE ON *.* TO 'zabbix'@'127.0.0.1' IDENTIFIED BY 'abc123'"; mysql -uroot -p -e"GRANT USAGE ON *.* TO 'zabbix'@'localhost' IDENTIFIED BY 'abc123'"; mysql -uroot -p -e"flush privileges" Note that the USAGE privilege specifier stands for “no privileges”, but change the ' abc123 ' password to something more secure: something like ' KJ37ae!$ ' is stronger (don't worry, we don't have to type it frequently) Test the new zabbix mysql account to make sure it works wi