Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn · Zabbix 3.0 Training Certified...

95
WWW.YOURCOMPANY.COM Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone WWW.ZABBIX.COM

Transcript of Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn · Zabbix 3.0 Training Certified...

Page 1: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

WWW.YOURCOMPANY.COM

Zabbix 3.0 Training

Certified Specialist

Day 2

The Enterprise class Monitoring Solution for Everyone

WWW.ZABBIX.COM

Page 2: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Advanced monitoring Visualization

Events andnotifications

Zabbixadministration

AGENDA

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 2

Configuration management

Host maintenance

Page 3: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

CONFIGURATIONMANAGEMENT

Page 4: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Template_MySQLQueries per second

MySQL_serverQueries per second

Average queries per second forlast 5 minutes exceeds 5000

{MySQL_server:qps.avg(300)}>5000

Average queries per second forlast 5 minutes exceeds 5000

{Template_MySQL:qps.avg(300)}>5000

Graph

LINKING TEMPLATE

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 4

Page 5: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Properties:

Name

Groups

Downstream hosts

Upstream templates

Macros

What is affected

Items

Triggers

Graphs

Applications

Templated screens

Discovery rules

Some item and trigger properties can be overridden!

TEMPLATE PROPERTIES AND CONTENTS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 5

Page 6: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Change upstream, changes downstream

Multiple templates can be linked to single host

E-mail serverWeb server

Template_MySQL

Template_Apache Template_Postfix

Template_PgSQL

HOW TEMPLATES WORK

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 6

Page 7: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

E-mail server 1

E-mail server 2

Template_E-mail server

Template_Apache

Template_PostfixTemplate_PgSQL

E-mail server 3

E-mail server 4

NESTED TEMPLATING

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 7

Page 8: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Visible in the list of hosts (first two levels)

Visible in the list of templates

TEMPLATE LINKAGE

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 8

Page 9: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Create a "Custom Templates" host group

Create a new "Template Basic" template in it

Copy all items and trigger from host to the template

Create three additional hosts for other trainee's Vms

Add them to "Training servers" host group

Link the template to them

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 9

Page 10: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

AGENT-LESSCHECKS

Page 11: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Availability and performance of remote services Syntax

net.tcp.service[service,<ip>,<port>]net.tcp.service.perf[service,<ip>,<port>]

Examples

net.tcp.service[ftp]net.tcp.service[ssh,,1022]net.tcp.service.perf[http,,8080]

SERVICE CHECKS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 11

Page 12: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Add an additional item in "Template Basic":"HTTP service availability"

Make sure that the item is receiving data and is shown in a human readable format

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 12

Page 13: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

ICMPCHECKS

Page 14: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Uses fping Full path in server configuration file Correct suid/permission settings SELinux can prevent Zabbix from running fping

Uses fping defaults (depends on the platform)

Source IP settings

IPv6 supported by fping6 in most distributions

Supported items

icmpping[<target>,<packets>,<interval>,<size>,<timeout>]

icmppingloss[<target>,<packets>,<interval>,<size>,<timeout>]

icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mode>]

CONFIGURING ICMP CHECKS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 14

Page 15: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Add simple item in "Template Basic":"ICMP lost packets"

Add:"Ping loss is too high on <host>" trigger

Use 5 as threshold

Make sure that the item receives data

Use the following command to simulate dropped packets and test the trigger (run it once!):

# iptables -A INPUT -m statistic --mode random --probability 0.1 -j DROP

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 15

Page 16: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

AGGREGATECHECKS

Page 17: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

No agent is required

Syntaxgroupfunc["Host group","Item key",itemfunc,timeperiod]Functions: grpavg, grpmax, grpmin, grpsumItem functions: avg, count, last, max, min, sum

Examples

grpsum["MySQL Servers","vfs.fs.size[/,total]",last,0]grpavg["MySQL Servers","system.cpu.load[,avg1]",last,0]grpavg["MySQL Servers",mysql.qps,avg,5m]grpavg[["Servers A","Servers B"],system.cpu.load,last,0]

AGGREGATE CHECKS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 17

Page 18: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Create "Production cluster" dummy host which will represent your "production HA cluster"

Create "Template Aggregate Check" template

Add aggregate item in "Template Aggregate Check":"Average CPU load in cluster" which calculates average CPU load on all systems from "Training servers" host group

Link "Template Aggregate Check" to "Production cluster" host

Make sure that the item receives data

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 18

Page 19: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

CALCULATEDCHECKS

Page 20: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

No agent is required Syntax

func(<key>|<hostname:key>,<parameter1>,<parameter2>,...) Examples

