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 Alex Hunt

Hi All I am Manish Kumar Jha aka Alex Hunt. I am currently working in VMware Software India Pvt Ltd as Operations System Engineer (vCloud Air Operations). I have around 5 Years of IT experience and have exposure on VMware vSphere, vCloud Director, RHEL and modern data center technologies like Cisco UCS and Cisco Nexus 1000v and NSX. 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. Disclaimer: All the information on this website is published in good faith and for general information purpose only. I don’t make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this blog is strictly at your own risk. The Views and opinions published on this blog are my own and not the opinions of my employer or any of the vendors of the product discussed.
This entry was posted in Monitoring. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s