SlideShare a Scribd company logo
Zabbix for beginners
01–Installing 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 don’t 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 Zabbix’s 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 

More Related Content

Similar to 01-Zabbix4Beginners-InstallingZabbix.pdf

How to secure ubuntu 12.04
How to secure ubuntu 12.04 How to secure ubuntu 12.04
How to secure ubuntu 12.04
John Richard
 
Improving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux ConfigurationImproving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux Configuration
DataWorks Summit
 
Balázs Bucsay - XFLTReaT: Building a Tunnel
Balázs Bucsay - XFLTReaT: Building a TunnelBalázs Bucsay - XFLTReaT: Building a Tunnel
Balázs Bucsay - XFLTReaT: Building a Tunnel
hacktivity
 

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

CONFIGURING NETWORK CONNECTIVITY.pptx
CONFIGURING NETWORK CONNECTIVITY.pptxCONFIGURING NETWORK CONNECTIVITY.pptx
CONFIGURING NETWORK CONNECTIVITY.pptx
 
Os Virtualization
Os VirtualizationOs Virtualization
Os Virtualization
 
Implementation of DNS Anycast - a case study
Implementation of DNS Anycast - a case studyImplementation of DNS Anycast - a case study
Implementation of DNS Anycast - a case study
 
Using MAMP for Web Development
Using MAMP for Web DevelopmentUsing MAMP for Web Development
Using MAMP for Web Development
 
Keep calm-and-try-v6only
Keep calm-and-try-v6onlyKeep calm-and-try-v6only
Keep calm-and-try-v6only
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
 
How to secure ubuntu 12.04
How to secure ubuntu 12.04 How to secure ubuntu 12.04
How to secure ubuntu 12.04
 
dynamic host configuration protocol
dynamic host configuration protocoldynamic host configuration protocol
dynamic host configuration protocol
 
Improving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux ConfigurationImproving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux Configuration
 
Web 3, Week 1: Amazon Web Services for Beginners
Web 3, Week 1: Amazon Web Services for BeginnersWeb 3, Week 1: Amazon Web Services for Beginners
Web 3, Week 1: Amazon Web Services for Beginners
 
Linux – routing and firewall for beginners v 1.0
Linux – routing and firewall for beginners v 1.0Linux – routing and firewall for beginners v 1.0
Linux – routing and firewall for beginners v 1.0
 
Balázs Bucsay - XFLTReaT: Building a Tunnel
Balázs Bucsay - XFLTReaT: Building a TunnelBalázs Bucsay - XFLTReaT: Building a Tunnel
Balázs Bucsay - XFLTReaT: Building a Tunnel
 
Connections install in 45 mins
Connections install in 45 minsConnections install in 45 mins
Connections install in 45 mins
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch FixMaking Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
 
Membangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverMembangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_server
 
CAv6TF Meeting - 2014-05-27 - IPv6@ VMware Integration Engineering
CAv6TF Meeting - 2014-05-27 - IPv6@ VMware Integration EngineeringCAv6TF Meeting - 2014-05-27 - IPv6@ VMware Integration Engineering
CAv6TF Meeting - 2014-05-27 - IPv6@ VMware Integration Engineering
 
Apnic IPv6 Deployment
Apnic IPv6 DeploymentApnic IPv6 Deployment
Apnic IPv6 Deployment
 
Automation in Cloud
Automation in CloudAutomation in Cloud
Automation in Cloud
 
NSBCon UK nservicebus on Azure by Yves Goeleven
NSBCon UK nservicebus on Azure by Yves GoelevenNSBCon UK nservicebus on Azure by Yves Goeleven
NSBCon UK nservicebus on Azure by Yves Goeleven
 
Linux routing and firewall for beginners
Linux   routing and firewall for beginnersLinux   routing and firewall for beginners
Linux routing and firewall for beginners
 

Recently uploaded

Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
seri bangash
 
Enterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdfEnterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdf
KaiNexus
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
creerey
 

Recently uploaded (20)

Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
 
New Product Development.kjiy7ggbfdsddggo9lo
New Product Development.kjiy7ggbfdsddggo9loNew Product Development.kjiy7ggbfdsddggo9lo
New Product Development.kjiy7ggbfdsddggo9lo
 
BeMetals Presentation_May_22_2024 .pdf
BeMetals Presentation_May_22_2024   .pdfBeMetals Presentation_May_22_2024   .pdf
BeMetals Presentation_May_22_2024 .pdf
 
Lookback Analysis
Lookback AnalysisLookback Analysis
Lookback Analysis
 
12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf
12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf
12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf
 
Equinox Gold Corporate Deck May 24th 2024
Equinox Gold Corporate Deck May 24th 2024Equinox Gold Corporate Deck May 24th 2024
Equinox Gold Corporate Deck May 24th 2024
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
 
Using Generative AI for Content Marketing
Using Generative AI for Content MarketingUsing Generative AI for Content Marketing
Using Generative AI for Content Marketing
 
Digital Transformation in PLM - WHAT and HOW - for distribution.pdf
Digital Transformation in PLM - WHAT and HOW - for distribution.pdfDigital Transformation in PLM - WHAT and HOW - for distribution.pdf
Digital Transformation in PLM - WHAT and HOW - for distribution.pdf
 
Enterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdfEnterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdf
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
 
sales plan presentation by mckinsey alum
sales plan presentation by mckinsey alumsales plan presentation by mckinsey alum
sales plan presentation by mckinsey alum
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
 
The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
 
Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...
Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...
Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
 

01-Zabbix4Beginners-InstallingZabbix.pdf

  • 1. Zabbix for beginners 01–Installing 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 don’t 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 Zabbix’s 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 