際際滷

際際滷Share a Scribd company logo
Zabbix for beginners
01Installing Zabbix
Alireza Rezvani
www.cbt4all.com (Free video trainings and tutorials)
Auckland, New Zealand
Review
 Last video:
 00-Introduction
 What we do in this series and who is this series for?
 Explained our practical scenario for this series
 There are three ways of getting Zabbix
This video
 Install Zabbix Server
 SSH, SNMP, SMTP
 Login to Zabbix for the first time
Installing Zabbix  Review Scenario
 Monitor Routers interfaces, RAM and
CPU by SNMP
 If the bandwidth is less than my
expectation, if the link is down, if.,
Zabbix should send an alert email
 Create graph of bandwidth usage,
RAM usage, CPU usage, etc.
 Monitor Windows Servers and Linux Server by SNMP
 Monitor Windows Servers and Linux Server by Zabbix Agent
Installing Zabbix  Scenario and Solution
1. Create a Virtual Machine for Zabbix
2. Install Ubuntu Server
 SMTP: Simple Mail Transfer Protocol
 Zabbix should send an alert email
 SSH: Secure Shell
 Makes configuring easy
3. Verify the IP Address
4. Connect to Zabbix by Putty
5. Change the IP Address, if needed
6. Install SNMP (Simple Network Monitoring Protocol)
 Monitor Routers and Servers by SNMP
7. Update/Upgrade Ubuntu Server
Installing Zabbix  Install Ubuntu
 Steps:
1. Create a Virtual Machine for Zabbix
 I consider 2GB for RAM, 20GB for HDD
 https://www.zabbix.com/documentation/2.4/manual/installation/requirements
 NIC should be bridged to interface which you are connected to Internet through it
 Connect the NIC to GNS3 lab
Installing Zabbix  Install Ubuntu
2. Install Ubuntu Server
 Hostname: ZabbixSrv
 Domain: Your domain, here I put cbt4all.com
 Full name: Your name, here I put Alireza
 Username: Select an Username, here I put cbt4all
 Password: Choose a password, here I choose cbt4all. But as cbt4all is a weak password, Ubuntu warns
me. I choose YES but you would better choose strong password.
 I do not need encrypted home directory, so I choose NO here.
 Choose your time zone. As I live in New Zealand, I choose Pacific
 I prefer to let Ubuntu create partitions for me, so I choose default and confirm it by choosing YES
 I dont use proxy, so I leave it blank
 Although updating always is a good idea, so I choose Not Automatic Update
 Install Open SSH Server and Mail Server
 Select Internet Site
 ZabbixSrv.cbt4all.com sounds nice. Do not worry, it is just a name!
 Choose YES for creating encryption for SSH, and locahost is good but you can change if you like
 Choose YES for installing GLB
Installing Zabbix  Install Ubuntu, con.
3. Verify the IPAddress for ZabbixSrv by ifconfig command
 IP Address: 192.168.1.200, Subnet Mask: 255.255.255.0, Gateway: 192.168.1.254
 DNS Server: 192.168.1.254
4. Connect to Zabbix by Putty and SSH
5. If you want to change the IP Address, use VI Editor
 sudo vi /etc/network/interfaces
 auto eth0
 iface eth0 inet static
 address 192.168.1.200
 netmask 255.255.255.0
 gateway 192.168.1.254
 sudo vi /etc/resolv.conf
 nameserver 192.168.1.254
 sudo ifup eth0
 sudo ifdown eth0
 sudo /etc/init.d/networking restart
 Help for Ubuntu IP setting: https://help.ubuntu.com/10.04/serverguide/network-configuration.html
 Help for VI Editor: http://www.cs.rit.edu/~cslab/vi.html
 i (to insert), x (to delete), Arrow keys, Esc key (to exit from current mode), : (to go to command mode), q! (to quit
without save), wq (save and exit)
Installing Zabbix  Install Ubuntu, con.
6. Install SNMP
 sudo apt-get install libsnmp-mib-compiler-perl
 sudo apt-get install snmp-mibs-downloader
 sudo apt-get install libsnmp-base
 sudo apt-get install libsnmp-dev
 sudo apt-get install snmp
 sudo apt-get install snmpd
7. Update/Upgrade Ubuntu Server
 sudo apt-get update
 sudo apt-get dist-upgrade
Installing Zabbix  Install Ubuntu, con.
 IF you forgot to install Open SSH
