How do I install Zabbix server 4.0 on CentOS 7?
You want to know how to install Zabbix in an Enterprise environment? Well there are plenty of how to’s, definitely don’t use this one. Zabbix is a mature and effortless
enterprise-class open source monitoring solution for network monitoring and application monitoring of millions of metrics. Get the latest updates for your CentOS server Add Zabbix repoIn order to install Zabbix you will need to add the Zabbix repository to your system, if your are using anything other than CentOS 7 navigate to the Zabbix repository generator to get guidance on how to install it on your desired system.
Install ZabbixThe following command will install Zabbix (Server, Web frontend & agent) including some of its dependencies (MariaDB, httpd, PHP ecc. - basically the LAMP stack)
Create MariaDB user, database & import schemaIn order for Zabbix to work it needs a database so what we’re going to do next is set up a blank DB & then import the Zabbix schema/data.
Modify Zabbix confNow we need to tell the Zabbix config file the password of the earlier created MariaDB user. All you need to do is uncomment & edit the DBPassword= parameter.
Modify Zabbix Apache conf or php.iniZabbix wants you to set the a zone, you can do this by either setting it in the Zabbix apache conf file or by editing the php.ini config file.
Open firewall portsIn order to be able to connect to the Web interface you’ll need to open up some ports.
SELinuxFor the sake of simplicity I’ll set SELinux to permissive, if you want to know how to set it up with enforcing let me know in the comments, I might have a look at it.
Start & enable servicesAt this point everything should be set up, now you’ll want to launch & enable Zabbix. If you had apache installed on your system before, you want to restart it also
Configure Zabbix via the web installerYou shoul’d be ready for the final part of the set-up, navigate to your Servers IP / Hostname / FQDN. Start the installationVerify the installation checksDatabase settingsServer settingsVerify the summary and start the installationInstallation succeededLogin to your new installation, the defaults are: Admin / zabbixThe DashboardWrap upThats it, that’s all there is to it. For now at least. I’m going to publish a few more articles about Initial configuration & Windows monitoring. |