100*last("vfs.fs.size[/,free]",0)/last("vfs.fs.size[/,total]",0)

last("net.if.in[eth0,bytes]",0)+last("net.if.out[eth0,bytes]",0)

100*last("net.if.in[eth0,bytes]",0)/(last("net.if.in[eth0,bytes]",0)+last("net.if.out[eth0,bytes]",0))

CALCULATED CHECKS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 20

Page 21: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Add calculated item in "Template Basic":"Total throughput on eth0" (sum of "Incoming traffic on eth0" and "Outgoing traffic on eth0")

Make sure that the item receives data

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 21

Page 22: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

SNMPMONITORING

Page 23: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Zabbix supports SNMP v 1, 2c and 3

Community, security level and port per item

User macros supported for SNMP community

SNMP polled by Zabbix pollers

Zabbix comes with number of pre-defined templates for SNMP

SNMP MONITORING

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 23

Page 24: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

SNMP entries indexed dynamically, text index on another MIB branch Syntax

<data base OID>["index","<index base OID>","<exact match>"]

Example

IF-MIB::ifInOctets[index,IF-MIB::ifDescr,eth0]

DYNAMIC SNMP INDEXES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 24

Page 25: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Configure SNMP protocol on your VM

Add SNMP interface on the host

Link “Template SNMP Device”

Make sure that the item receives data

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 25

Page 26: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

LOG FILEMONITORING

Page 27: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Examplelog["/var/log/syslog","error"]

LOG FILE ITEM

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 27

Parameter Definition

Type Zabbix agent (active)

Key log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]

Value type Log

Update interval

usually 1 sec

Page 28: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

MaxLinesPerSecond – configurable per agent and item

Log rotation support●Different key – logrt● "file" becomes regular expression (not path)●More resource intensive, agent has to re-read directory

contents with each check

Log time format● y, M, d, h, m, s – everything else works as a

placeholder●Numeric values only

ADDITIONAL DETAILS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 28

Page 29: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Special history view Mark selected/other Hide/Show selected Add multiple log items, sorted by entry data

VIEWING LOG ITEMS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 29

Page 30: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

There is an error in the log:{host:log["/var/log/syslog"].str(ERROR)}=1

There are several errors in the log for last 3 minutes:{host:log["/var/log/syslog",ERROR].count(3m,ERROR,like)}>2

EXAMPLES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 30

Page 31: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]

Use output parameter in log and logrt items to extract the desired number

Use Numeric type of information to see graphs and write triggers easily

Example:log[/var/log/syslog,"Total processors activated: ([0-9]+)",,,,\1]

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM

LOGFILE CONTENT EXTRACTION

31

Page 32: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

log[/path/to/the/file,large result buffer allocation.*Entries: ([0-9]+),,,,\1] → 5948

log[path,([0-9]+) message ([0-9]+),,,,\1] → 55log[path,([0-9]+) message ([0-9]+),,,,\1 and \2] → 55 and 33log[path,([0-9]+) message ([0-9]+),,,,we got \1 and \2] we →got 55 and 33

EXAMPLES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 32

Fr Feb 07 2014 11:07:36.6690 */ Thread Id 1400 (GLEWF) large result bufferallocation - /Length: 437136/Entries: 5948/User: AUser/Form:CFG:ServiceLevelAgreement

Logging 55 message 33

Page 33: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Create errors.log file in /tmp

Add log monitoring item in "Template Basic":

"The errors.log monitoring"

Use "error" string as regular expression for the item

Write "error" strings to the file

Make sure that the item receives data

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 33

Page 34: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

INVENTORY

AUTO-COLLECTION

Page 35: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Item configured to put it data in inventory field

ITEM -> INVENTORY FIELD

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 35

Page 36: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Inventory must be set to automaticConfiguration Hosts <Host>→ →

Use "Administration General Other" to set default host → →inventory mode

HOST INVENTORY MODE

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 36

Page 37: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

HOST INVENTORY VIEW

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 37

Page 38: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

VISUALISATION

Page 39: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Multiple items in a single graph

Customised look

Multiple graph typesNormalStackedPieExploded pie

CUSTOM GRAPHS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 39

Page 40: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Legend, working time, trigger line, percentile lines (left/right)

Automatic,fixed or referencedY axis min/max

Multiple itemson two axis withdifferent colors& draw styles

GRAPH PROPERTIES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 40

Page 41: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

"avg" is the default"max" or "min" in the legend

GRAPH ITEM FUNCTION

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 41

Page 42: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

{{HOST.HOST}:ifAlias[1].last(0)}

