You are on page 1of 78

6.

0
Training practical tasks
DAY 1

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved
COPYRIGHT NOTICE
Rules
It is prohibited to make any video and/or audio recordings during the whole period of this course.
This course is intended only for the officially enrolled student. Subject to the Copyright Notice below, the student is not allowed to
share his credentials for attending this course, to allow others to join and take part, or otherwise make use of these Materials.

Copyright notice
© Zabbix, 2022. All rights reserved.
Unless otherwise indicated, Zabbix owns the copyright and other intellectual property rights in the text, graphics, information,
designs, data, verbal/audio/video presentations and files, comments, drawings, exam questions and exam answers, and other
training content, lab manuals and practical tasks, and training courses themselves (further – Materials).
The Materials are protected by watermarks, copyright statements, and other means. It is prohibited to remove any of watermarks
and copyright statements, or in any other way to amend or change the content or appearance of the Materials.
Any unauthorized reprint, publication, reproduction, sharing, or use of the Materials is prohibited. No part of the Materials may be
reproduced, transmitted, or published in any form or by any means, electronic or mechanical, including photocopying, recording,
or by any information storage and retrieval system without the express signed written permission from Zabbix.
All course Materials made available to the student during the course of the training may be used solely by the student enrolled in
the relevant course for personal and educational purposes only. Materials provided to the student should be treated as
confidential information shared with the student only for the purpose of the student performing Zabbix Certified training.
The student acknowledges that damages alone would not be an adequate remedy for the breach of this copyright and the student
shall be entitled to the granting of equitable relief concerning any threatened or actual breach of any of the provisions of this
Copyright notice.

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 2
Legend

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 3
IMPORTANT INFORMATION
Please do not shutdown or reboot your student virtual machine
Please do not change the root password for your student virtual machine:
All machines are accessible from the internet; someone can try to take control over them
In case it is needed, please keep it hard to brute force or guess: use mixed-case letters,
digits and special symbols
Substitute XX in Training-VM-XX with your student number:
By example: Training-VM-XX > Training-VM-03
Do not simply copy and paste the information from this handbook:
Please analyze the information provided and understand the results
If you have troubles with any task - feel free to contact the trainer

When you have completed the task, please notify the trainer in the chat window

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 4
LEGEND
A few notes about the practical slides: Important
notice
Important aspects are highlighted:
Linux virtual machine CLI (command-line interface). You need to enter the commands
specified here in your Linux SSH terminal, without the # symbol:
# systemctl enable zabbix-server --now

Text on the screen after a command execution (output may differ slightly)
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service

Linux editor screen with pointed parameters for you to change. Please change the
specified parameters to get required functionality as follows in boxes like that:
### Option: DBPassword
# Database password.
# Comment this line if no password is used.
DBPassword=P455w0RD

Information that you need to modify or enter is given in red color

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 5
Lab #1
Zabbix installation

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 30 minutes 6
PRACTICAL TASK #1
List available time zones (replace Europe with name of your location):
# timedatectl list-timezones | grep Europe

Europe/Amsterdam
Europe/Andorra
...
Europe/Prague
Europe/Riga
Europe/Riga is
Europe/Rome
provided as example
... time zone
Europe/Vienna
Europe/Vilnius

Set the time zone for operating system (please use your local time zone)
# timedatectl set-timezone Europe/Riga

Check the time zone:


# date

Mon Sep 27 11:31:14 EEST 2021

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 7
PRACTICAL TASK #1
Check if time is correct and synchronized with the global NTP server
# timedatectl status

# timedatectl status
Local time: Mon 2021-09-27 12:39:01 EEST Local time in
Universal time: Mon 2021-09-27 09:39:01 UTC your time zone
RTC time: Mon 2021-09-27 09:39:01
Time zone: Europe/Riga (EEST,NTP
+0300)
System clock synchronized: yes synchronization is
NTP service: active up and running
RTC in local TZ: no

Check SELINUX status


# getenforce

Disabled

Check firewall status


# systemctl status firewalld

Unit firewalld.service could not be found

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 8
PRACTICAL TASK #1
Install MySQL 8 database server:
# dnf -y install mysql-server

Zabbix Official Repository - x86_64 29 kB/s | 42 kB 00:01


