Installing Zabbix on CentOS/RedHat- Part2


Installing the Web frontend

We have Zabbix Server and Agent installed and running on our server, we can control the them with services and they startup each time the machine boots into runlevel 3 or 5 but we still don’t have our Web frontend.

This is where Apache and PHP come into play. We will need to install some extra php packages for full functionality

[root@server]# yum install php-mysql php-gd php-bcmath php-mbstring php-xml

Once installed its time to copy the web files to the correct folder, with CentOS and Apache this would be /var/www/html/.

[root@server]# cp -r frontends/php/ /var/www/html/

To make the page accessable through http://localhost/zabbix we will have to to rename the folder to zabbix.

[root@server]#  mv /var/www/html/php/ /var/www/html/zabbix

Now you should now be able to access the Web frontend trough http://localhost/zabbix

If you encounter problems try checking if the httpd service is running. If it worked you should see the Welcome screen from Zabbix

zabbix1

Don’t worry if you get a timezone warning in the upper lines . Read the Text and continue with the Next » button.

zabbix2

Agree to the GNU v2 Licence and carry on.

zabbix3

Most Likely Zabbix won’t agree with all of your settings and will tell you to change them to the requiered settings. In my case these are all php related problems. Open php.ini with your favourite editor

[root@server~]# vim /etc/php.ini

and change following:

max_execution_time = 600

memory_limit = 256M

post_max_size = 32M

date.timezone = Europe/Zurich

mbstring.func_overload = 2

If you hover with your mouse over the FAIL sign it should describe the problem. If you encounter any extra problems you should be able to find thse problems out with the web. Than after a restart of httpd it should all be OK

[root@server~]# service httpd restart

zabbix4

Fill in the Information as above and use the password you gave zabbix when you configured
your DB. You can test the connection with the button Test connection.

zabbix5

Leave the Information as it is and continue the Setup

zabbix6

It will summarize your Installation, continue the setup.

zabbix7

Most likely saving your config file won’t work, instead of changing the permissions we will download the file locally to the specified path. If your not on the server you can either copy the file through ssh if your using Linux or through winscp if your using Windows.

zabbix8

 

About Manish Jha

Manish is currently working as Staff Solutions Engineer at VMware. I have 12 years of experience in handling Datacenter & Cloud technologies including VMware vSphere, VMware Cloud Director, VMware NSX,vSphere Replication & VMware HCX. For my contribution towards community, I have been felicitated with following awards: vExpert: 2014-2023 vExpert NSX: 2012-2020, vExpert Cloud: 2017-2021 vExpert HCX: 2018-2022 vExpert Pro: 2020-23 I blog at www.vstellar.com If you find any post informational to you please press like and share it across social media and leave your comments if you want to discuss further on any post.
This entry was posted in Monitoring. Bookmark the permalink.

Leave a comment