Professional Documents
Culture Documents
ZCS6 Day 5 Practical
ZCS6 Day 5 Practical
ZCS6 Day 5 Practical
0
Training practical tasks
DAY 5
Zabbix 6.0 Certified Specialist ● Day 5 © 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 5 © 2022 by Zabbix. All rights reserved Practical task 2
Lab #38
Real-time data export
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 10 minutes 3
PRACTICAL TASK #38
Create folder "/tmp/zabbix_export/" to store data and change the owner to zabbix user
# mkdir /tmp/zabbix_export
# chown zabbix:zabbix /tmp/zabbix_export
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 4
PRACTICAL TASK #38
Restart Zabbix server
# systemctl restart zabbix-server
Resolve the problem and look at the files again - a new line is added
# zabbix_sender -z student-xx.zabbix.training -s Training-VM-XX -k persons -o 10
# cat /tmp/zabbix_export/problems-history-syncer*
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 5
PRACTICAL TASK #38
Restart zabbix server process
Trends are written at the beginning of every hour or on Zabbix server restart
# systemctl restart zabbix-server
They are empty because on the server restart the main process writes trends
# cat /tmp/zabbix_export/trends-main-process-0.ndjson
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 6
Congratulations
Practical task #38 is completed !
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 7
Lab #39
Graphs
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 10 minutes 8
PRACTICAL TASK #39
Go to Configuration -> Templates and click on the Graphs for Template Basic
Click here
Click here
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 9
PRACTICAL TASK #39
Select Items:
Interface eth0: Incoming traffic
Interface eth0: Outgoing traffic
Press Select
Select
Click on Add and select "CPU load" item
Change Y axis side to Right for the "CPU load" item
Y Axis
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 10
PRACTICAL TASK #39
Press Add to create graph
Go to Monitoring -> Hosts and click on Graphs for the "Training-VM-XX" host
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 11
Congratulations
Practical task #39 is completed !
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 12
Lab #40
Network Maps
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 20 minutes 13
PRACTICAL TASK #40
Go to Monitoring → Maps
Click on "All maps" if some map is already displayed
All maps
Press Add
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 14
PRACTICAL TASK #40
Click on Constructor for "Training network" map
Click here
Press Apply
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 15
PRACTICAL TASK #40
Reposition switch to the center of the map
Add another element and change its properties
Type: Host
Label: Name: {HOST.NAME}
Address: {HOST.CONN}
Uptime: {?last(//system.uptime)}
CPU load: {?avg(//system.cpu.load,10m)}
Memory available:{?avg(//memory.available,1h)}
Host: Training-VM-XX
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 16
PRACTICAL TASK #40
Switch "Expand macros" to On - the current information is displayed
Expand
macros
CTRL + Click on the host and switch icons to select both and click on "Link: Add"
Add link
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 17
PRACTICAL TASK #40
The mass update elements form is still open
Click on Edit in the Links section:
Add label: Traffic in:{?last(/Training-VM-XX/net.if.in[eth0])}
Traffic out:{?last(/Training-VM-XX/net.if.out[eth0])}
Edit
Press Apply
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 19
PRACTICAL TASK #40
Change the host to "Training-VM-XY"
Do not forget to
Scroll down to Links section change host name!
Change the host name in the label
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 20
PRACTICAL TASK #40
A new host is added
Repeat the last step and add "Training-VM-XZ" host using copy/paste
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 21
Congratulations
Practical task #40 is completed !
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 22
LAB #41
Dashboards
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 23
PRACTICAL TASK #41
Go to Monitoring → Dashboard and press Create dashboard
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 24
PRACTICAL TASK #41
Click on the rectangle to add a new widget
Click here
Choose widget:
Type: Clock
Time type: Server time
Time type
Press Add
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 25
PRACTICAL TASK #41
Click on empty space to add another widget:
Type: Host availability
Click here
Name: Training servers availability
Refresh interval: 1 minute
Host groups: Training/Servers
Interface type Zabbix agent, SNMP, IPMI
Show hosts in maint.: Checked
Press Add
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 26
PRACTICAL TASK #41
Two widgets are now displayed
Advanced
configuration
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 27
PRACTICAL TASK #41
Adjust settings for Value:
Decimal places: 2
Color: Green Change color
Units: B
Size: 25%
Color: Teal Change color
Press Add
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 28
PRACTICAL TASK #41
Add another widget:
Type: Top Hosts
Host groups: Training/servers, Zabbix servers
Host count: 5
Click on Columns: Add
Add columns
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 29
PRACTICAL TASK #41
Change column properties
Name: Available memory Select item
Data: Item value
Item: Available memory
Base color: Green
Min: 0
Max 2G
Choose "Available
memory"
Press Add
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 30
PRACTICAL TASK #41
Add another column
Name: Host
Data: Host name
Add
Change
column
data
Press Add
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 31
PRACTICAL TASK #41
Choose some threshold in the middle of values
In my example it is ~180MB
Change
properties
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 32
PRACTICAL TASK #41
Change base color to red
Add a threshold
Value: 180M
Color: Green Change color
Add threshold
Colored
indicators
Add columns
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 34
PRACTICAL TASK #41
Add new column:
Name: Host
Data: Host name
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 35
PRACTICAL TASK #41
Press Save changes to save the dashboard
Save
dashboard
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 36
PRACTICAL TASK #41
Press Edit dashboard to add more widgets
Edit
dashboard
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 37
PRACTICAL TASK #41
Add a map widget:
Type: Map
Source type: Map navigation tree
Filter: Map navigation tree
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 38
PRACTICAL TASK #41
Edit the dashboard and add a new page:
Name: Network traffic graph
Click here
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 39
PRACTICAL TASK #41
Add a graph widget
Type: Graph
Host pattern: Training-VM-*
Item pattern: Interface eth0: Incoming traffic
Base color: Blue
Draw: Bar
Transparency: 3
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 40
Congratulations
Practical task #41 is completed !
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 41
Lab #42
Reports
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 15 minutes 42
PRACTICAL TASK #42
Open SSH console and install zabbix-web-service
# dnf install -y zabbix-web-service
Add Google chrome repository (copy/paste the info into google-chrome.repo file)
# vi /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 43
PRACTICAL TASK #42
Open Zabbix server configuration file and specify report settings
# vi /etc/zabbix/zabbix_server.conf +/Report
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 44
PRACTICAL TASK #42
Go to Administration → General → Other and enter the Frontend URL
You can copy the URL from the browser bar
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 45
PRACTICAL TASK #42
Fill required fields:
Name: Training report
Dashboard: Global view
Period: Previous day
Cycle: Daily
Start time: 09:00
Subject: Zabbix global dashboard
Message: Auto generated report
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved Practical task 46
Congratulations
Practical task #42 is completed !
Zabbix 6.0 Certified Specialist ● Day 5 © 2022 by Zabbix. All rights reserved 47