Zabbix Official Repository non-supported - x86_64 910 B/s | 1.2 kB 00:01
Dependencies resolved.
====================================================================================================================================
Package Architecture Version Repository
Size
====================================================================================================================================
Installing:
mysql-server x86_64 8.0.26-1.module_el8.4.0+915+de215114 appstream 25 M
Installing dependencies:
libaio x86_64 0.3.112-1.el8 baseos 33 k
mariadb-connector-c-config noarch 3.1.11-2.el8_3 appstream 15 k
mecab x86_64 0.996-1.module_el8.4.0+589+11e12751.9 appstream 393 k
mysql x86_64 8.0.26-1.module_el8.4.0+915+de215114 appstream 12 M
mysql-common x86_64 8.0.26-1.module_el8.4.0+915+de215114 appstream 134 k
mysql-errmsg x86_64 8.0.26-1.module_el8.4.0+915+de215114 appstream 598 k
. . .
perl-parent-1:0.237-1.el8.noarch perl-podlators-4.11-1.el8.noarch
perl-threads-1:2.21-2.el8.x86_64 perl-threads-shared-1.58-2.el8.x86_64
Successful
protobuf-lite-3.5.0-13.el8.x86_64
installation
Complete!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 9
PRACTICAL TASK #1
Start MySQL database engine and enable autostart
# systemctl enable mysqld --now

Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service →


/usr/lib/systemd/system/mysqld.service.

Check if MySQL is running correctly:


# systemctl status mysqld

