Difference between revisions of "Installing Zabbix on CentOS 7"
From rdkwiki
(Created page with "== Intro == The steps below will configure a working Zabbix server. The steps assume that you have a (fresh) CentOS 7 server running. == MySQL installation == You can find ho...") |
|||
Line 14: | Line 14: | ||
== install Zabbix Agent == | == install Zabbix Agent == | ||
* '''sudo yum install zabbix-agent''' --> install Zabbix-agent | * '''sudo yum install zabbix-agent''' --> install Zabbix-agent | ||
+ | * '''sudo nano /etc/zabbix/zabbix_agentd.conf''' --> change "Server", "ServerActive" and "Hostname" | ||
+ | * '''sudo systemctl start zabbix-agent''' --> start the Zabbix Agent | ||
+ | * '''sudo systemctl enable zabbix-agent''' --> auto-start the Zabbix Agent at system startup | ||
+ | |||
+ | == Change httpd settings == | ||
+ | * '''sudo nano /etc/httpd/conf.d/zabbix.conf''' --> change "Require all granted" into allowed IP's: "Require ip 127.0.0.1 10.0.0.0/24" (for example) and change timezone "php_value date.timezone Asia/Amsterdam" | ||
+ | * '''sudo systemctl restart httpd''' --> restart webserver |
Revision as of 17:04, 4 February 2017
Contents
Intro
The steps below will configure a working Zabbix server. The steps assume that you have a (fresh) CentOS 7 server running.
MySQL installation
You can find how to install the MySQL database-server here: installing MySQL
install Zabbix Server
- sudo yum -y install http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm --> install rpm
- sudo yum install zabbix-get zabbix-server-mysql zabbix-web-mysql --> install Zabbix-server
- sudo nano /etc/zabbix/zabbix_server.conf --> change DBHost, DBUser and DBPassword
- sudo systemctl start zabbix-server --> start the Zabbix Server
- sudo systemctl enable zabbix-server --> auto-start the Zabbix Server at system startup
install Zabbix Agent
- sudo yum install zabbix-agent --> install Zabbix-agent
- sudo nano /etc/zabbix/zabbix_agentd.conf --> change "Server", "ServerActive" and "Hostname"
- sudo systemctl start zabbix-agent --> start the Zabbix Agent
- sudo systemctl enable zabbix-agent --> auto-start the Zabbix Agent at system startup
Change httpd settings
- sudo nano /etc/httpd/conf.d/zabbix.conf --> change "Require all granted" into allowed IP's: "Require ip 127.0.0.1 10.0.0.0/24" (for example) and change timezone "php_value date.timezone Asia/Amsterdam"
- sudo systemctl restart httpd --> restart webserver