Similarly to map labels, only avg(), last(), max() and min() functions with seconds as parameter are supported within this macro in graph names. Value mapping is supported as well.

MACROS IN GRAPH NAMES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 42

Page 43: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

MAPS, SCREENS AND SLIDE SHOWS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM

Configuration for the entities is available under Monitoring

All users in Zabbix (including non-admin users) can create network maps, screens and slide shows

43

Page 44: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

SHARING OPTIONS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM

Maps, screens and slide shows can be private or public:– public ones can be accessed by all users– private ones can be accessed by its owner (creator) and all users the entity has been shared with– permissions are respected

44

Page 45: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Map properties● Name, dimensions● Background image● Icon highlighting● Element marking upon

change● Single problem expanding● Icon label type and location● Icon mapping● Trigger acknowledgment

status displaying● Min trigger severity● URLs

Map elements● Image● Trigger● Host● Host group (or elements)● Map

MAPS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 45

Page 46: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Different icons for different states

Custom URLs & labels

Drag and drop editing

Icon aligning, macro expanding

Map links with labels and different styles

Macros in labels for elements and links

MAP DETAILS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 46

Page 47: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

ACKNOWLEDGE STATUS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 47

Page 48: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

None Highlight Mark Don't expand All

OK

Disabled

Problem

Recent problem

MAP OPTIONS EFFECT

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 48

Page 49: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Multiple triggers can be attached to a single link

Active trigger with highest severity will determine link style

MAP LINK STATUS INDICATORS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 49

Page 50: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Regexps matched against specified inventory field

No match – default icon used

ICON MAPPING

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 50

Page 51: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Map hierarchy: submaps

Custom labels showing any useful information:{{HOST.HOST}:system.cpu.load.last(0)} or{Zabbix server:system.cpu.load.last(0)}

Make links same color as background, appear only for problem

Route links by using invisible icons

Use background images

MAP HINTS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 51

Page 52: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Create a new map

Add all hosts to it

Create links between hosts

Add useful information to a host and link label (CPU load, In/Out traffic)

PRACTICAL SETUP

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 52

Page 53: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Works like a tableDrag and drop editingRefreshes elements in backgroundDynamic screen elementsMany different elements:

Simple, custom and graph prototypesItem valuesMapsActive problemsOther screensCustom URLsOverview page

...more

SCREENS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 53

Page 54: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone
Page 55: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone
Page 56: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Slide showCycles through many screensAny orderingMultiplier refresh in monitoring

SLIDE SHOWS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 56

Page 57: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

EVENTS

Page 58: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Event sources: Triggers

On trigger status changeDepends on "Multiple PROBLEM events" option

Network discoveryIf service is discovered/lostIf device is discovered/lost

Auto-registrationWhen previously unknown active agent contacts Zabbix server

InternalItem in "not supported" stateLow-level discovery rule in "not supported" stateTrigger in "unknown" state

HOW ARE EVENTS GENERATED?

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 58

Page 59: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Historical viewStatus, duration, action overviewAccess to individual event detailsFilter, export to CSV

HISTORY OF EVENTS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 59

Page 60: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Source and event detailsAction, command and event history

EVENT DETAILS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 60

Page 61: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

NOTIFICATIONS AND

ESCALATIONS

Page 62: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Notify usersExecute remote commandsRepeated notifications until problem is resolvedDelayed notifications and remote commandsDifferent messages for acknowledged and unacknowledged problemsEscalations to different user or user groupUnlimited number of escalation stepsProvide information with macros

FUNCTIONALITY

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 62

Page 63: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Ways to send out notifications

Email

Jabber

SMSModem support

Ez-Texting

Custom "alert" scripts

MEDIA TYPES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 63

Page 64: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

One or more user mediaUsually e-mail, phone number or other identifierActive based on severityActive based on time period

USER MEDIA

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 64

Page 65: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Name

Message

Conditions

Operations

TRIGGER ACTIONS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 65

Page 66: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Flexible conditionsHost, host groupTrigger name, severity or valueApplication, time period

Type of calculation

ACTION CONDITIONS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 66

Notifications depend on permissions

Page 67: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Send messageSingle user, groupSingle media, allDefault/custom messageCondition based on acknowledgment

Run remote commandScript on server or agentIPMISSH, telnetGlobal script

ACTION OPERATIONS - TRIGGERS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 67

Page 68: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Operation

User

User group

Script

Message

Command

Zabbix Server

Remote Agent

IPMI

SSH/Telnet

Global script

Remote host

Remote Agent

Remote host

OPERATIONS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 68