mysqld.service - MySQL 8.0 database server


Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-09-27 13:03:58 EEST; 1min 52s ago
MySQL DB engine is
Process: 4901 ExecStartPost=/usr/libexec/mysql-check-upgrade MySQL DB status=0/SUCCESS)
(code=exited, autostart
running
Process: 4775 ExecStartPre=/usr/libexec/mysql-prepare-db-dir is enabled
mysqld.service (code=exited,
status=0/SUCCESS)
Process: 4751 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
Main PID: 4855 (mysqld)
Status: "Server is operational"
Tasks: 37 (limit: 11224)
Memory: 465.9M
CGroup: /system.slice/mysqld.service
└─4855 /usr/libexec/mysqld --basedir=/usr

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 10
PRACTICAL TASK #1
Open MySQL command console:
# mysql

Welcome to the MySQL monitor. Commands end with ; or \g.


Your MySQL connection id is 8
Server version: 8.0.26 Source distribution

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its


affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' orMySQL


'\h'prompt.
for help. Type '\c' to clear the current input statement.
Enter all MySQL
commands here.
mysql>

Notice how the prompt is changed to mysql>


This means you are working in the MySQL console now

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 11
PRACTICAL TASK #1
Create the initial database for Zabbix with proper parameters:
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;

Query OK, 1 row affected, 2 warnings (0.01 sec)

Create a database user zabbix with password P455w0RD:


mysql> create user 'zabbix'@'localhost' identified by 'P455w0RD';

Query OK, 0 rows affected (0.00 sec)

Give the user zabbix access to the database zabbix from localhost:
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost';

Query OK, 0 rows affected (0.01 sec)

Exit MySQL console:


mysql> quit;

Bye
[root@student-XX ~]#

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 12
PRACTICAL TASK #1
Install the official Zabbix 6.0 repository (answer "y" to security questions if asked):
# dnf -y install https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-2.el8.noarch.rpm

Retrieving https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-2.el8.noarch.rpm
Verifying... ################################# [100%]
Installed:
zabbix-release-6.0-2.el8.noarch
Successful
Complete! installation

Install Zabbix SQL DB initialization scripts from the official repository


# dnf -y install zabbix-sql-scripts

====================================================================================================
Package Architecture Version
====================================================================================================
Installing:
zabbix-sql-scripts noarch 6.0.0-0.el8
Installed:
zabbix-sql-scripts-6.0.0.el8.noarch
Successful
Complete! installation

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 13
PRACTICAL TASK #1
Install Zabbix server database schema (provide password P455w0RD when requested):
# zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix

Enter password:
P455w0RD

[root@student-XX mysql]#

Zabbix schema import may take a few minutes and no information will be displayed on the
screen during that time. Please wait until this operation is finished.
Open MySQL console to check that schema has been imported successfully:
# mysql

Select zabbix database:


mysql> use zabbix

Database changed

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 14
PRACTICAL TASK #1
Check table count:

mysql> show tables;

+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| acknowledges |
| actions |
| alerts |
| auditlog |
| autoreg_host Number|of tables inside
... zabbix database (173 rows)
| widget_field should
| match
+----------------------------+
173 rows in set (0.01 sec)

Exit MySQL console:


mysql> quit;

Bye
[root@student-XX ~]#

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 15
PRACTICAL TASK #1
Install Zabbix server from the official repository:
# dnf -y install zabbix-server-mysql

Last metadata expiration check: 0:02:30 ago on Wed 29 Sep 2021 03:09:48 PM EEST.
Dependencies resolved.
================================================================================
Package Architecture Version
================================================================================
Installing:
zabbix-server-mysql x86_64 6.0.0.el8
Installing dependencies:
OpenIPMI-libs x86_64 2.0.29-1.el8
fping x86_64 3.16-1.el8
libtool-ltdl x86_64 2.4.6-25.el8
mariadb-connector-c x86_64 3.1.11-2.el8_3
net-snmp-libs x86_64 1:5.8-20.el8

Installed:
OpenIPMI-libs-2.0.29-1.el8.x86_64 fping-3.16-1.el8.x86_64
mariadb-connector-c-3.1.11-2.el8_3.x86_64 net-snmp-libs-1:5.8-20.el8.x86
zabbix-server-mysql-6.0.0.el8.x86_64
Successful
installation
Complete!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 16
PRACTICAL TASK #1
Set up Zabbix configuration file and specify the database-related settings there. Without
this minimum setup our Zabbix instance will not work at all.
# vi /etc/zabbix/zabbix_server.conf

### Option: DBName


DBName=zabbix Specify Zabbix
database name
### Option: DBUser
# Database user.
# Mandatory: no
# Default:
# DBUser= Specify username
DBUser=zabbix for Zabbix database

### Option: DBPassword


# Database password.
# Comment this line if no password is used.
# Mandatory: no
# Default:
# DBPassword= Specify Zabbix
DBPassword=P455w0RD user password

Don’t forget to save all changes you made inside Zabbix configuration file!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 17
PRACTICAL TASK #1
Enable Zabbix server service and make it start on each system boot:
# systemctl enable zabbix-server --now
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service →
/usr/lib/systemd/system/zabbix-server.service.

Check Zabbix service status:


# systemctl status zabbix-server

zabbix-server.service - Zabbix Server


Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-09-27 14:36:01 EEST; 10s ago
Zabbix service
Process: 6588 ExecStart=/usr/sbin/zabbix_server
Zabbix service -c $CONFFILE (code=exited, status=0/SUCCESS)
startup
Main PID: 6590 (zabbix_server) status
Tasks: 46 (limit: 11224)
Memory: 33.0M
CGroup: /system.slice/zabbix-server.service
├─6590 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─6593 /usr/sbin/zabbix_server: service manager #1 [processed 0 events, updated 0 event
tags, deleted 0 problems, synced 0
├─6594 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.0331 sec]
├─6595 /usr/sbin/zabbix_server: alert manager #1 [idle 5.002882 sec during 5.002934 sec]
Sep 27 14:36:01 student-xx systemd[1]: Started Zabbix Server.

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 18
PRACTICAL TASK #1
Check the Zabbix log file for critical errors.
# tail -n50 /var/log/zabbix/zabbix_server.log

6617:20210927:143601.751 server #25 started [task manager #1]


6608:20210927:143601.751 server #16 started [http poller #1]
6604:20210927:143601.752 server #12 started [lld worker #1]
6615:20210927:143601.752 server #23 started [proxy poller #1]
6599:20210927:143601.753 server #7 started [preprocessing manager #1]
6600:20210927:143601.754 server #8 started [preprocessing worker #1]
6596:20210927:143601.754 server #4 started [alerter #1]
6597:20210927:143601.754 server #5 started [alerter #2]
6601:20210927:143601.755 server #9 started [preprocessing worker #2]
6602:20210927:143601.755 server #10 started [preprocessing worker #3]
6603:20210927:143601.755 server #11 started [lld manager #1]
6606:20210927:143601.756 server #14 started [housekeeper #1]
6611:20210927:143601.756 server #19 started [history syncer #2]
6630:20210927:143601.781 server #38 started [alert syncer #1]
6631:20210927:143601.782 server #39 started [history poller #1] It is OK to have errors about unsupported items
6627:20210927:143601.783 server #35 started [trapper #4] in the Zabbix server log file at this installation
6622:20210927:143601.785 server #30 started [poller #5] point. These errors are not critical.
6623:20210927:143601.787 server #31 started [unreachable poller #1]
6625:20210927:143601.788 server #33 started [trapper #2]
6647:20210927:143601.802 server #44 started [availability manager #1]
6648:20210927:143601.804 server #45 started [problem housekeeper #1]
6619:20210927:143602.747 Zabbix agent item "system.cpu.util[,iowait]" on host "Zabbix server" failed: first network error, wait for 15 seconds
6623:20210927:143617.789 Zabbix agent item "system.cpu.switches" on host "Zabbix server" failed: another network error, wait for 15 seconds
6623:20210927:143632.791 Zabbix agent item "system.cpu.load[all,avg5]" on host "Zabbix server" failed: another network error, wait for 15 seconds
6610:20210927:143641.892 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
6610:20210927:143642.899 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 19
PRACTICAL TASK #1
Check Zabbix server version:
# zabbix_server -V Zabbix server
version
zabbix_server (Zabbix) 6.0.6
Revision 3f7597e3ea3 27 June 2022, compilation time: Jun 27 2022 14:23:00

Copyright (C) 2022 Zabbix SIA


License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project


for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 1.1.1g FIPS 21 Apr 2020


Running with OpenSSL 1.1.1g FIPS 21 Apr 2020

This is the only way how to check version of Zabbix server backend!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 20
PRACTICAL TASK #1
List all Zabbix server processes
# ps ax | grep zabbix_server
3092 ? S 0:01 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
3094 ? S 0:01 /usr/sbin/zabbix_server: ha manager
3102 ? S 0:01 /usr/sbin/zabbix_server: service manager #1 [processed 0 events, updated 0 event tags, deleted 0 problems]
3103 ? S 0:04 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.146297 sec, idle 60 sec]
3109 ? S 0:01 /usr/sbin/zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.546091 sec during 5.622116 sec]
3110 ? S 0:00 /usr/sbin/zabbix_server: alerter #1 started
3111 ? S 0:00 /usr/sbin/zabbix_server: alerter #2 started
3112 ? S 0:00 /usr/sbin/zabbix_server: alerter #3 started
3113 ? Process
S 0:01 /usr/sbin/zabbix_server: preprocessing manager #1 [queuedProcess
0, processed 10 values, idle 5.048749 sec]
3114 ? number
S 0:00 /usr/sbin/zabbix_server: preprocessing worker #1 started
name
3115 ? S 0:00 /usr/sbin/zabbix_server: preprocessing worker #2 started
3116 ? S 0:00 /usr/sbin/zabbix_server: preprocessing worker #3 started
3117 ? S 0:01 /usr/sbin/zabbix_server: lld manager #1 [processed 0 LLD rules, idle 5.087965sec during 5.151514 sec]
3118 ? S 0:00 /usr/sbin/zabbix_server: lld worker #1 [processed 1 LLD rules, idle 120.014248 sec during 120.039952 sec]
3119 ? S 0:00 /usr/sbin/zabbix_server: lld worker #2 [processed 1 LLD rules, idle 120.006424 sec during 120.029086 sec]
3121 ? S 0:00 /usr/sbin/zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.001110 sec, idle 59 sec]
3122 ? S 0:00 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.001386 sec, idle 5 sec]
3123 ? S 0:00 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.001511 sec, idle 60 sec]
3124 ? S 0:01 /usr/sbin/zabbix_server: history syncer #1 [processed 1 values, 0 triggers in 0.003713 sec, idle 1 sec]
3125 ? S 0:01 /usr/sbin/zabbix_server: history syncer #2 [processed 0 values, 0 triggers in 0.000077 sec, idle 1 sec]
3126 ? S 0:01 /usr/sbin/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.000039 sec, idle 1 sec]
3127 ? S 0:01 /usr/sbin/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.000072 sec, idle 1 sec]
3128 ? S 0:01 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 3.717252 sec, idle 3 sec]
3129 ? S 0:00 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000196 sec, idle 5 sec]
3130 ? S 0:01 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000040 sec, idle 1 sec]
3131 ? S 0:00 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.102836 sec, idle 5 sec]
3132 ? S 0:00 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.008195 sec, idle 5 sec

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 21
PRACTICAL TASK #1
Increase log level for "history syncer #3" process:
# zabbix_server -R log_level_increase="history syncer,3"