Server and Mail Server during
installing Ubuntu Server, you can
use these to install them:
 Installing Open SSH Server
 sudo apt-get install openssh-server
 sudo cp /etc/ssh/sshd_config
/etc/ssh/sshd_config.original
 sudo chmod a-w
/etc/ssh/sshd_config.origina
 Installing Mail Server
 sudo apt-get -y install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules
 sudo dpkg-reconfigure postfix
Installing Zabbix
1. Installing repository configuration package and Zabbix :
 sudo wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-
1+trusty_all.deb
 sudo dpkg -i zabbix-release_2.4-1+trusty_all.deb
 sudo apt-get update
 sudo apt-get install zabbix-agent zabbix-server-mysql zabbix-frontend-php snmpd php5-mysql php5-curl
2. Configure MySQL
 Choose a password for MySQL. I choose cbt4all
 Select YES to configure MySQL for Zabbix
 Choose a password for Administrator for database in MySQL. I choose cbt4all again!
3. Configuring the config file
 sudo vi /etc/apache2/conf-enabled/zabbix.conf
 Remove # from time zone and add your time zone. As I am in New Zealand, my time zone is Pacific/Auckland
 Find your time zone here: http://php.net/manual/en/timezones.php
4. Restart the Appache Service
 sudo service apache2 restart
Installing Zabbix- Welcome Wizard
1. Use browser to use Zabbix.
 The address you should use is http://192.168.1.200/zabbix/ which 192.168.1.200 is
the Zabbixs IP Address. If you have chosen another IP Address for your Zabbix
Server, use that one.
 Click on Next
2. You have to test connection between Zabbix and MySQL.
 You need to insert the password you chose before. I had chosen cbt4all
 Click on Test Connection
 Click on Next
3. Login to Zabbix
 Default Username is Admin (A in Admin must be capital)
 Default Password is zabbix
Welcome to Zabbix
 Welcome to Zabbix. In next video I will show you how you can
configure the Zabbix.
Time out
 I would welcome the opportunity to have your idea and feedback at
my blog, www.cbt4all.com
Thanks
Ad

Recommended

An Express Guide ~ Zabbix for IT Monitoring
An Express Guide ~ Zabbix for IT Monitoring
Abhishek Kumar
Zabbix tutorial
Zabbix tutorial
Fu-Ming Tsai
Zabbix 3.0 and beyond - FISL 2015
Zabbix 3.0 and beyond - FISL 2015
Zabbix
Zabbix visi坦n general del sistema - 04.12.2013
Zabbix visi坦n general del sistema - 04.12.2013
Emmanuel Arias
OSMC 2017 | How is Zabbix doing an outside look by Rihards Olups
OSMC 2017 | How is Zabbix doing an outside look by Rihards Olups
NETWAYS
Alexei vladishev - Open Source Monitoring With Zabbix
Alexei vladishev - Open Source Monitoring With Zabbix
Andr辿 D辿o
Don't Get Hacked on Hostile WiFi
Don't Get Hacked on Hostile WiFi
Mackenzie Morgan
ChinaNetCloud - Using Zabbix Monitoring at Scale - Zabbix Conference 2014
ChinaNetCloud - Using Zabbix Monitoring at Scale - Zabbix Conference 2014
ChinaNetCloud
Lukas Macura - Employing Zabbix to monitor OpenWrt (Beesip) devices with Uciprov
Lukas Macura - Employing Zabbix to monitor OpenWrt (Beesip) devices with Uciprov
Zabbix
Linux routing and firewall for beginners
Linux routing and firewall for beginners
n|u - The Open Security Community
Creating_scheduled_reports_with_Zabbix.pdf
Creating_scheduled_reports_with_Zabbix.pdf
ITDispendik
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Chanaka Lasantha
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
Lamp Server With Drupal Installation
Lamp Server With Drupal Installation
franbow
Linux routing and firewall for beginners v 1.0
Linux routing and firewall for beginners v 1.0
Sriram Narayanan
Webmaster's Report - IEEE Microwave Theory and Techniques Society
Webmaster's Report - IEEE Microwave Theory and Techniques Society
webhostingguy
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
SANTIAGO HERNNDEZ
Zimbra set up
Zimbra set up
Gamindu Udayanga
Section 3 topics-Linux Servers Book.pdf
Section 3 topics-Linux Servers Book.pdf
MuhammadFaizan377959
Linux in Business - Workstation Integration
Linux in Business - Workstation Integration
RichBos
Beyond the WordPress 5 minute Install
Beyond the WordPress 5 minute Install
Steve Taylor
for your Linux Server
for your Linux Server
webhostingguy
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
JohnWilson47710
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap
Geek Guide - Shared Hosting
Geek Guide - Shared Hosting
webhostingguy
Zabbix 101 - Enterprise Monitoring doesn't have to suck
Zabbix 101 - Enterprise Monitoring doesn't have to suck
Jamie Duncan
Alexander Naydenko - Nagios to Zabbix Migration | ZabConf2016
Alexander Naydenko - Nagios to Zabbix Migration | ZabConf2016
Zabbix
Wireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devices
Aidan Venn MSc
晦粥喝閣滴-掛顎但稼-堰畉n鞄.沿糸韓温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温
晦粥喝閣滴-掛顎但稼-堰畉n鞄.沿糸韓温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温
NM Consulting, LLC
際際滷 huong dan bao dam an toan va bao mat he thong thong tin.pptx_2022082605...
際際滷 huong dan bao dam an toan va bao mat he thong thong tin.pptx_2022082605...
NM Consulting, LLC

