How to monitor infra using Zabbix for Enterprise
What it can monitor?
Zabbix can monitor a large number of components, including:
Zabbix Architecture:
Similar Tools
SolarWinds:
Nagios:
Grafana:
Datadog:
Why Zabbix Stands out?
Due to its robust feature set, scalability, and ease of use. It provides a comprehensive solution for monitoring diverse IT environments, and its flexibility allows for customization to meet specific needs.
Supports Many Integration with other Tools like Grafana, Prometheus, ServiceNow, Jira, . etc.
Zabbix Elements:
Zabbix Server
This is the heart of the Zabbix software. The Server can perform simple service checks on networked services (such as web servers and mail servers), but it is also the central component to which the Agents will report availability and integrity information and statistics. The Server is the central repository for all configuration, statistical, and operational data, and it is the entity in the Zabbix software that actively alerts administrators when a problem occurs in any of the monitored systems.
Zabbix proxy
Zabbix proxy used to get the metrics from clients in behalf of Zabbix server. its most used for Remote locations and access restricted network zones.
Zabbix Proxies can also be used to distribute load of a single Zabbix Server. In this case, only Proxies collect data this making processing on the Server less CPU and disk I/O hungry.
Proxy get the all the metrics and saved into Databases, and send the data to Zabbix server for centralized monitoring.
Dashboard
Allow to Group the multiple items and metrics in Same type of devices on dashboard.
we can create multiple Dashboards and its also includes Maps, Graphs, screens.
Visualize the data collected by Zabbix , show the data in Multiple formats like Graph , Pie chart, Analog, Log Format, Text. etc.
Server Status:
Website Status:
Screens
Its like a Slide show. Move the pages in Dashboard automatically and refresh the values in specified period.
Graph
Metrics data convert into time series values and added in X and Y values, for specific time period.
Zabbix Agent
Zabbix Agent2
Store data
Zabbix support multiple Databases PostgreSQL, SQLite, and Oracle. Using Database zabbix store the all the collected metrics, Components, Templates, items, host, and all the zabbix web components.
Host
Network connected devices are configured in hosts. it can be Servers, Network Switches, Firewalls, Websites, Databases, etc.
Item
Trigger
Trigger configured from items. If the item value has changed to specific pattern in particular time trigger will indicate to zabbix.
Template
Pre-defined functions for monitor the end devices. Its includes items, Triggers, Graphs, web configurations, Discovery rules, Application, linked Templates.
Ex: Linux Templates in zabbix
Media Types
All the Webhook, Email, Slack, etc, configuration saved in Media Types. Using media types alerts will send to users as per trigger Action configurations.
Ex: Media Types
Maps
Identify the device how they interconnected with each others. we can create the Network Map by own, and create the connection flow for across devices. Through network able identify the device issues where the service failed by easy way.
Automated device management :
Inventory Management: Automated tools can maintain an up-to-date inventory of all devices in the network.
LLD - low level discovery
Using low level discover Zabbix discover the new hosts or items based on the discovery rules.
Example:
we have installed the Zabbix agent for 50 Linux servers, if we configure the all Hosts by manually we need huge time, To achieve this Zabbix can monitor the network and add the hosts based on conditions it will create a hosts in Zabbix server using discovery mechanism.
Case Study
Monitor VMware ESXI
3rd Party Templates: https://www.zabbix.com/integrations/vmware#3rd_party
We can monitor using VMWare ESXI by Zabbix Simple Check and SNMP
Using Simple Check we can connect over HTTP connections get the metrics by Zabbix discovery rules and create the VM hosts on Zabbix.
领英推荐
Example:
Set-Up Macros
Monitor Fortigate Firewall
Using HTTP
Requirements
Zabbix version= 6.4 and higher.
Tested versions
This template has been tested on: = FortiGate v7.4.0
Using SNMP
3rd Party Templates: Fortinet monitoring and integration with Zabbix
About SNMP:
OID = Object identifier , Links to each metric, specific for Each device
MIB =
Location: /usr/share/snmp/mibs
Check the net-snmp.sourceforge.net
SNMPv1 - Old protocol, Not encrypted Transmission, not supported for 64 Char.
SNMPv2 - same as SNMPv1, But Support 64 bit chars, Mostly used
SNMPv3 - Supports Encrypted Connection, Authentication and configuration little complicated
Check SNMP Status:
snmpwalk -v2c -c<community_name> <ip> <OID>(1.3.6.1.2.1.1)
SNMP Trap
Install SNMP trap on zabbix server or proxy server then configure according to device to monitor
Example:
vim /etc/snmp/snmptrapd.conf
#Add below lines
add authCommunity execute <community name>
log file /tmp/zabbix_traps.tmp # SNMP log file
perl do "script_zabbbix_trap_receiver.pl" # add the script file location
Download SNPM trap script form zabbix-github docs
Check SNMP status
snmptrap -v2c -c<commonutiny_name> <ip> '' <OID_of Device> "link down example v2c"
Monitor Fortigate Firewall
Using SNMP
Go to Forticlient Setup new SNMP configuration
Create New SNMPv1/v2c
Add Community Name= fortinet (case-sensitive)
IP Address= <zabbix_Server_IP>
v1 Port= Enbale,Traps local port =162 , Remote Port =162
Enable SNMP Events and Save , APPLY.
Open the Network Interface for SNMP
Add network mask : <zabbix-ip>/netmask
Choose SNMP protocol from Administrative Access
Add SNMP Host in Zabbix
Download Template SNMP Fortinet devices v2019 download from Zabbix-github and import it.
Add SNMP IP ,Port and Choose SNMPv2 version
Add SNMP Community : < same_name_crrated_on_fortigate>
Monitor Cisco Switches
Example:
Get Cisco Check the SNMP OID for Cisco device
Template: Net Cisco IOS SNMPv2 ( choose based on cisco version)
Add SNMP <Community name>
Check SNMP Status:
snmpwalk -v2c -c<community_name> <ip> 1.3.6.1.2.1.1
SNMPv2-MIB:: sysDescr.0
SNMPv2-MIB::sysObjectID.0 OID::enterprises.9.1.324
Monitor items by SNMP:
CPU, Memory, Fan Status, Network Interface speed, Temperature
Monitor Windows PC using SNMP
Step 1: Enable SNMP on the Windows PC:
Step 2: Configure SNMP Monitoring on Zabbix:
Step 3: Test SNMP Monitoring:
Check Connectivity & Verify SNMP Metrics
Monitor using HTTP/Ping/Curl/Telnet
Using Ping command we can monitor the connectivity of network devices and trigger alerts when ping request fails.
HTTP Request
Monitor the websites by sending HTTP request , get metrics about website status, SSL status, Connection Speed, Website data.
Cons: