Anisa Training Pack Security Level3
Anisa Training Pack Security Level3
1
سرفصلهای دوره آموزشی
Zabbix
Zabbix Introduction
Monitoring Concept
• What is Monitoring?
• Monitoring Types
• Monitoring Best Practices
• Define a sample Telecom service flow
Introduction to Zabbix
• What is Zabbix?
• Zabbix functionality
• Usage of ZABBIX in DevOps and ITIL
• Architectures
• Zabbix Server
2
• Zabbix Proxy
• Zabbix Agent
• Zabbix Web Frontend
• Stand Alone
• Distributed
• Multi Branch
• Agent Based
• Agent Less
Problem Detection
Installation
Component to install
3
• Zabbix Front End: Apache web server & PHP 8
Installation Methods
Security settings
• Firewall
• Creating SELinux policies for Zabbix
Quick Start
Getting Started
4
• Host Group Configuration
• Host Configuration
• Host name
• Templates
• Host Interface:
• Agent
• SNMP
• IPMI
• JMX
•
Inventory
• Item Configuration
◦ Item keys
◦ Item intervals
◦ Simple intervals
◦ Custom intervals
◦ Flexible
◦ Scheduled
◦ Item retention time
◦ History retention
◦ Trend retention
◦ Value mapping
• Item types
◦ Simple Check
◦ ICMP check
5
◦ TCP port
Scenario
Scenarios
Scenarios
Scenarios
6
• Change configuration of Zabbix agent
• Add Items using Zabbix agent default functions:
◦ Check agent availability
◦ Check host uptime
◦ Check network interfaces bandwidths
◦ Check disk space availability
◦ Export some monitoring data from text file
◦ Check status of an application on target server
• Configure Zabbix agent file to allow Zabbix server run remote com-
mands
• Check status of an application on target server using remote com-
mands
• Add an “Alias” to check status of an application on target server
• Add an “UserParameter” to check status of an application on target
server
• Log monitoring using Active check
SNMP Agent
What is SNMP?
• OID
• MIB
SNMP Versions
• SNMP v1
• SNMP v2
• SNMP v3
7
Data collection methods
• Get
• Walk
Scenarios
Scenarios
Scenarios
8
• Monitoring Websites and Webservices status, speed, size
Scenarios
HTTP Agent
Scenarios
Dependent Item
Scenarios
• Get multiple OIDs with SNMP Walk in one item and put them in multi-
9
ple dependent items
• Get JSON data from an API in one item and put them in multiple de-
pendent items
• Explain and test all pre-processing functions such as:
◦ Regular expression
◦ XML XPath
◦ JSON Path
◦ CSV to JSON
◦ Custom multiplier
◦ Simple change
◦ Change per second
◦ Discard unchanged
ODBC Monitoring
Scenarios
10
• Calculate dynamically for discovered items
• Forecasting item values
Scenarios
Triggers
11
Scenarios
Templates
• Using Templates
• Find and import third party templates
• Create a Template
• Export Templates
Discoveries
• Network Discovery
◦ Top-Down Discovery
◦ Finding Network Devices using various criteria
• Auto Registration
◦ Bottom-Up Discovery
◦ Configuring Active Zabbix Agent to Auto Register device to
Zabbix
• Low Level Discovery (LLD)
◦ Finding Low Level Metrics using following methods:
◦ Zabbix Agent
◦ External Script
◦ Trapper
◦ SNMP
◦ HTTP Agent
◦ ODBC
12
◦ Create Item prototype
◦ Create Trigger prototype
◦ Configure Trigger prototype thresholds dynamically
Scenarios
Zabbix Proxy
• Zabbix Proxy
◦ Active Zabbix Proxy
◦ Passive Zabbix Proxy
• Zabbix Proxy Load Balancing (Proxy Group)
Securing Zabbix
• User
13
• Group
• Role
• Permissions
Performance Tuning
• Kernel Parameters
• Database Tuning
◦ MySQL Partitioning
◦ Optimize tables
◦ Adding Primary Key to Zabbix Database
◦ Configuring Elasticsearch as Storage
Zabbix Deployment
Zabbix Administration
Reports
14
• System Information
• Top 100 Triggers
• Inventory Report
Scenario
Zabbix Visualization
Optional: Grafana
15
سرفصلهای دوره آموزشی
Prometheus
Overview
• What is DevOps?
• What is Monitoring?
• What Is Prometheus?
• Prometheus Architecture
• Running Prometheus
• Using the Expression Browser
• Running the Node Exporter
• Alerting
Instrumentation
• A Simple Program
• The Counter
• Counting Size
• The Gauge
• The Summary
• The Histogram
16
• Unit Testing Instrumentation
• Approaching Instrumentation
Exposition
• Python
• Go
• Java
• Pushgateway
• Bridges
• Parsers
• Exposition Format
Labels
• Grafana Installation
• Data Source
• Dashboards and Panels
• Graph Panel
• Singlestat Panel
• Table Panel
• Template Variables
17
Node Exporter
• CPU Collector
• Filesystem Collector
• Diskstats Collector
• Netdev Collector
• Meminfo Collector
• Hwmon Collector
• Stat Collector
• Uname Collector
• Loadavg Collector
• Textfile Collector
Service Discovery
• cAdvisor
• Kubernetes
• Common Exporters:
• Consul
• HAProxy
• Grok Exporter
• Blackbox
18
Working with Other Monitoring Systems
Writing Exporters
• Consul Telemetry
• Custom Collectors
• Guidelines
Introduction to PromQL
• Aggregation Basics
• Selectors
• HTTP API
Aggregation Operators
• Grouping
• Operators
• Binary Operators
• Working with Scalars
• Vector Matching
• One-to-One
• Many-to-One and group_left
• Many-to-Many and Logical Operators
• Operator Precedence
19
Functions
• Changing Type
• Math
• Time and Date
• Labels
• Missing Series and absent
• Sorting with sort and sort_desc
• Histograms with histogram_quantile
• Counters
• Changing Gauges
• Aggregation over Time
Recording Rules
Alertmanager
• Notification Pipeline
• Configuration File
• Alertmanager Web Interface
20
Putting It All Together
• Planning a Rollout
• Going Global with Federation
• Long-Term Storage
• Running Prometheus
• Hardware
• Configuration Management
• Networks and Authentication
• Planning for Failure
• Managing Performance
• Managing Change
• Getting Help
21
سرفصلهای دوره آموزشی
Python
Introduction:
• Python History
• Python Features & usage
• Python versions & differences
• Interactive Environment and Interpreter of Python
• Python IDEs and PyCharm
• Running Python files from Terminal & IDE by example
• PyCharm Environment & Debuging with PyCharm
22
Computational Operators:
• Logical Operators
• Operator priority
• Exceptions & Exception Handling in Python
• Basic DataTypes & Literals
• Lists, Tuples, Sets, Sequences and dictionaries
• List & Tuple Methods Slicing And Concatenation of Sequences
• Dictionary methods
• List Comprehensions
• Unicode
• Excape Characters
• Multiline Strings
• Type casting in python
• String Methods
• String formatting
Conditional statements:
• Loops
• For loop
• While loop
• Loop controlling statements
• Nested Loops
• Using loops on Sequences & dictionaries
23
Working with files:
Functions in python:
Libraries in python:
24
Regular Expressions:
• Re library
• Urllib & request libraries
• Web scraping using urllib, request & re libraries
Class definition:
• Class initiation
• Inheritance
• Class methods and variables
• Example of using classes versus functional programming
25