More Related Content

Similar to 01-Zabbix4Beginners-InstallingZabbix.pdf (20)

Lukas Macura - Employing Zabbix to monitor OpenWrt (Beesip) devices with Uciprov
Lukas Macura - Employing Zabbix to monitor OpenWrt (Beesip) devices with Uciprov
Zabbix
Linux routing and firewall for beginners
Linux routing and firewall for beginners
n|u - The Open Security Community
Creating_scheduled_reports_with_Zabbix.pdf
Creating_scheduled_reports_with_Zabbix.pdf
ITDispendik
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Chanaka Lasantha
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
Lamp Server With Drupal Installation
Lamp Server With Drupal Installation
franbow
Linux routing and firewall for beginners v 1.0
Linux routing and firewall for beginners v 1.0
Sriram Narayanan
Webmaster's Report - IEEE Microwave Theory and Techniques Society
Webmaster's Report - IEEE Microwave Theory and Techniques Society
webhostingguy
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
SANTIAGO HERNNDEZ
Zimbra set up
Zimbra set up
Gamindu Udayanga
Section 3 topics-Linux Servers Book.pdf
Section 3 topics-Linux Servers Book.pdf
MuhammadFaizan377959
Linux in Business - Workstation Integration
Linux in Business - Workstation Integration
RichBos
Beyond the WordPress 5 minute Install
Beyond the WordPress 5 minute Install
Steve Taylor
for your Linux Server
for your Linux Server
webhostingguy
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
JohnWilson47710
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap
Geek Guide - Shared Hosting
Geek Guide - Shared Hosting
webhostingguy
Zabbix 101 - Enterprise Monitoring doesn't have to suck
Zabbix 101 - Enterprise Monitoring doesn't have to suck
Jamie Duncan
Alexander Naydenko - Nagios to Zabbix Migration | ZabConf2016
Alexander Naydenko - Nagios to Zabbix Migration | ZabConf2016
Zabbix
Wireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devices
Aidan Venn MSc
Lukas Macura - Employing Zabbix to monitor OpenWrt (Beesip) devices with Uciprov
Lukas Macura - Employing Zabbix to monitor OpenWrt (Beesip) devices with Uciprov
Zabbix
Creating_scheduled_reports_with_Zabbix.pdf
Creating_scheduled_reports_with_Zabbix.pdf
ITDispendik
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Chanaka Lasantha
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
Lamp Server With Drupal Installation
Lamp Server With Drupal Installation
franbow
Linux routing and firewall for beginners v 1.0
Linux routing and firewall for beginners v 1.0
Sriram Narayanan
Webmaster's Report - IEEE Microwave Theory and Techniques Society
Webmaster's Report - IEEE Microwave Theory and Techniques Society
webhostingguy
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
SANTIAGO HERNNDEZ
Section 3 topics-Linux Servers Book.pdf
Section 3 topics-Linux Servers Book.pdf
MuhammadFaizan377959
Linux in Business - Workstation Integration
Linux in Business - Workstation Integration
RichBos
Beyond the WordPress 5 minute Install
Beyond the WordPress 5 minute Install
Steve Taylor
for your Linux Server
for your Linux Server
webhostingguy
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
JohnWilson47710
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap
Geek Guide - Shared Hosting
Geek Guide - Shared Hosting
webhostingguy
Zabbix 101 - Enterprise Monitoring doesn't have to suck
Zabbix 101 - Enterprise Monitoring doesn't have to suck
Jamie Duncan
Alexander Naydenko - Nagios to Zabbix Migration | ZabConf2016
Alexander Naydenko - Nagios to Zabbix Migration | ZabConf2016
Zabbix
Wireless Developing Wireless Monitoring and Control devices
Wireless Developing Wireless Monitoring and Control devices
Aidan Venn MSc

