Professional Documents
Culture Documents
04
wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
Zabbix-agent listens to port 10050. You might want to confirm this using the netstat command:
Server=10.128.0.16
Here we are going to enable passive checks on the agent. First, locate the variable "Server" and "Hostname" in the
zabbix_agentd.conf file.
For example, My Zabbix server IP is 10.128.0.16 and the hostname (client system) is ubuntu-20.
Next, click on the 'Templates' tab and click the 'Select' button adjacent to the 'Link new Templates' text field.
Click on the 'Select' button next to the 'Host group' text field as shown.
As demonstrated earlier, a few changes need to be made in the agent’s configuration which is
/etc/zabbix/zabbix_agentd.conf
Server=10.128.0.10
hostname=centos-8
•Hostname
•Visible name
•IP address
•Description
Next, click on the ‘select’ button next to the ‘Groups’ text field. On the ‘Host groups’ list, click on
‘Linux servers’ and then click ‘Select’.
As you can see, the group has been added.
We also need to add a template for our server. So, click on the ‘Templates’ menu option.
On the ‘Templates’ list that appears, click on ‘Template OS Linux by Zabbix agent’ and hit the ‘Select’ button.
Zabbix Monitor Linux using SNMP
# dpkg-reconfigure tzdata
Install the Ntpdate package and set the correct date and time immediately.
# apt-get update
# apt-get install ntpdate
# ntpdate pool.ntp.br
The Ntpdate command was used to set the correct date and time using the server: pool.ntp.br
Use the command date to check the date and time configured on your Ubuntu Linux.
# date
SNMP Installation on Ubuntu
# apt-get update
# apt-get install snmpd snmp
Now, you should find the location of the snmpd.conf file on your system.
After finding, you need to edit the snmpd.conf file.
# updatedb
# locate snmpd.conf
# vi /etc/snmp/snmpd.conf
Here is the new file with our configuration.
rocommunity GokuBlack
syslocation Universe10 - IT Room
sysContact Zamasu <zamasu@dbsuper.com>;
On the dashboard screen, access the Configuration menu and select the Host option.
On the top right of the screen, click on the Create host button.
On the Host configuration screen, you will have to enter the following information:
The {$SNMP_COMMUNITY} macro value should be the Linux Computer SNMP community.
Next, we need to associate the host with a specific network monitor template.
Click on the Select button and locate the template named: Template OS LINUX SNMPv2
Open the Windows service management screen and access the SNMP service properties.
Access the Agent tab, select all the options and enter the device contact information.
Access the Security tab and select the Accept SNMP packets from any host option.
The contact person responsible for this Windows computer was configured as
Zamasu.
The location of the equipment was configured as the IT Room of Universe 10.
To test your SNMP configuration, use the following commands on a computer running Ubuntu Linux.
# apt-get install snmp
# snmpwalk -v2c -c GokuBlack 192.168.0.50
Zabbix Monitor Windows using SNMP
On the login screen, use the default username and default password.
On the dashboard screen, access the Configuration menu and select the Host option.
On the top right of the screen, click on the Create host button.
On the Host configuration screen, you will have to enter the following information:
The {$SNMP_COMMUNITY} macro value should be the Windows Computer SNMP community.
Next, we need to associate the host with a specific network monitor template.
On the login screen, use the default username and default password.
On the top right part of the screen, click on the Create application button.
On the Host applications screen, create a new application named WEBSITE.
After finishing the Application creation, access the Web scenarios tab.
On the top right part of the screen, click on the Create web scenario button.
Click on the Add button and finish the web scenario configuration.
Wait 5 minutes.
In order to test your configuration, access the Monitoring menu and click on the Latest data option.
First, we need to enable your Gmail account to receive connections from external programs.
Open your browser and access your Gmail account.
In our example, the following URL was entered in the Browser:
• http://gmail.google.com
On the login screen, enter your Gmail username and password.
• https://myaccount.google.com/lesssecureapps
# vi /etc/ssmtp/ssmtp.conf
root=virtualcoin.videos@gmail.com
mailhub=smtp.gmail.com:465
FromLineOverride=YES
AuthUser=virtualcoin.videos@gmail.com
AuthPass=kamisama123
UseTLS=YES
In our example, we are using the Gmail account virtualcoin.videos@gmail.com.
In our example, the Gmail account virtualcoin.videos@gmail.com is using the password kamisama123.
You need to change the Gmail account and password to reflect your account.
Check your Gmail inbox for the test message that you just sent.
If the test was successful you may advance to the next section of this tutorial.
• https://accounts.google.com/DisplayUnlockCaptcha
Select the option to unblock your account.
If the test was successful you may advance to the next section of this tutorial.
Zabbix Email Notification Setup
On the login screen, use the default username and default password.
On the dashboard screen, access the Administration menu and select the Media Types option.
In order to enable this action, you need to click on the word Disabled in red.
On the user profile screen, access the Media tab and add a new Email configuration.
On the dashboard screen, access the Configuration menu and select the Host option.
Access the Templates tab and add the following template.
• Template module ICMP Ping
After finishing the host configuration go back to the Zabbix dashboard initial screen and wait 5 minutes.
Switch> enable
Switch# configure terminal
Switch(config)# snmp-server community GokuBlack ro
Switch(config)# snmp-server contact Zamasu <zamasu@dbsuper.com>
Switch(config)# snmp-server location Universe10 - IT Room
Switch(config)# exit
On the Zabbix server console, use the following commands to install and test the SNMP communication.
On the login screen, use the default username and default password.
The {$SNMP_COMMUNITY} macro value should be the Cisco Switch SNMP community.
In our example, the {$SNMP_COMMUNITY} value is GokuBlack
Next, we need to associate the host with a specific network monitor template.
Click on the Select button and locate the template named: Template Net Cisco IOS SNMPv2
Click on the Add button (1).
After a few minutes, you will be able to see the initial result on the Zabbix Dashboard.
By default, Zabbix will wait 1 hour to discover the number of interfaces available on the switch.
By default, Zabbix will wait 1 hour before collect information from the Cisco Switch interfaces.