Page 69: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Use macros to include in notifications:Technical data like last gathered valueHost inventory details

Useful for integration with ticketing systems{TRIGGER.NSEVERITY}; full list in manual

The {ESC.HISTORY} macro includes full escalation history

USING MACROS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 69

Page 70: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Based on stepsDefault interval can be overridden in operationsIf intervals collide, smallest interval wins

ESCALATIONS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 70

Page 71: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Immediately e-mail administrator

10 minutes send SMS to admin

15 minutes open report at helpdesk system

30 minutes e-email management

1 hour send SMS to management

2 hours restart Apache

6 hours reboot the server

24 hours power cycle whole server room

ESCALATE IT

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 71

Page 72: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

DETECTION OF

MISCONFIGURATION

Page 73: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Detection of problems in configurationNot supported itemsNot supported low level discovery rulesUnknown triggers

DETECTION OF MISCONFIGURATION

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 73

Page 74: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

CUSTOMNOTIFICATIONS

Page 75: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

On Zabbix server side, add new MediaType having type Script

Script must be located in a directory, specified by AlertScriptsPath directive in zabbix_server.conf

Command line parameters can be defined per each script{ALERT.SENDTO} – Send to{ALERT.SUBJECT} – Subject{ALERT.MESSAGE} – Body

Executed by Zabbix server asthe "zabbix" user

CUSTOM MEDIA TYPES

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 75

Page 76: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

HOST AND GROUP

LEVEL

MAINTENANCE

Page 77: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Suppress data collection in the maintenance period by choosing maintenance mode

Suppress notifications during the maintenance period by adding action condition

Visually identified in Status of triggers, maps and dashboard

If problem happens during maintenance, Zabbix starts new escalation after maintenance ends

Maintenance does not stop escalations

MAINTENANCE FUNCTIONALITY

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 77

Page 78: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Periods must match!

MAINTENANCE IN ACTION

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 78

Page 79: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

ZABBIX

ADMINISTRATION

Page 80: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

GUIHousekeeperIcons / Images

MacrosValue mappingWorking time

Triggers severities and displaying options

GENERAL CONFIGURATION

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 80

Page 81: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

REGULAR EXPRESSION BUILDER

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 81

Page 82: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

AUTHENTICATION

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 82

Supported mechanisms:InternalLDAPHTTP: anything supported by Apache

Page 83: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Major detailsIs online/last accessLogin blocking:

After unsuccessful loginsSuperadmins can unblock

Access details:GUI accessAPI accessDebug modeStatus

USER LIST

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 83

Page 84: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Details:● Alias/username, name,

surname● Password resetting● Group membership● Frontend language and

theme● Auto-login and logout● Refresh● Rows per page● URL after login● Media

Users can set some ofthese in their profiles

USER DETAILS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 84

Page 85: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

USER MEDIA TAB

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 85

Page 86: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

User group listShows user countShows individual members

User group propertiesMembersAll access is group based"Special" groups

USER GROUPS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 86

Page 87: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Permissions can be assigned on user group level only

Three levels:Read-writeRead onlyDeny

PERMISSION ASSIGNING

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 87

Page 88: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Can't revoke access for Super Admins

Read/write overrides read only

PERMISSION SYSTEM

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 88

Page 89: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Available in Status of Triggers Dashboard Maps Overview Events

Redirects stderr

FRONTEND SCRIPTS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 89

Page 90: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

FRONTEND SCRIPTS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 90

Parameter Definition

NameUnique name of the script (<submenu/submenu.../>script)

Type Script or IPMI command

Execute on Script will be executed on Zabbix server or agent

CommandsAll commands to be executed within the scriptSome macros are supported

User/host group User/host group that the script is available

Required host permission

Permission level for the host group (Read or Write)

Enable confirmation

Display a confirmation message before executing the script

Confirmation text

Custom confirmation text for the confirmation popup

Page 91: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Filter

AUDIT LOG

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 91

Details for some operations

Page 92: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Verify message contents

See status and errors

AUDIT ACTIONS

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 92

Page 93: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

Amount of items per categoryShould have received data N seconds/minutes ago, but did notPer Proxy and Details view

QUEUE

ZABBIX 3.0 Certified SpecialistWWW.ZABBIX.COM 93

Page 94: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

QUESTIONS?

The Enterprise class Monitoring Solution for Everyone

WWW.ZABBIX.COM

Page 95: Zabbix 3.0 Training Certified Specialist - xiaotonghz.com.cn ·  Zabbix 3.0 Training Certified Specialist Day 2 The Enterprise class Monitoring Solution for Everyone

TIME FOR A BREAK :)