More from NM Consulting, LLC (6)

晦粥喝閣滴-掛顎但稼-堰畉n鞄.沿糸韓温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温
晦粥喝閣滴-掛顎但稼-堰畉n鞄.沿糸韓温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温
NM Consulting, LLC
際際滷 huong dan bao dam an toan va bao mat he thong thong tin.pptx_2022082605...
際際滷 huong dan bao dam an toan va bao mat he thong thong tin.pptx_2022082605...
NM Consulting, LLC
Mining_Cryptocurrency_la_gi_va_nhung_die.pdf
Mining_Cryptocurrency_la_gi_va_nhung_die.pdf
NM Consulting, LLC
Trojan.pdfdfzddddddddddddddddddddddddddddddddddddd
Trojan.pdfdfzddddddddddddddddddddddddddddddddddddd
NM Consulting, LLC
CML1020_WindowsServer2012R2FailoverCluster(ARC).pdf
CML1020_WindowsServer2012R2FailoverCluster(ARC).pdf
NM Consulting, LLC
Failover Cluster Deployment for Windows 2012 iSCSI File server.pdf
Failover Cluster Deployment for Windows 2012 iSCSI File server.pdf
NM Consulting, LLC
晦粥喝閣滴-掛顎但稼-堰畉n鞄.沿糸韓温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温
晦粥喝閣滴-掛顎但稼-堰畉n鞄.沿糸韓温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温温
NM Consulting, LLC
際際滷 huong dan bao dam an toan va bao mat he thong thong tin.pptx_2022082605...
際際滷 huong dan bao dam an toan va bao mat he thong thong tin.pptx_2022082605...
NM Consulting, LLC
Mining_Cryptocurrency_la_gi_va_nhung_die.pdf
Mining_Cryptocurrency_la_gi_va_nhung_die.pdf
NM Consulting, LLC
Trojan.pdfdfzddddddddddddddddddddddddddddddddddddd
Trojan.pdfdfzddddddddddddddddddddddddddddddddddddd
NM Consulting, LLC
CML1020_WindowsServer2012R2FailoverCluster(ARC).pdf
CML1020_WindowsServer2012R2FailoverCluster(ARC).pdf
NM Consulting, LLC
Failover Cluster Deployment for Windows 2012 iSCSI File server.pdf
Failover Cluster Deployment for Windows 2012 iSCSI File server.pdf
NM Consulting, LLC
Ad

Recently uploaded (20)