Watch Zabbix server log file for activity


# tail -f /var/log/zabbix/zabbix_server.log
A lot of debug
3126:20211230:173622.619 End of DCmass_prepare_history() information is
3126:20211230:173622.619
3126:20211230:173622.619
In DBmass_add_history()
In zbx_history_add_values()
displayed
3126:20211230:173622.619 query [begin;]
3126:20211230:173622.620 query [insert into history_uint (itemid,clock,ns,value) values (23662,1640878582,219684052,0)]
3126:20211230:173622.621 query [commit;]
3126:20211230:173622.624 End of zbx_history_add_values()
................

Interrupt the output by pressing CTRL+C


Decrease the log level for history syncer #3 process:
# zabbix_server -R log_level_decrease="history syncer,3"

Make sure that the log level is decreased Log level successfully
# tail /var/log/zabbix/zabbix_server.log decreased

3126:20211230:174155.023 log level has been decreased to 3 (warning)

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 22
Congratulations
Practical task #1 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 23
Lab #2
Frontend installation

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 30 minutes 24
PRACTICAL TASK #2
Zabbix server is up and running, but it lacks the web interface
Install Zabbix frontend packages from the official repository:
# dnf -y install zabbix-web-mysql zabbix-apache-conf

=================================================================================================================
==============
Installing:
zabbix-apache-conf noarch 6.0.0.el8
zabbix-web-mysql noarch 6.0.0.el8
Upgrading:
dejavu-fonts-common noarch 2.35-7.el8
dejavu-sans-mono-fonts noarch 2.35-7.el8
Installing dependencies:
apr x86_64 1.6.3-11.el8
apr-util x86_64 1.6.1-6.el8
centos-logos-httpd noarch 85.8-1.el8
dejavu-sans-fonts noarch 2.35-7.el8
gd x86_64 2.2.5-7.el8
httpd x86_64 2.4.37-39.module_el8.4.0+778+c970deab
httpd-filesystem noarch 2.4.37-39.module_el8.4.0+778+c970deab
Installed:
apr-1.6.3-11.el8.x86_64 apr-util-1.6.1-6.el8.x86_64
Successful
apr-util-bdb-1.6.1-6.el8.x86_64 apr-util-openssl-1.6.1-6.el8.x8
installation
centos-logos-httpd-85.8-1.el8.noarch dejavu-sans-fonts-2.35-7.el8.no
Complete!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 25
PRACTICAL TASK #2
Enable and start Apache service together with php-fpm manager:
# systemctl enable httpd php-fpm --now

Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service →


/usr/lib/systemd/system/httpd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service →
/usr/lib/systemd/system/php-fpm.service.

Check Apache server status:

# systemctl status httpd Apache startup


mode
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Current Apache
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf status
Active: active (running) since Mon 2021-09-27 15:50:03 EEST; 5s ago
Docs: man:httpd.service(8)
Main PID: 7678 (httpd)
Status: "Started, listening on: port 80"

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 26
PRACTICAL TASK #2
Connect to your Zabbix frontend and continue the setup from there.
Use IP you used for SSH login, e.g.: http://<IP_OF_YOUR_STUDENT_VM>/zabbix

Select default language


English (en_US)
for your frontend

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 27
PRACTICAL TASK #2
Check if all pre-requisites are met:
All prerequisites
must be OK

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 28
PRACTICAL TASK #2
Configure DB connection as shown:

P455w0RD

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 29
PRACTICAL TASK #2
Enter Zabbix server details:

Instance name: "Zabbix server XX",


where XX is your VM number
(01, 02, etc.)

Use UTC as global time zone

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 30
PRACTICAL TASK #2
Check preinstallation summary and proceed to the final step.

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 31
PRACTICAL TASK #2
Frontend setup is finished!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 32
PRACTICAL TASK #2
Log in to Zabbix frontend
Username: Admin
Password zabbix

Use the default


administrator login:
Admin

Use the default password


for Admin: zabbix

Press Sign in

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 33
PRACTICAL TASK #2
Congratulations! You have successfully installed Zabbix 6.0 LTS!

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 34
Congratulations
Practical task #2 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 35
Lab #3
User profile

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 10 minutes 36
PRACTICAL TASK #3
Go to Administration → User groups and press Create user group

