Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

Configuring Zabbix step by step

blog.payperitem.com, March 30, 2025April 2, 2025

Configuring Zabbix step by step involves multiple stages, including installation, database setup, frontend configuration, and adding hosts. Below is a detailed guide:


Step 1: Install Required Packages

Before installing Zabbix, ensure your system is updated:

bash
sudo apt update && sudo apt upgrade -y # For Debian/Ubuntu
sudo yum update -y # For RHEL/CentOS

Install required dependencies:

bash
sudo apt install apache2 php php-mysql mariadb-server -y # Debian/Ubuntu
sudo yum install httpd php php-mysql mariadb-server -y # RHEL/CentOS

Step 2: Install Zabbix Server, Frontend, and Agent

For Debian/Ubuntu:

bash
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu$(lsb_release -rs)_all.deb
sudo dpkg -i zabbix-release_6.0-1+ubuntu$(lsb_release -rs)_all.deb
sudo apt update
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent -y

For RHEL/CentOS:

bash
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/$(rpm -E %{rhel})/x86_64/zabbix-release-6.0-1.el$(rpm -E %{rhel}).noarch.rpm
yum clean all
yum install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent -y

Step 3: Configure the Database

Start MariaDB

bash
sudo systemctl start mariadb
sudo systemctl enable mariadb

Secure the Database

Run the following command to set a root password and remove unnecessary settings:

bash
sudo mysql_secure_installation

Create the Zabbix Database

bash
mysql -u root -p

Inside MySQL, run:

sql
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Import the Default Schema

bash
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -u zabbix -p zabbix

Step 4: Configure Zabbix Server

Edit the Zabbix configuration file:

bash
sudo nano /etc/zabbix/zabbix_server.conf

Set the database credentials:

ini
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=StrongPassword

Save and exit (CTRL+X, then Y and Enter).

Restart and enable the Zabbix service:

bash
sudo systemctl restart zabbix-server zabbix-agent
sudo systemctl enable zabbix-server zabbix-agent

Step 5: Configure Apache for Zabbix Frontend

Edit PHP settings:

bash
sudo nano /etc/zabbix/apache.conf

Modify the timezone:

nginxCopyEditphp_value date.timezone Europe/London  # Change to your timezone

Save and exit.

Restart Apache:

bash
sudo systemctl restart apache2 # Debian/Ubuntu
sudo systemctl restart httpd # RHEL/CentOS

Step 6: Access Zabbix Web Interface

  1. Open a browser and navigate to: arduinoCopyEdithttp://<your-server-ip>/zabbix
  2. Follow the setup wizard:
    • Check prerequisites.
    • Enter database details.
    • Configure the frontend.
    • Confirm settings.
  3. Log in using: makefileCopyEditUsername: Admin Password: zabbix

Step 7: Add a Host for Monitoring

  1. Go to Configuration → Hosts.
  2. Click Create Host.
  3. Enter the hostname and IP address of the monitored machine.
  4. Assign the appropriate Zabbix Agent template.
  5. Click Add.

Step 8: Install Zabbix Agent on Client Machines

For Debian/Ubuntu Clients

bash
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu$(lsb_release -rs)_all.deb
sudo dpkg -i zabbix-release_6.0-1+ubuntu$(lsb_release -rs)_all.deb
sudo apt update
sudo apt install zabbix-agent -y

For RHEL/CentOS Clients

bash
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/$(rpm -E %{rhel})/x86_64/zabbix-release-6.0-1.el$(rpm -E %{rhel}).noarch.rpm
yum clean all
yum install zabbix-agent -y

Configure Zabbix Agent

Edit the configuration file:

bash
sudo nano /etc/zabbix/zabbix_agentd.conf

Set:

iniCopyEditServer=<Zabbix_Server_IP>

Restart the agent:

bash
sudo systemctl restart zabbix-agent
sudo systemctl enable zabbix-agent

Step 9: Enable Auto Discovery (Optional)

  1. Go to Configuration → Discovery.
  2. Click Create Discovery Rule.
  3. Define:
    • IP Range (e.g., 192.168.1.0/24)
    • Check Type (Zabbix agent, SNMP, etc.)
  4. Add actions to automatically add hosts.