Best Practices for Creating Clear and Effective BPMN Diagrams
Best Practices for Creating Clear and Effective BPMN Diagrams
RUPAL AGARWAL
Power of the Many Masterclasses - 2nd draft .pptx
Power of the Many Masterclasses - 2nd draft .pptx
AlexBausch2
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
Power of the Many: Digital Energy Masterclass
Power of the Many: Digital Energy Masterclass
mariana491193
Recruitment Policy Sample, Recruitment Policy PDF
Recruitment Policy Sample, Recruitment Policy PDF
SeemaAgrawal43
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul
Salary_Wage_Computation_3Day_Lesson.pptx
Salary_Wage_Computation_3Day_Lesson.pptx
DaryllWhere
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
Libreria ERP
Agentic AI vs Generative AI Key Differences and Use Cases.pdf
Agentic AI vs Generative AI Key Differences and Use Cases.pdf
SoluLab1231
The APCO Geopolitical Radar Q3 2025 Edition
The APCO Geopolitical Radar Q3 2025 Edition
APCO
Paul Turovsky - A Key Contributor
Paul Turovsky - A Key Contributor
Paul Turovsky
QuickBooks Keeps Freezing: Causes & Solutions.pptx
QuickBooks Keeps Freezing: Causes & Solutions.pptx
robastwilliams
Company Profile [Popular Group of Industries]
Company Profile [Popular Group of Industries]
irtizashirazi
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul
Recovered Paper Market Size, Share & Forecast 2034
Recovered Paper Market Size, Share & Forecast 2034
Expert Market Research
Enterprise Architecture Professional Journal Vol IX June 2025.pdf
Enterprise Architecture Professional Journal Vol IX June 2025.pdf
Darryl_Carr
The Science Behind Effective Lead Nurture Programs in B2B Marketing.pptx
The Science Behind Effective Lead Nurture Programs in B2B Marketing.pptx
brandonsoros91
Easy Solar Calculator for Homeowners : ksquare energy
Easy Solar Calculator for Homeowners : ksquare energy
Ksquare Energy Pvt. Ltd.
Vaden Consultancy: Transforming Businesses with Integrated HR, IT, and Cloud ...
Vaden Consultancy: Transforming Businesses with Integrated HR, IT, and Cloud ...
Vaden Consultancy
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
Best Practices for Creating Clear and Effective BPMN Diagrams
Best Practices for Creating Clear and Effective BPMN Diagrams
RUPAL AGARWAL
Power of the Many Masterclasses - 2nd draft .pptx
Power of the Many Masterclasses - 2nd draft .pptx
AlexBausch2
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
Power of the Many: Digital Energy Masterclass
Power of the Many: Digital Energy Masterclass
mariana491193
Recruitment Policy Sample, Recruitment Policy PDF
Recruitment Policy Sample, Recruitment Policy PDF
SeemaAgrawal43
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul
Salary_Wage_Computation_3Day_Lesson.pptx
Salary_Wage_Computation_3Day_Lesson.pptx
DaryllWhere
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
Libreria ERP
Agentic AI vs Generative AI Key Differences and Use Cases.pdf
Agentic AI vs Generative AI Key Differences and Use Cases.pdf
SoluLab1231
The APCO Geopolitical Radar Q3 2025 Edition
The APCO Geopolitical Radar Q3 2025 Edition
APCO
Paul Turovsky - A Key Contributor
Paul Turovsky - A Key Contributor
Paul Turovsky
QuickBooks Keeps Freezing: Causes & Solutions.pptx
QuickBooks Keeps Freezing: Causes & Solutions.pptx
robastwilliams
Company Profile [Popular Group of Industries]
Company Profile [Popular Group of Industries]
irtizashirazi
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul
Recovered Paper Market Size, Share & Forecast 2034
Recovered Paper Market Size, Share & Forecast 2034
Expert Market Research
Enterprise Architecture Professional Journal Vol IX June 2025.pdf
Enterprise Architecture Professional Journal Vol IX June 2025.pdf
Darryl_Carr
The Science Behind Effective Lead Nurture Programs in B2B Marketing.pptx
The Science Behind Effective Lead Nurture Programs in B2B Marketing.pptx
brandonsoros91
Easy Solar Calculator for Homeowners : ksquare energy
Easy Solar Calculator for Homeowners : ksquare energy
Ksquare Energy Pvt. Ltd.
Vaden Consultancy: Transforming Businesses with Integrated HR, IT, and Cloud ...
Vaden Consultancy: Transforming Businesses with Integrated HR, IT, and Cloud ...
Vaden Consultancy
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
Ad