Press here
Press here

Choose
"User groups"

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 37
PRACTICAL TASK #3
Enter "Training users" as a group name and press Add

Enter "Training users"

Press Add

Frontend displays confirmation that the user group has been successfully added

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 38
PRACTICAL TASK #3
Go to Administration → Users and press Create user

Press here

Choose
"Users"

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 39
PRACTICAL TASK #3
Fill required fields: Click here after
Username: student-XX filling all fields
Name: your name
Surname your surname
Groups: Training users
Password: some strong password
Time zone: your local time zone
URL: zabbix.php?action=host.view

Switch to Permissions tab after filling the fields

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 40
PRACTICAL TASK #3
Choose the "Super admin role" using one of the two methods:
Type "Super" into the field and select from suggested roles
Use "Select" button

Type "Super"
here Or use the
"Select" button

Permissions will be displayed after choosing the role

Press Add at the bottom of the page to create the user

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 41
PRACTICAL TASK #3
Frontend displays confirmation that the user has been successfully added
Select "Admin" user by clicking on the name:

Click here

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 42
PRACTICAL TASK #3
Press "Change password" button:
Enter P455w0RD into password fields

Press
"Change password"

Press Update to apply changed settings

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 43
PRACTICAL TASK #3
Click on "Sign out" to logout current user (Admin)

Sign out

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 44
PRACTICAL TASK #3
Enter your username and password into corresponding fields and press Sign in

You are automatically redirected to Monitoring → Hosts section

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 45
PRACTICAL TASK #3
Click on User settings → Profile to check your user profile settings
You can update some settings here or press Cancel to close the form

User profile

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 46
Congratulations
Practical task #3 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 47
Lab #4
Hosts and Host groups

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 20 minutes 48
PRACTICAL TASK #4
Go to Configuration → Host groups in the Main menu
Press Create host group
Press here

Host groups

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 49
PRACTICAL TASK #4
Enter "Training" as host group name and press Add

Frontend displays confirmation that host group has been added successfully

Press Create host group again to create another group

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 50
PRACTICAL TASK #4
Enter "Training" into the filter field and press Apply

Only Host groups that contain "Training" are displayed now

Enter "Training"

Press Apply"

Currently both host groups are empty and do not contain any hosts or templates

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 51
PRACTICAL TASK #4
Go to Configuration → Hosts in the Main menu
Press Create host
Press here

Hosts

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 52
PRACTICAL TASK #4
Enter host details in the form:
Name: training.lan
Visible name: Training resources
Host group: Training/Servers
Description: Training server with common resources
Switch to Tags section Tags

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 53
PRACTICAL TASK #4
Enter tag information:
Name: Location
Value: Riga

Click here to add


another tag

Click on Add to add another tag

Press Add to
create the host
Press Add to create host

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 54
PRACTICAL TASK #4
Frontend displays confirmation that host was added successfully

Enter "Training/Servers" into the filter section and press Apply

Enter
"Training/Servers" Show or Hide
here filter

Apply filter

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 55
Congratulations
Practical task #4 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 56
Lab #5
Interfaces

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 20 min 57
PRACTICAL TASK #5
Go to Configuration -> Hosts and click on the "Training resources" host

Click here

Click on Add and choose "Agent"

Click here
Then choose
"Agent"

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 58
PRACTICAL TASK #5
Fill required fields:
Clear IP address
DNS name: training.lan
Connect to: DNS
Port: 10050

Interface settings

Press Update to save the changes


Check interface availability - it is gray, because there are no items assigned to this interface

Availability is gray

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 59
PRACTICAL TASK #5
Click on the "Training resources" host again
Write "Zabbix agent" in the "Templates" field
Too many templates are displayed...

Write
"Zabbix agent"

Zabbix agent
template is not
listed here

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 60
PRACTICAL TASK #5
Press "Select" button next to the "Templates" field

Press Select

Choose
Templates

Press "Select" button and choose the host group "Templates"

Press Select

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 61
PRACTICAL TASK #5
Scroll down and find the template named "Zabbix agent"
Click on the template name to choose it

Click here

Press Update to save changes to the host


Go to Monitoring → Hosts and wait for the ZBX interface to become green

Interface
availability

Hosts

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 62
Congratulations
Practical task #5 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 63
Lab #6
Simple checks

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 20 minutes 64
PRACTICAL TASK #6
Go to Configuration → Hosts
Click on Items for the "Training resources" host

Click here

A few items are already linked from a template. Press Create item to add another one

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 65
PRACTICAL TASK #6
Enter item details in the form:
Name: ICMP ping status
Type: Simple check
Key: icmpping
Type of inf.: Numeric(unsigned)
Choose the
Host interface: training.lan correct type

Switch to the Tags section and add a tag:


Name: Application
Value: ICMP

Click on Tags

Press Add to create the item

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 66
PRACTICAL TASK #6
Press Create item to add the next item
Enter item details in the form:
Name: Service Web performance
Type: Simple check
Key: net.tcp.service.perf[http] Choose
correct type
Type of inf.: Numeric (float)
Host interface: training.lan

Switch to the Tags section and add a tag:


Name: Application
Value: Web

Press Add to create the item

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 67
PRACTICAL TASK #6
Press Create item to add the next item
Enter item details in the form:
Name: Service NTP availability
Type: Simple check
Key: net.udp.service[ntp,training.lan] DNS address is
Type of inf.: Numeric (unsigned) specified in the
Host interface: training.lan item key
The interface is
specified, but will
not be used

Switch to the Tags section and add a tag:


Name: Application
Value: NTP

Press Add to create the item

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 68
PRACTICAL TASK #6
All items are displayed with Name, Key, Type, Tags and other fields

Go to Monitoring → Hosts and click on the "Latest data" for "Training resources" host

Click here

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 69
PRACTICAL TASK #6
Items are collecting data, last check time, change and last value are displayed for all items

Collected data

Currently, only raw data is displayed for the "Simple check" items
Next topics will explain how to display the data in a human-readable format

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 70
Congratulations
Practical task #6 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 71
Lab #7
Zabbix agent

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 15 minutes 72
PRACTICAL TASK #7
Install Zabbix agent
# dnf -y install zabbix-agent

Installed:
zabbix-agent-6.0.0.el8.x86_64
Complete!

Enable Zabbix agent service and make it start on each system boot
# systemctl enable zabbix-agent --now

Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service →


/usr/lib/systemd/system/zabbix-agent.service.

Check Zabbix agent log file


# tail -20 /var/log/zabbix/zabbix_agentd.log

99535:20220117:094114.769 Starting Zabbix Agent [Zabbix server]. Zabbix 6.0.0 (revision 1ff76345b1).
99535:20220117:094114.769 **** Enabled features ****
99535:20220117:094114.769 IPv6 support: YES
99535:20220117:094114.770 TLS support: YES
.....
99537:20220117:094114.791 agent #2 started [listener #1]

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 73
PRACTICAL TASK #7
Go to Monitoring → Hosts and check that Zabbix server interface is available

Interface
availability

Click on "Latest data" for "Zabbix server" host

Click here

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 74
PRACTICAL TASK #7
Enter "Agent" into filter section and press Apply

Check Zabbix agent version

Enter "Agent"
Press "Apply"

Agent version

Check Zabbix agent version from the command line


# zabbix_agentd --version

zabbix_agentd (daemon) (Zabbix) 6.0.0


Revision 1ff76345b1 11 January 2022, compilation time: Jan 11 2022 11:34:39

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 75
PRACTICAL TASK #7
Check Zabbix agent generation from the command line
# zabbix_agentd -t agent.variant

agent.variant [u|1]

Check Zabbix server memory usage from the command line


# zabbix_agentd -t proc.mem[zabbix_server]

proc.mem[zabbix_server] [u|9387474944]

Use test functionality to check zabbix log file directory size


Press Create item on "Zabbix server" host:
Name: Zabbix log files total size
Type: Zabbix agent
Key: vfs.dir.size[/var/log/zabbix/]
Type of inf.: Numeric(unsigned)
Host interf.: 127.0.0.1:10050
Test item
Press Test button at the bottom of the page

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 76
PRACTICAL TASK #7
Press Get value and test button to test the item key
Total size of /var/log/zabbix directory is displayed

Press Cancel to close the test form


Discard the configuration by pressing Cancel on the item configuration form

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved Practical task 77
Congratulations
Practical task #7 is completed !

Zabbix 6.0 Certified Specialist ● Day 1 © 2022 by Zabbix. All rights reserved 78

You might also like