What's going on, guys? It is Bernardo and today is all about how to install Zabbix
6.0 with Debian version 11. So let's get right into that. All right. So the first thing that
we're going to do is head to zabbix.com and we are going to locate the downloads section
and you're going to pick your flavor for me for this video.
We are going to download Zabbix 6.0 lts within a Debian OS version 11.
We're going to use mysql as the database and the web server is going to be Apache.
Now within this section right here, it actually gives you the step by steps of how to install it.
I took a different route with my installation and I still got it to work.
I think when I follow the instructions on their web page, I had issues,
but this is how I did it. So I clicked on the Debian 11.3.0 amd64 and I started downloading
the file was about 400 megabytes. So once it's done you are good to go. Now I am installing
my Zabbix server into VMware ESXI so I'm going to click on create forward slash register a VM.
You're going to get the new virtual machine wizard. I'm going to create
a new virtual machine. Click next here. You're going to provide a name.
The guest OS family is going to be Linux and for the OS version it's going to be Debian GNU
Linux version 11 64 bit from here click next and you're going to select your storage.
Once you pick your storage, click next here and you're going to customize your
settings. Now this is really up to you for me. I gave it the following. I gave it 2 CPU's,
4 gigs of memory, 100 gigs of hard drive space
and at the very bottom just make sure you mount that iso and you click on Connect at Power on
right and then click next a nice little summary click finish, locate your new virtual machine,
click on it and you're going to click on the power button and it's going to launch up.
The first thing that's going to happen is it's going to want you to pick how you want the
installation to happen. So by default it is going to do graphical install. So I just hit enter here.
You're going to pick your language and just click continue
what location you're in. Once you pick that, continue your keyboard type, pick that.
All right. So it's going to start loading the additional components you need to provide a
hostname once you do that, hit continue, provide a domain name. Once you do that, continue,
you need to provide a root password. And once you confirm your root password, just hit. Continue on
that. Now you need to create a new user name or a new user account within your Debian OS.
So give it a name and continue confirm the new name and then you need to give it a
password and then confirm the password. And then once you confirm the password
just hit continue. You need to configure your clock. So once you configure your timezone,
just click next here. And for the partition disk,
I basically just went with the route of guided use entire disks and just hit continue.
I pick my partition disk which I only have one and hit continue for partitioning your disk. I left it
as a default as all files in one partition. So click continue and make sure that you highlight
finish partitioning and write changes to this and then click on continue from this option here. You
definitely want to do yes because you do want to write the changes on the disk and hit continue.
It's going to start partitioning formatting the disk, installing the base system and then it's
going to want you to install extra stuff. This is really up to you. I think I pick no from here and
I just hit continue. It's going to want you to configure your package manager. I picked United
States and I hit continue here it is then going to want you to pick the location archive mirror.
So by default it is going to pick something for you. So I left it as
whatever it picked for me. So I hit. Continue. If you have a proxy into your proxy, if not,
just leave it blank and hit. Continue here for configuring any popular contests. This is up
to you. I hit no and I hit. Continue. Now for my installation I pick XFCE.
I like that desktop environment, but it's really up to you what you're comfortable with
and hit continue. It's going to start installing the software and the next thing is installing the
grub bootloader. So hit yes on that hit continue and then you are going to select your device
hit continue here it's going to start installing the bootloader.
Once it's done, you're going to get installation is completed.
Awesome. So we got the operating system completed and it's done hit continue.
It's going to reboot and it is time for us to log in. So log into the machine.
First thing we need to do within the machine is open up terminal.
First command is we need to push out any updates and the next command is to an apt upgrade.
So apt update, apt upgrade, are the first two commands that we need to do on this machine,
once you push out all the updates and upgrade, you're able to continue. So because I'm doing
everything within a virtual environment, I did an apt install open VM Tools desktop with a parameter
of dash Y to confirm the installation. And this is going to install the VMware tools on this box.
So once that's done, I did a command and reboot and the reboot is basically just going to restart
the machine, log back in and open up terminal. The next command that we are going to do is we are
going to configure our, our IP address. I don't want to use a DHCP, I want to do a static IP.
So we need to go into this particular file which is located inside the ETC network interfaces and
we're going to use Nano as our text editor. And the first thing that we need to do is auto, but we
need to know the name of our network interface. Now to do that, open up another terminal tab
or another terminal command and we need to do the following command, IP dash, C address show.
And what we're looking for is for number two, the network card is actually name ENS192.
That's what we need. And the IP address is 119,
which is what I'm going to use. Again, it is set up as DHCP, but I want to use static.
So we're going to go back inside our text editor and we're going to enter the following.
So it's going to be Auto ENS192, which is the name of the card
interface, ENS192. And we're doing a static. We're going to do address, give it the address,
the network mask the gateway, the DNS domain and as well as your DNS name servers.
Once you do that, you're going to basically save it, exit out of it.
And I like to do a reboot command and once it reboots, we're good to
go now. I went inside my DNS server and within my DNS server I wanted to create
a A record. So within my DNS, I just basically right clicked picked on new host and for the
name I provided the name which would be vZabbix and I gave it the IP address.
Once you give the IP address, just click on add host successful, awesome click. Okay. And there
is our A record within our DNS server. Now the next thing that I did within my
environment before I did the installation was create a GPO. Now the group policy is
basically opening up a firewall port on my servers for Zabbix to retrieve information
and get those matrix like, you know, the C drive and the memory and all that stuff.
So open up your group policy manager and within here you're going to open up group policy objects
and we're going to right click on that node and click on New. We're going to provide the
following name. I'm going to call it Server, allow Zabbix and we're going to click, okay,
we're going to locate our new GPO, highlight it, right click on it,
and then pick on edit and within here we're going to go inside computer configuration
policies, window settings, security settings, Windows, firewall.
With advanced security, we're going to pick Windows Firewall with advanced security,
which is weird. I don't know why Microsoft did that. And then within here, we're going to pick
inbound rules. Now within inbound rules, we're going to right click
on that node and then pick on new rule. Now we're going to select port
and click on next. Now the port is going to be a TCP and the port number is going to be 10050.
So it's 10050. Okay, 10,050. And then click next here, we're going to allow the connection
click next. And this is really up to you. Where do you want to apply it? I think for me,
I did domain. I didn't do private or public, but it's really up to you.
And then once you do that, click next and then you're going to provide a name.
I provided the following name you could give it. Whatever you want is up to you
and then click Finish. Now once you're done, you're going to take that GPIO and you're going
to link it to a particular OU. For me, I did the servers and because I want all my servers
to have that port open and I want Zabbix to start grabbing information on those servers.
All right. So let's head back to Debian and open up your terminal. And the first command
that we're going to do is apt install wget this should be automatically installed into
your machine. If not make sure it is right here. Basically says already done. The next command that
we need to do is grab mysql package because we need to install our database for Zabbix.
So this is a command that we need to write and hit enter once it's downloaded into your
machine in the next command that we need to do is apt install and we're calling out that DEB
file. Okay. We need to, you know, install that MySQL installation package. So hit enter here.
You're going to get this. Once you get this, you're going to hit tab and hit okay.
You're going to get this. You're going to basically select where you want you're going
to hit tab again. And okay, for me, it kept on looping, but eventually you want to just go
down to okay then hit enter and then go down again and then select. Okay
again. It's weird and then just hit enter and then it disappears and then you're back here.
Once you do the installation with mysql you need to do an apt update. And once you do the
apt update, the next command is do an apt install mysql dash server hit enter there.
You want to do a Y to confirm it. So now it's time for us to enter a root password for our database.
So enter a password hit enter reenter your root password again hit enter again and for the default
authentication plug in, it's recommended to use a strong password encryption.
I think from my environment I'd use a legacy method.
So again, it's really up to you how you want to do it within your environment. But for me,
I picked a legacy method and it worked out with no problem. Once you pick your option,
it's going to take you back to the terminal and it's going to give you a progress bar.
Once everything is completed, you're good to go. If you want to check your mysql status,
you're going to run the following command, hit enter and it should say
active and running, which is a good thing. We need to log into mysql and
start creating our database. So we're going to run the following command
and we're going to hit enter into your root password and it's going to give you this.
It should take you this, right? If you enter the correct password. So the first command that we
need to do is we're going to create our Zabbix database with the following character set. Make
sure you have these character sets on this particular database. Now, this information,
you can actually get it within the Zabbix you know website, hit enter completed the next
command is we are going to create a user and we're going to identify the password for that user.
So this is a user and this is basically what Zabbix recommended on their site, but you're able
to change it for your environment. Hit enter here and the next command is we need to grant access
to that database, to that new user that we created. So this is the command that we're going
to run and just hit enter and then we're going to do another command of quit to get out of it.
Now we need to pull the Zabbix installation package. So this is the URL that we need to use
using the wget command. Now again, this information you can actually get it from
the Zabbix website. Okay. So I just did a copy and paste the URL that they provided.
Hit enter, it started downloading the installation package and once it was done,
I did the following command of DPKG with a parameter of dash I.
And I called out that package. Once you do that, hit enter and the next command that we need to do
is apt update. Once you do the apt update, now you're able to install Zabbix within your machine
using the particular parameters. All right. So you're going to do apt install Zabbix Server,
mysql you're going to install the front end with PHP, you're going to do the Apache.
You're also going to download a couple of scripts for the database for Zabbix
and you're also going to download the Zabbix agent. So once you enter all this information,
just hit enter. You're going to enter Y for yes and just hit enter. And once that's done,
the next command that we need to do is the following. Again, you're going
to be calling out a SQL script to make some modifications within your Zabbix's database.
So you're going to pipe it to your Zabbix database. So you're going to do a parameter
of dash U, U is basically the username which is Zabbix the parameter. Dash P is not the password,
which is weird. Parameter P is the database. So you're calling the database when you hit
enter, then you're going to enter the password for the user.
Okay. Now this password is the one that you identified within your mysql So whatever you
gave the Zabbix user account, that password for that account is what you're entering here. Okay?
Once you hit enter, you won't get a progress bar, so don't freak out. Eventually you're going to get
a command prompt. Once you get the command prompt, that means it's done and we are able to continue.
So the next command is we need to actually get inside the Zabbix underscore
server config file and within here you need to basically make sure a couple of things
are right. And the first thing is make sure that the DB name is correct,
make sure that the DB user is correct, and also make sure that the DB password is set correctly.
If not, the next steps won't work at all. Now we need to restart the Zabbix server as well as
the agent and we're going to run the following command and we're going to hit enter and then
we're going to run the next command, which will allow us to enable Zabbix Server and
the agent to automatically restart if the server restarts because of updates or you restart it.
Okay. So that's the next command that we're going to run and we're going to hit enter from there.
Now once you hit enter, you restart your machine, make sure everything is up and running you're
going to open up your favorite browser. Within Debian, there's only Firefox, so open up Firefox
and we're going to type in local hosts with a forward slash of Zabbix and hit enter.
You're going to get this a nice welcome to Zabbix 6.0. We're going to click on Next
Step. And from here, make sure everything is stated okay. If you have any issues, fix it.
If not, if you got all okay and everything is green, click on Next Step and it is time
for us to configure DB Connection. The only thing that you need to provide is
the password so enter the password and just click on next and everything should work.
If you have a successful connection, it should take you to this right here
to settings within settings provide a server name
and your time zone and your theme. I like the dark theme which looks pretty cool and creepy,
so click on next here a nice pre installation summary and just click next here and
congratulation. You have successfully installed Zabbix front end and so just click finish.
When you click Finish, it's going to take you to the portal. The username and password is
admin. Make sure it's a capital A is case sensitive crazy and the password is zabbix
and just click on sign in and it should take you here. You should have one host
which is your Zabbix because automatically your Zabbix server is being monitored within Zabbix
And finally I went to another machine and I wanted to test
out the full qualified domain. So I basically type in vZabbix.btnhd.edu
forward slash Zabbix forward slash index dot PHP hit enter. It takes you here
and you're good to go. Basically that tells me my DNS is working with no problem and rather than
typing the IP address of the server, I'm able to type in the name of the server, which is awesome.
And that's it hopefully you guys enjoy this video and I catch you guys on the next one peace out.