01-Zabbix4Beginners-InstallingZabbix.pdf

  • 1. Zabbix for beginners 01Installing Zabbix Alireza Rezvani www.cbt4all.com (Free video trainings and tutorials) Auckland, New Zealand
  • 2. Review Last video: 00-Introduction What we do in this series and who is this series for? Explained our practical scenario for this series There are three ways of getting Zabbix
  • 3. This video Install Zabbix Server SSH, SNMP, SMTP Login to Zabbix for the first time
  • 4. Installing Zabbix Review Scenario Monitor Routers interfaces, RAM and CPU by SNMP If the bandwidth is less than my expectation, if the link is down, if., Zabbix should send an alert email Create graph of bandwidth usage, RAM usage, CPU usage, etc. Monitor Windows Servers and Linux Server by SNMP Monitor Windows Servers and Linux Server by Zabbix Agent
  • 5. Installing Zabbix Scenario and Solution 1. Create a Virtual Machine for Zabbix 2. Install Ubuntu Server SMTP: Simple Mail Transfer Protocol Zabbix should send an alert email SSH: Secure Shell Makes configuring easy 3. Verify the IP Address 4. Connect to Zabbix by Putty 5. Change the IP Address, if needed 6. Install SNMP (Simple Network Monitoring Protocol) Monitor Routers and Servers by SNMP 7. Update/Upgrade Ubuntu Server
  • 6. Installing Zabbix Install Ubuntu Steps: 1. Create a Virtual Machine for Zabbix I consider 2GB for RAM, 20GB for HDD https://www.zabbix.com/documentation/2.4/manual/installation/requirements NIC should be bridged to interface which you are connected to Internet through it Connect the NIC to GNS3 lab
  • 7. Installing Zabbix Install Ubuntu 2. Install Ubuntu Server Hostname: ZabbixSrv Domain: Your domain, here I put cbt4all.com Full name: Your name, here I put Alireza Username: Select an Username, here I put cbt4all Password: Choose a password, here I choose cbt4all. But as cbt4all is a weak password, Ubuntu warns me. I choose YES but you would better choose strong password. I do not need encrypted home directory, so I choose NO here. Choose your time zone. As I live in New Zealand, I choose Pacific I prefer to let Ubuntu create partitions for me, so I choose default and confirm it by choosing YES I dont use proxy, so I leave it blank Although updating always is a good idea, so I choose Not Automatic Update Install Open SSH Server and Mail Server Select Internet Site ZabbixSrv.cbt4all.com sounds nice. Do not worry, it is just a name! Choose YES for creating encryption for SSH, and locahost is good but you can change if you like Choose YES for installing GLB
  • 8. Installing Zabbix Install Ubuntu, con. 3. Verify the IPAddress for ZabbixSrv by ifconfig command IP Address: 192.168.1.200, Subnet Mask: 255.255.255.0, Gateway: 192.168.1.254 DNS Server: 192.168.1.254 4. Connect to Zabbix by Putty and SSH 5. If you want to change the IP Address, use VI Editor sudo vi /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.200 netmask 255.255.255.0 gateway 192.168.1.254 sudo vi /etc/resolv.conf nameserver 192.168.1.254 sudo ifup eth0 sudo ifdown eth0 sudo /etc/init.d/networking restart Help for Ubuntu IP setting: https://help.ubuntu.com/10.04/serverguide/network-configuration.html Help for VI Editor: http://www.cs.rit.edu/~cslab/vi.html i (to insert), x (to delete), Arrow keys, Esc key (to exit from current mode), : (to go to command mode), q! (to quit without save), wq (save and exit)
  • 9. Installing Zabbix Install Ubuntu, con. 6. Install SNMP sudo apt-get install libsnmp-mib-compiler-perl sudo apt-get install snmp-mibs-downloader sudo apt-get install libsnmp-base sudo apt-get install libsnmp-dev sudo apt-get install snmp sudo apt-get install snmpd 7. Update/Upgrade Ubuntu Server sudo apt-get update sudo apt-get dist-upgrade
  • 10. Installing Zabbix Install Ubuntu, con. IF you forgot to install Open SSH Server and Mail Server during installing Ubuntu Server, you can use these to install them: Installing Open SSH Server sudo apt-get install openssh-server sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original sudo chmod a-w /etc/ssh/sshd_config.origina Installing Mail Server sudo apt-get -y install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules sudo dpkg-reconfigure postfix
  • 11. Installing Zabbix 1. Installing repository configuration package and Zabbix : sudo wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4- 1+trusty_all.deb sudo dpkg -i zabbix-release_2.4-1+trusty_all.deb sudo apt-get update sudo apt-get install zabbix-agent zabbix-server-mysql zabbix-frontend-php snmpd php5-mysql php5-curl 2. Configure MySQL Choose a password for MySQL. I choose cbt4all Select YES to configure MySQL for Zabbix Choose a password for Administrator for database in MySQL. I choose cbt4all again! 3. Configuring the config file sudo vi /etc/apache2/conf-enabled/zabbix.conf Remove # from time zone and add your time zone. As I am in New Zealand, my time zone is Pacific/Auckland Find your time zone here: http://php.net/manual/en/timezones.php 4. Restart the Appache Service sudo service apache2 restart
  • 12. Installing Zabbix- Welcome Wizard 1. Use browser to use Zabbix. The address you should use is http://192.168.1.200/zabbix/ which 192.168.1.200 is the Zabbixs IP Address. If you have chosen another IP Address for your Zabbix Server, use that one. Click on Next 2. You have to test connection between Zabbix and MySQL. You need to insert the password you chose before. I had chosen cbt4all Click on Test Connection Click on Next 3. Login to Zabbix Default Username is Admin (A in Admin must be capital) Default Password is zabbix
  • 13. Welcome to Zabbix Welcome to Zabbix. In next video I will show you how you can configure the Zabbix.
  • 14. Time out I would welcome the opportunity to have your idea and feedback at my blog, www.cbt4all.com Thanks