{"_widget":{"name":"switcher","data":{"nav":"dotnav","thumbnail_width":"70","thumbnail_height":"70","thumbnail_alt":false,"position":"top","alignment":"left","width":"1-4","panel":true,"animation":"slide-left","media":true,"image_width":"auto","image_height":"auto","media_align":"last","media_width":"1-2","media_breakpoint":"m","content_align":true,"media_border":"none","media_overlay":"none","overlay_animation":"fade","media_animation":"scale-up","title":true,"content":true,"social_buttons":true,"title_size":"h2","text_align":"left","link":true,"link_style":"primary-large","link_text":"Read more","link_target":true,"class":""}},"items":[{"title":"Step 1 - Install Ubuntu","media":"wp-content\/uploads\/2017\/03\/setupLinux1.png","width":1198,"height":901,"options":{"media":{"width":1198,"height":901,"type":"image"},"media2":{"width":1053,"height":941,"type":"image"}},"lightbox_content":"","content":"<p>There are endless guides on how to get\u00a0Ubuntu up and running so feel free to have a Google before continuing.<\/p>\n<p>Please note:<\/p>\n<ul>\n<li>Give the server a sensible hostname (perhaps zabbix)<\/li>\n<li>Remember to pick your keyboard language (we went with GB)<\/li>\n<li>Create a user on the server (we went with selectecadmin)<\/li>\n<li>Choose standard system utilities during the software selection screen, you can also install <a href=\"https:\/\/help.ubuntu.com\/lts\/serverguide\/openssh-server.html\" target=\"_blank\">OpenSSH server<\/a> if you wish to remotely manage the machine<\/li>\n<\/ul>\n<p>We have installed this on a virtual machine for convenience, but any hardware capable of running <a href=\"https:\/\/wiki.ubuntu.com\/XenialXerus\/ReleaseNotes?_ga=1.111292801.423177782.1489426861\" target=\"_blank\">Ubuntu<\/a> will do.\u00a0<\/p>","media2":""},{"title":"Step 2 - Update the OS","media":"wp-content\/uploads\/2017\/03\/setupLinux23.png","width":703,"height":663,"lightbox_content":"","options":{"media":{"width":703,"height":663,"type":"image"},"media2":[]},"content":"<p>It is good practice to update Ubuntu to the latest version, updates are downloaded directly from the internet.\u00a0<br \/><br \/>To update you need to run two commands, first login to Ubuntu as the user you created during setup and run the following two commands:<\/p>\n<p><strong>sudo apt-get update<\/strong> and then <strong>sudo apt-get upgrade<\/strong><\/p>\n<p>Ubuntu will require your password to execute the commands. Please type one command at a time and when finished Ubuntu will be up to date.<\/p>"},{"title":"Step 3 - LAMP install","media":"wp-content\/uploads\/2017\/03\/setupLinux24.png","width":699,"height":696,"lightbox_content":"","options":{"media":{"width":699,"height":696,"type":"image"}},"content":"<p>Next we need to install the <a href=\"https:\/\/en.wikipedia.org\/wiki\/LAMP_(software_bundle)\" target=\"_blank\">LAMP<\/a> services you can do this by running the following command<br \/><strong>sudo tasksel install lamp-server<\/strong><\/p>\n<p>You will need the password you created earlier to start the install process.<\/p>\n<p>\u00a0<\/p>"},{"title":"Step 4 - Database creation","media":"wp-content\/uploads\/2017\/03\/setupLinux25.png","width":1195,"height":897,"options":{"media":{"width":1195,"height":897,"type":"image"}},"lightbox_content":"","content":"<p>As you can see, LAMP installs the web services needed to run Zabbix this includes Apache, PHP and MySQL<br \/><br \/>When lamp is being installed you may be asked to create a MySQL database. Please follow the on screen instructions, these will guide you through the the process step by step.<\/p>"},{"title":"Step 5 - Start the Zabbix install","media":"wp-content\/uploads\/2017\/03\/setupLinux27.png","width":1246,"height":670,"lightbox_content":"","options":{"media":{"width":1246,"height":670,"type":"image"}},"content":"<p>Now we are getting somewhere, we have Ubuntu and the pre-requisites installed.<\/p>\n<p>Next we need to install Zabbix, to do this from the terminal window, start by typing:<br \/><strong>sudo wget http:\/\/repo.zabbix.com\/zabbix\/3.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_3.0-2+xenial_all.deb<\/strong><\/p>\n<p>Now, package the install<br \/><strong>sudo dpkg -i zabbix-release_3.0-2+xenial_all.deb<\/strong><\/p>\n<p>Make sure any updates for Zabbix are downloaded<br \/><strong>sudo apt-get update<\/strong><\/p>\n<p>Next install Zabbix and the other tools needed for it to run successfully by running:<br \/><strong>sudo apt-get install zabbix-server-mysql zabbix-frontend-php php-bcmath php-mbstring php-xmlwriter php-xmlreader<\/strong><\/p>"},{"title":"Step 6 - Create the Zabbix Database","media":"wp-content\/uploads\/2017\/03\/setupLinux28.png","width":673,"height":373,"lightbox_content":"","options":{"media":{"width":673,"height":373,"type":"image"},"media2":[]},"content":"<p>Now create a MySQL user and password and set up MySQL to run Zabbix.<br \/><br \/>Firstly type the below commands to create the database and character set<br \/><strong>mysql -u root -p<br \/>create database zabbix character set utf8 collate utf8_bin;<\/strong><\/p>\n<p>Now, grant the user correct permissions to access the database.<br \/><br \/><strong>grant all privileges on zabbix.* to zabbix@localhost identified by 'EnterAPasswordHere';<\/strong><br \/><br \/>Once done, exit the MySQL application and save any changes.<\/p>\n<p>Next install the Zabbix schema, to do this type via the terminal window type:<br \/><br \/><strong>cd \/usr\/share\/doc\/zabbix-server-mysql<\/strong><br \/><strong>zcat create.sql.gz | mysql -u zabbix -p zabbix<\/strong><\/p>"},{"title":"Step 7 - Edit Zabbix conf file","media":"wp-content\/uploads\/2017\/03\/setupLinux29.png","width":1079,"height":600,"lightbox_content":"","options":{"media":{"width":1079,"height":600,"type":"image"},"media2":[]},"content":"<p>Next we need to edit\u00a0the server configuration file so it has the database password for the database we setup earlier.<\/p>\n<p>Run this command which will open the file.<\/p>\n<p><strong>Sudo nano\u00a0\/etc\/zabbix\/zabbix_server.conf<\/strong><\/p>\n<p>Look for the line that reads DBPassword and enter the password you setup for the database. Save your settings and close this file. If you prefer, you can use nano instead of VI which maybe easier for users new to Linux.<\/p>\n<p>Save the file by pressing\u00a0ctrl+x and you will be prompted to save the file.<\/p>\n<p>While you are here\u00a0make sure Zabbix is using the correct language, from a terminal window type:<\/p>\n<p><strong>sudo nano \/etc\/zabbix\/apache.conf<br \/><\/strong><br \/>There should be 2 lines near the top that mention date.timezone, make sure these are unhashed and labeled as the timezone you are in, \u00a0save this file and exit this application.<\/p>\n<p>Then type:<\/p>\n<p><strong>service apache2 reload<\/strong><\/p>\n<p><strong>service zabbix-server restart<\/strong><\/p>"},{"title":"Step 8 - Finish Zabbix install","media":"wp-content\/uploads\/2017\/03\/setupLinux30.png","width":857,"height":618,"lightbox_content":"","options":{"media":{"width":857,"height":618,"type":"image"}},"content":"<p>We now need to login to the web interface of \u00a0Zabbix and finish\u00a0the setup process, to do this navigate to:<\/p>\n<p>http:\/\/*host or IP address of server*\/zabbix<br \/>Login with the default details below<br \/>Default User: Admin<br \/>Default Pass: zabbix<\/p>\n<p>Follow the Zabbix installer options until finished.<\/p>\n<p>Click the read more link for information on how to setup Zabbix with PaperCut, this will allow you to monitor the health of PaperCut servers via the Zabbix UI.<\/p>","link":"https:\/\/www.papercut.com\/kb\/Main\/SimpleMonitorZabbix"}],"_fields":[{"name":"media2","type":"media","label":"Media 2","core":true},{"type":"editor","name":"lightbox_content","label":"Lightbox Content"}],"parse_shortcodes":1,"random":0}