Step 10: Configure Email Alerts

  1. Go to Administration → Media Types.
  2. Select Email and configure SMTP.
  3. Add actions under Configuration → Actions to send alerts.

Step 11: Optimize Performance

  1. Tune database settings in /etc/mysql/mariadb.conf.d/50-server.cnf (or /etc/my.cnf for RHEL).
  2. Set up a proxy for distributed monitoring.
  3. Use Preprocessing Rules to reduce data storage.

Step 12: Monitor & Maintain

  • Regularly check logs: bashCopyEdittail -f /var/log/zabbix/zabbix_server.log
  • Update Zabbix: bashCopyEditsudo apt update && sudo apt upgrade -y # Debian/Ubuntu sudo yum update -y # RHEL/CentOS
  • Backup Zabbix Database: bashCopyEditmysqldump -u root -p zabbix > /backup/zabbix_backup.sql

Congratulations! 🎉 You have successfully configured Zabbix!

Cloud Linux #100GbE#100GbECloudNetworking#10GbE#40GbE#5GUPF#AdaptiveResync#AdaptiveResyncNVMe#AF_XDP#AIArbitrage#AIClusterOptimization#AIInferenceonFPGA#AIModelParallelism#AIonGPUs#AIQuantTrading#AMDMPGPU#AnsibleAutomation#AnsibleForVMware#ApacheFlinkPerformance#AWSNitro#AWSVMwareCloud#Azure#AzureVMwareSolution#BareMetalCloudTuning#BareMetalServer#BatchedInferenceOptimization#BladeServers#BSOD#CacheTiering#CentOS#CephHighPerformance#CiscoACI#CiscoACIAnsible#CiscoHyperFlex#CiscoMDS#CiscoNexus#CiscoUCS#CiscoVPC#CiscoVXLAN#CloudComputing#CloudHosting#CloudMigration#CloudNative5G#Colocation#ColumnarStorageTuning#CompressionOptimization#Containerization#CUDAonVMware#CyberSecurity#CyberSecurity #WindowsSecurity #PrivacyMatters #Firewall #EndpointSecurity#DataCenter#DataCenterNetworking#DDoSProtection#DebianServer#Deduplication#DeepLearningHFT#DeepLearningInfra#DellCompellent#DellIDRAC#DellIDRACAPI#DellOpenManage#DellPowerEdge#DellPowerMax#DellPowerStore#DellUnityXT#DellVxRail#DirectFlash#DirectMarketAccess (DMA)#DirectX#DistributedTrainingInfra#DPDK#DPDKTelcoOptimizations#DPUPassthrough#DPUvsFPGA#DruidRealTimeAnalytics#DVS#DynamicCongestionControl#eBPFNetworking#EdgeAIOptimization#EdgeComputing#EnterpriseIT#ESXi#ESXiAdaptiveResync#ESXiNUMAOptimization#ESXiQueueDepth#ESXiRDMA#ESXiTuning#ETLPerformanceOptimization#FCBufferCredits#FCNPIV#FCoE#FCoEPerformance#FCPortChannel#FibreChannel#FibreChannelZoning#Firewall#FPGAforAI#FPGAforHFT#GameOptimization#GlobalEdgeRouting#GoogleCloudVMwareEngine#GPUDirectStorage#GPUPassthrough#HardenedServer#HLSforFPGA#HPC#HPCforAI#HPE3PAR#HPEAlletra#HPEGen10Plus#HPEiLO#HPEiLOAutomation#HPEInfoSight#HPEOneView#HPEPrimera#HPEProLiant#HPEStoreOnce#Hyperscale#HyperscaleLoadBalancing#HyperscaleMultiTenantSecurity#HyperV#IDSIPS#InfiniBandAI#InfrastructureAsCode#IntelFPGAAcceleration#IntelSPDK#IntrusionDetection#IOPSOptimization#IOTailLatency#iSCSI#iSCSIJumboFrames#ITInfrastructure#ITPro#JuniperNetworks#K8sMultiCloud#KafkaUltraLowLatency#KernelBypassNetworking#KubernetesCluster#KVM#LatencyArbitrageInfra#LatencyFix#LinuxServer#LUNQueueDepth#ManagedHosting#MarketDataFeedOptimization#MarketMakingAI#MellanoxConnectXPerformance#MellanoxGPUDirect#MellanoxNetworking#MellanoxRoCE#Microsegmentation#Microservices#MIGonNVIDIA#MultiAccessEdgeComputing#NASStorage#NetAppAFF#NetAppAnsibleModules#NetAppFAS#NetAppFlexGroup#NetAppMetroCluster#NetAppONTAP#NetAppSnapMirror#Networking#NeuralAccelerators#NeuralNetworkBacktesting#NFVAcceleration#NSXT#NVGPUPassthrough#NVIDIABlueField#NVMe#NVMeLatencyBenchmark#NVMeoF#NVMeoFPerformance#NVMeOverFabric#NVMePolling#NVMeQueueDepth#NVMeTCPPerformance#NVSwitchTuning#O-RANOptimization#OnChipNetworking#OpenStack#OptanePMem#P4ProgrammableNIC#PCGaming#PCIssues#PensandoDPU#PersistentMemoryRDMA#PFCforRoCE#PicoSecondPrecision#PipelinedCompute#PowerShell#ProgrammableNICs#Proxmox#PureEvergreen#PureFlashArray#PureStorage#PureX90#PyTorchXLA (Accelerated Linear Algebra for PyTorch)#QoSStorage#RAID#RDMA#RDMAonDPU#RDMAOptimization#RDMAoverEthernet#RDMAQueueDepthTuning#RDMAStorage#RedHat#ReinforcementLearningForTrading#SANStorage#SentimentAnalysisTrading#Server#ServerlessPerformanceTuning#ServerRoom#ServerSecurity#SIEM#SIEMSolutions#SOC2Compliance#SRIOV#SRIOVNetworking#SSDServers#StorageClassMemory#StorageIOControl#StorageTiers#StreamingDataOptimization#StreamProcessingAI#SubMicrosecondTrading#SysAdmin#SysAdminLife#TaskScheduler#TCPBypass#TechSupport#TelcoEdgeAI#TensorFlowXRT#Terraform#TerraformMultiCloud#TerraformVMware#TickToTradeOptimization#TinyMLPerformance#UbuntuServer#UltraLowLatencyFPGA#vCloudDirector#VectorizedQueryExecution#VFIO#vGPUPassthrough#VMDirectPathIO#vMotion#VMware#VMwareHCX#VMwarePowerCLI#VMwarePVRDMA#VMwareSmartNIC#VPSHosting#vRANPerformanceTuning#vSANDeduplication#vSANPerformance#vSANResyncImpact#vSphere#vSphereMultiCloud#vSphereOptimization#WindowsAutomation#WindowsDebugging#WindowsFix#WindowsGaming#WindowsServer#WriteAmplification#WriteBackCaching#XilinxAlveo#XilinxSmartNIC#ZeroCopyNetworking#ZeroLatencyInference#ZeroTrustArchitecture#ZFSPerformanceTuning

Post navigation

Previous post
Next post

Related Posts

Migrating from Google Workspace to Office 365

April 7, 2025

Migrating from G Suite (now known as Google Workspace) to Microsoft Office 365 (O365) can be a significant undertaking. Below is a comprehensive step-by-step guide to help ensure a smooth transition. Step 1: Planning the Migration Step 2: Prepare Google Workspace Step 3: Setup Office 365 Step 4: Migrate Data…

Read More

Microsoft 365 Enterprise plans 2025

April 8, 2025April 8, 2025

Office 365 (now branded as Microsoft 365) offers several Enterprise plans tailored to the needs of medium to large organizations. These plans include a mix of productivity apps, security features, compliance tools, and collaboration services. Here’s a breakdown of the main Microsoft 365 Enterprise plans as of 2025: 🔹 Microsoft…

Read More

Horilla HRM (an open-source HR management system)

April 7, 2025April 7, 2025

To configure Horilla HRM (an open-source HR management system) on Ubuntu, follow this step-by-step guide. This assumes a clean Ubuntu 22.04 or later system, and that you want to run it locally or on a small server. ✅ Prerequisites 🚀 Step 1: Update System bashsudo apt update && sudo apt…

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }