<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ari Rama Novryadi on Medium]]></title>
        <description><![CDATA[Stories by Ari Rama Novryadi on Medium]]></description>
        <link>https://medium.com/@anovryadi86?source=rss-0b749f9b2b22------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ja0DUtOg_Oqhbmvc</url>
            <title>Stories by Ari Rama Novryadi on Medium</title>
            <link>https://medium.com/@anovryadi86?source=rss-0b749f9b2b22------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:03:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anovryadi86/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Integrating ELK, MinIO, and Zabbix into a Mini Infrastructure Monitoring & Disaster Recovery…]]></title>
            <link>https://medium.com/@anovryadi86/integrating-elk-minio-and-zabbix-into-a-mini-infrastructure-monitoring-disaster-recovery-024908f09c5d?source=rss-0b749f9b2b22------2</link>
            <guid isPermaLink="false">https://medium.com/p/024908f09c5d</guid>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[elk]]></category>
            <category><![CDATA[minio]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ari Rama Novryadi]]></dc:creator>
            <pubDate>Tue, 26 May 2026 06:49:46 GMT</pubDate>
            <atom:updated>2026-05-26T06:49:46.580Z</atom:updated>
            <content:encoded><![CDATA[<h3>Integrating ELK, MinIO, and Zabbix into a Mini Infrastructure Monitoring &amp; Disaster Recovery Environment</h3><h3><strong>Introduction</strong></h3><p>Previously, I had already deployed several standalone infrastructure services on separate virtual machines, including:</p><ul><li>Elasticsearch and Kibana for centralized logging and observability</li><li>MinIO for S3-compatible object storage</li><li>Zabbix for infrastructure monitoring</li></ul><p>Rather than creating everything from scratch, the focus of this project was:</p><h4><strong>Integrating existing infrastructure services into a centralized automated backup, monitoring, and disaster recovery workflow.</strong></h4><p>The final result was a mini enterprise-style infrastructure environment capable of:</p><ul><li>automated Elasticsearch snapshot backup</li><li>centralized object storage</li><li>monitoring &amp; alerting</li><li>disaster recovery simulation</li><li>backup validation</li></ul><h3><strong>Infrastructure Overview</strong></h3><p>Virtual Machines</p><p><strong>ELK VM</strong></p><ul><li>OS: Rocky Linux</li><li>Purpose: Elasticsearch, Kibana and Logstash</li><li>Resource: 2 vCPU, 4 GB RAM, 25 GB Disk</li></ul><p><strong>MinIO VM</strong></p><ul><li>OS: Rocky Linux</li><li>Purpose: S3-Compatible Object Storage</li><li>Resource: 1 vCPU, 2 GB RAM, 20 GB Disk</li></ul><p><strong>Zabbix VM</strong></p><ul><li>OS: Ubuntu Server</li><li>Purpose: Monitoring &amp; Alerting</li><li>Resource: 2 vCPU, 4 GB RAM, 30 GB Disk</li></ul><h3><strong>Project Objectives</strong></h3><p>This project was designed to simulate several real-world infrastructure concepts:</p><p>✅ Infrastructure Integration<br>✅ Observability<br>✅ Automated Backup<br>✅ Object Storage Integration<br>✅ Monitoring &amp; Alerting<br>✅ Disaster Recovery Validation</p><h3>Initial Environment</h3><p>At the beginning of the project:</p><ul><li>ELK Stack was already running</li><li>MinIO server was already deployed</li><li>Zabbix monitoring server already existed</li></ul><p>However, all services were still operating independently.</p><p>The next challenge was:</p><h3>connecting and integrating all infrastructure components into a unified workflow.</h3><h3>Step 1 — Preparing MinIO Object Storage</h3><p>The first integration step was configuring MinIO as a snapshot repository for Elasticsearch.</p><p>Inside MinIO:</p><ul><li>a dedicated bucket was created</li><li>bucket name: <strong>elastic-backup</strong></li></ul><p>This bucket would later store Elasticsearch snapshots.</p><h3>Step 2 — Elasticsearch Snapshot Repository Configuration</h3><p>Elasticsearch supports S3-compatible storage using snapshot repositories.</p><p>To integrate Elasticsearch with MinIO, I configured a repository connection:</p><pre>curl -X PUT &quot;localhost:9200/_snapshot/minio_backup&quot; \<br>-H &#39;Content-Type: application/json&#39; \<br>-d &#39;<br>{<br>  &quot;type&quot;: &quot;s3&quot;,<br>  &quot;settings&quot;: {<br>    &quot;bucket&quot;: &quot;elastic-backup&quot;,<br>    &quot;endpoint&quot;: &quot;192.168.200.239:9000&quot;,<br>    &quot;protocol&quot;: &quot;http&quot;,<br>    &quot;path_style_access&quot;: true<br>  }<br>}&#39;</pre><h3>Problem Encountered — Authentication Error</h3><p>Initially Elasticsearch returned:</p><pre>missing authentication credentials</pre><p>This happened because snapshot operations required proper authentication or repository validation.</p><h3>Problem Encountered — Repository Verification Failure</h3><p>Another issue occurred:</p><pre>repository_verification_exception</pre><p>After troubleshooting, several root causes were identified:</p><ul><li>Elasticsearch could not reach MinIO endpoint</li><li>bucket had not been properly validated</li><li>VM time synchronization problem</li><li>MinIO connection timeout</li></ul><h3>Step 3 — Verifying MinIO Connectivity</h3><p>Connectivity between ELK VM and MinIO VM was tested using:</p><pre>curl http://192.168.200.239:9000/minio/health/live</pre><p>Successful response:</p><pre>200 OK</pre><p>This confirmed:</p><ul><li>network communication worked</li><li>MinIO service was reachable</li><li>firewall configuration was correct</li></ul><h3>Problem Encountered — Time Synchronization Issue</h3><p>One of the most important troubleshooting discoveries was:</p><h4>time synchronization inconsistency between VMs.</h4><p>Elasticsearch snapshot verification produced:</p><pre>The difference between the request time and the server&#39;s time is too large</pre><p>This happened because:</p><ul><li>ELK VM and MinIO VM had different timestamps</li><li>S3-compatible storage depends heavily on synchronized time</li></ul><h3>Step 4 — Fixing NTP / Chrony Synchronization</h3><p>Chrony synchronization was repaired on the virtual machines.</p><p>Commands used:</p><pre>chronyc tracking<br>chronyc sources<br>chronyc makestep</pre><p>After synchronization:</p><ul><li>timestamps became identical</li><li>repository verification succeeded</li></ul><p>This was a valuable lesson regarding infrastructure synchronization requirements.</p><h3>Step 5 — Successful Snapshot Repository Integration</h3><p>After troubleshooting:</p><ul><li>Elasticsearch successfully connected to MinIO</li><li>snapshot repository verification succeeded</li><li>snapshots could finally be created</li></ul><h3>Step 6 — Creating Automated Backup Script</h3><p>A backup automation script was created on the ELK VM.</p><p>Location:</p><pre>/opt/elastic-backup/backup.sh</pre><p>Main responsibilities:</p><ul><li>generate snapshot names automatically</li><li>create Elasticsearch snapshots</li><li>send snapshots to MinIO bucket</li><li>log backup results</li></ul><p>Example snapshot names:</p><pre>snapshot-20260526-0924<br>snapshot-20260526-1118</pre><h3>Step 7 — Automating Backup using Cronjob</h3><p>To automate backup execution, cronjob scheduling was implemented.</p><p>Configuration:</p><pre>0 1 * * * /opt/elastic-backup/backup.sh &gt;&gt; /var/log/elastic-backup.log 2&gt;&amp;1</pre><p>This configuration automatically runs backup every day at 01:00 AM.</p><h3>Step 8 — Backup Logging</h3><p>Every backup execution generated logs stored in:</p><pre>/var/log/elastic-backup.log</pre><p>The logs contain:</p><ul><li>execution timestamp</li><li>snapshot name</li><li>Elasticsearch response</li><li>backup status</li></ul><p>These logs later became the basis for monitoring integration.</p><h3>Step 9 — Integrating Zabbix Monitoring</h3><p>The next step was integrating backup monitoring using Zabbix.</p><p>Since Zabbix server already existed on a separate Ubuntu VM, only the ELK VM needed to be integrated.</p><h3>Step 10 — Installing and Configuring Zabbix Agent</h3><p>On the ELK VM:</p><ul><li>Zabbix Agent 2 was installed</li><li>ELK VM was connected to Zabbix server</li></ul><p>Main configuration:</p><pre>Server=192.168.200.222<br>ServerActive=192.168.200.222<br>Hostname=elk-server</pre><h3>Problem Encountered — Zabbix Access Restriction</h3><p>Initially, Zabbix returned:</p><pre>Check access restrictions in Zabbix agent configuration</pre><p>The issue happened because:</p><ul><li>incorrect server IP was configured</li><li>monitoring requests were rejected</li></ul><p>After correcting the IP configuration:</p><ul><li>monitoring connection became successful</li><li>Zabbix status turned green</li></ul><h3>Step 11 — Creating Custom Backup Monitoring Metric</h3><p>A custom UserParameter was added:</p><pre>UserParameter=elastic.backup.status,test -f /var/log/elastic-backup.log &amp;&amp; grep -q &quot;SUCCESS&quot; /var/log/elastic-backup.log &amp;&amp; echo 1 || echo 0</pre><p>This parameter checks:</p><ul><li>whether backup log exists</li><li>whether latest backup succeeded</li></ul><p>Possible outputs:</p><ul><li>1 → backup successful</li><li>0 → backup failed</li></ul><h3>Step 12 — Creating Custom Zabbix Item</h3><p>Inside Zabbix frontend:</p><ul><li>a custom item was created</li><li>item key:</li></ul><pre>elastic.backup.status</pre><p>This allowed Zabbix to collect backup status directly from the ELK VM.</p><h3>Step 13 — Creating Backup Failure Trigger</h3><p>A custom trigger was configured:</p><pre>last(/elk-server/elastic.backup.status)=0</pre><p>If backup fails:</p><ul><li>trigger automatically becomes active</li><li>Zabbix displays a problem alert</li></ul><h3>Step 14 — Simulating Backup Failure</h3><p>To validate monitoring:</p><ul><li>backup log file was intentionally removed</li></ul><p>Command:</p><pre>mv /var/log/elastic-backup.log /var/log/elastic-backup.log.bak</pre><p>Results:</p><ul><li>monitoring value changed to 0</li><li>Zabbix trigger activated successfully</li><li>alert appeared in monitoring dashboard</li></ul><p>This proved:</p><h4>monitoring and alerting workflow was functioning correctly.</h4><h3>Step 15 — Disaster Recovery Simulation</h3><p>The most important validation stage was:</p><h4>disaster recovery testing.</h4><p>A backup system is only valuable if restore operations are tested successfully.</p><h3>Step 16 — Creating Test Elasticsearch Index</h3><p>A test index was created:</p><pre>curl -X PUT localhost:9200/test-dr</pre><p>Sample data was inserted:</p><pre>curl -X POST localhost:9200/test-dr/_doc \<br>-H &#39;Content-Type: application/json&#39; \<br>-d &#39;<br>{<br>  &quot;message&quot;: &quot;disaster recovery simulation&quot;,<br>  &quot;status&quot;: &quot;success&quot;<br>}&#39;</pre><h3>Step 17 — Verifying Stored Data</h3><p>Data verification:</p><pre>curl localhost:9200/test-dr/_search?pretty</pre><p>The inserted document appeared successfully.</p><h3>Step 18 — Creating Snapshot Backup</h3><p>The backup script was executed manually:</p><pre>/opt/elastic-backup/backup.sh</pre><p>A new snapshot was successfully stored inside MinIO.</p><h3>Step 19 — Simulating Data Loss</h3><p>To simulate disaster conditions:</p><pre>curl -X DELETE localhost:9200/test-dr</pre><p>The index was completely removed from Elasticsearch.</p><h3>Step 20 — Restoring Snapshot from MinIO</h3><p>Snapshot restore process:</p><pre>curl -X POST \<br>localhost:9200/_snapshot/minio_backup/snapshot-20260526-1118/_restore \<br>-H &#39;Content-Type: application/json&#39; \<br>-d &#39;<br>{<br>  &quot;indices&quot;: &quot;test-dr&quot;,<br>  &quot;include_global_state&quot;: false<br>}&#39;</pre><h3>Step 21 — Verifying Disaster Recovery</h3><p>After restore:</p><ul><li>the index returned successfully</li><li>the data was fully recovered</li></ul><p>This validated:</p><ul><li>snapshot integrity</li><li>restore functionality</li><li>disaster recovery capability</li></ul><h3>Real-World Infrastructure Concepts Learned</h3><p>This project helped strengthen understanding of:</p><h4>Infrastructure Integration</h4><p>Connecting multiple independent services into one workflow.</p><h3>Observability</h3><p>Monitoring infrastructure health and backup status.</p><h3>Backup Automation</h3><p>Automating snapshot creation using cronjob and scripting.</p><h3>Object Storage Integration</h3><p>Using MinIO as S3-compatible centralized storage.</p><h3>Monitoring &amp; Alerting</h3><p>Using Zabbix for automated failure detection.</p><h3>Disaster Recovery</h3><p>Testing snapshot restore capability to validate backup integrity.</p><h3>Troubleshooting</h3><p>Resolving:</p><ul><li>network timeout</li><li>repository verification failure</li><li>time synchronization issues</li><li>monitoring access restriction</li><li>backup validation problems</li></ul><h3>Future Improvements</h3><p>Planned improvements include:</p><ul><li>Kibana monitoring dashboard</li><li>Telegram/Discord alert notification</li><li>snapshot retention automation</li><li>HTTPS/TLS security</li><li>multi-node deployment</li><li>high availability architecture</li></ul><h3>Conclusion</h3><p>This project successfully transformed several standalone infrastructure services into a centralized monitoring, backup, and disaster recovery environment.</p><p>The most valuable part of this implementation was not simply creating backups, but validating the restore process itself through disaster recovery simulation.</p><p>This project provided practical experience in:</p><ul><li>infrastructure integration</li><li>automation</li><li>observability</li><li>monitoring</li><li>backup validation</li><li>disaster recovery workflows</li></ul><p>which are all highly relevant concepts in modern infrastructure and DevOps environments.</p><h3>DOCUMENTATION</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4G-qwgzUT7pHsNv1RgVCBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQeCIHkvVc55JHe71oOkcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5fNuoB80SWTn5xfH-jJSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxzjBPFVvg2SMCWScjixgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ak3FHSekkclTVUdkNTIr3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34SVzKH9S0oDmGiHMXZUVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YoVVcg34BvTS0e1QIqatg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=024908f09c5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Centralized Logging & Monitoring using ELK Stack (Elasticsearch, Logstash, Kibana)]]></title>
            <link>https://medium.com/@anovryadi86/centralized-logging-monitoring-using-elk-stack-elasticsearch-logstash-kibana-cc0154262563?source=rss-0b749f9b2b22------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc0154262563</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[elk-stack]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[kibana]]></category>
            <category><![CDATA[logstash]]></category>
            <dc:creator><![CDATA[Ari Rama Novryadi]]></dc:creator>
            <pubDate>Fri, 08 May 2026 03:09:27 GMT</pubDate>
            <atom:updated>2026-05-08T03:09:27.753Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In modern infrastructure, logs play a critical role in monitoring, troubleshooting, and understanding system behavior. However, managing logs from multiple systems can quickly become complex without a centralized solution.</p><p>In this project, I built a centralized logging system using the ELK Stack — Elasticsearch, Logstash, and Kibana — to collect, process, and visualize logs in real time.</p><p>This setup simulates how logging is handled in real-world production environments, especially in DevOps and Infrastructure roles.</p><h3>Architecture Overview</h3><p>The system consists of three main components:</p><ul><li><strong>Elasticsearch</strong> → stores and indexes log data</li><li><strong>Logstash</strong> → collects and processes logs</li><li><strong>Kibana</strong> → visualizes and analyzes logs</li></ul><p><strong>Flow:</strong><br> Log Source → Logstash → Elasticsearch → Kibana</p><h3>Environment Setup</h3><ul><li><strong>Operating System:</strong></li><li>Rocky Linux 9</li></ul><p><strong>Virtual Machine Specs:</strong></p><ul><li>CPU: 2 vCPU</li><li>RAM: 4 GB</li><li>Storage: 25 GB</li><li>Network: NAT (Adapter 1) / Host-Only (Adapter 2)</li></ul><p><strong>Tools Used:</strong></p><ul><li>Elasticsearch</li><li>Logstash</li><li>Kibana</li></ul><p>All components were installed and configured manually to understand how each service works internally.</p><h3>Implementation Steps</h3><p><strong>1 — Install Java (OpenJDK 21)</strong></p><p>Elasticsearch requires Java to run.</p><pre>sudo dnfupdate<br>sudo dnfinstall openjdk-21-jdk -y</pre><p>Verify installation</p><pre>java -version</pre><p>Output should show Java 21 installed.</p><p><strong>2 — Install Elasticsearch</strong></p><p>Add Elasticsearch Repository</p><pre>sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch</pre><pre>sudo vi /etc/yum.repos.d/elasticsearch.repo</pre><p>Add:</p><pre>[elasticsearch]<br>name=Elasticsearch repository<br>baseurl=https://artifacts.elastic.co/packages/8.x/yum<br>gpgcheck=1<br>gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch<br>enabled=1</pre><p>Install Elasticsearch</p><pre>sudo dnf install elasticsearch -y</pre><p>Configure Elasticsearch</p><pre>sudo vi /etc/elasticsearch/elasticsearch.yml</pre><p>Edit:</p><pre>network.host: 0.0.0.0<br>http.port: 9200<br>discovery.type: single-node</pre><p>Start Elasticsearch</p><pre>sudo systemctl daemon-reexec<br>sudo systemctl enable elasticsearch<br>sudo systemctl start elasticsearch</pre><p>Verify Elasticsearch</p><pre>curl localhost:9200</pre><p>JSON response indicates Elasticsearch is running.</p><p><strong>3 — Install Logstash</strong></p><pre>sudo dnf install logstash -y</pre><p>Configure Logstash Pipeline</p><pre>sudo vi /etc/logstash/conf.d/pipeline.conf</pre><p>Add:</p><pre>input {<br>  stdin {}<br>}<br><br>output {<br>  elasticsearch {<br>    hosts =&gt; [&quot;http://localhost:9200&quot;]<br>    user =&gt; &quot;elastic&quot;<br>    password =&gt; &quot;your_password&quot;<br>    index =&gt; &quot;test-logstash&quot;<br>  }<br><br>  stdout { codec =&gt; rubydebug }</pre><p>To setup the password:</p><pre>sudo /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic</pre><p>Run Logstash</p><pre>sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/pipeline.conf</pre><p>Test input:</p><pre>hello elk</pre><p>Data will be sent to Elasticsearch.</p><p><strong>4 — Install Kibana</strong></p><pre>sudo dnf install kibana -y</pre><p>Configure Kibana</p><pre>sudo vi/etc/kibana/kibana.yml</pre><p>Edit:</p><pre>server.port: 5601<br>server.host: &quot;0.0.0.0&quot;<br>elasticsearch.hosts: [&quot;http://localhost:9200&quot;]</pre><p>Start Kibana</p><pre>sudo systemctl enable kibana<br>sudo systemctl start kibana</pre><p>Acces Kibana — via Browser</p><pre>http://&lt;your-server-ip&gt;:5601</pre><p><strong>5 — Create Data View</strong></p><p>a. Go to <strong>Stack Management</strong></p><p>b. Click <strong>Data Views</strong></p><p>c. Click <strong>Create Data View</strong></p><p>d. Fill:</p><ul><li>Name: logstash</li><li>Index: test-logstash</li></ul><p>e. Select:</p><ul><li>@timestamp</li></ul><p>Click <strong>Save</strong></p><p>6 — View Log in Kibana</p><p>Go to:</p><pre>Discover</pre><p>Select: logstash</p><p>Logs will appear with:</p><ul><li>Timestamp</li><li>Message</li><li>Fields</li></ul><p><strong>Results:</strong></p><p>The system successfully:</p><ul><li>Collects logs via Logstash</li><li>Stores logs in Elasticsearch</li><li>Visualizes logs in Kibana</li></ul><p>You can:</p><ul><li>Search logs in real time</li><li>Filter using KQL</li><li>Analyze system behavior</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDM__GMlJVkODz8xdvLM2g.png" /><figcaption>Kibana Log Analysis Dashboard</figcaption></figure><h4>Features Implemented</h4><ul><li>Centralized logging system</li><li>Real-time log ingestion</li><li>Elasticsearch indexing</li><li>Kibana visualization</li><li>Log filtering using KQL</li></ul><h3>Troubleshooting</h3><h4>❌ Elasticsearch not running</h4><p><strong>Error:</strong> master not discovered</p><p><strong>Solution:</strong></p><ul><li>Check configuration</li><li>Restart service</li></ul><h4><strong>❌ Kibana not accessible</strong></h4><pre>sudo systemctl restart kibana</pre><h4>❌ Logs not appearing</h4><ul><li>Verify Logstash pipeline</li><li>Ensure Elasticsearch is active</li></ul><h3>Conclusion</h3><p>This project demonstrates how to build a centralized logging system using ELK Stack on Rocky Linux.</p><p>With this setup:</p><ul><li>Logs are centralized</li><li>Troubleshooting becomes faster</li><li>Monitoring becomes more efficient</li></ul><h3>Closing</h3><p>Through this project, I gained hands-on experience in:</p><ul><li>Linux System Administration</li><li>Log Aggregation &amp; Processing</li><li>Data Pipeline (ELK)</li><li>Observability &amp; Monitoring</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc0154262563" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[End-to-End Infrastructure Monitoring using Zabbix on Ubuntu (Server, Agent, and Apache)]]></title>
            <link>https://medium.com/@anovryadi86/end-to-end-infrastructure-monitoring-using-zabbix-on-ubuntu-server-agent-and-apache-14f8118967a6?source=rss-0b749f9b2b22------2</link>
            <guid isPermaLink="false">https://medium.com/p/14f8118967a6</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Ari Rama Novryadi]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 12:01:09 GMT</pubDate>
            <atom:updated>2026-04-13T12:10:26.140Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>How do we ensure a server stays healthy without constantly checking it manually?</p><p>In real-world IT environments, monitoring plays a critical role. Without a proper monitoring system, issues like high CPU usage, memory leaks, or service downtime can go unnoticed until they cause major disruptions.</p><p>In this project, I implemented a <strong>complete monitoring system using Zabbix</strong>, starting from server setup to client-side monitoring using Zabbix Agent, and finally integrating an Apache web server for real-world testing.</p><h3>Project Objectives</h3><p>This project aims to:</p><ul><li>Build a monitoring system using open-source tools</li><li>Understand Zabbix architecture (server, agent, database, frontend)</li><li>Monitor a client machine in real-time</li><li>Simulate a real-world use case using Apache web server</li></ul><h3>Environment Setup</h3><ul><li>Ubuntu Server 20.04</li><li>MySQL (Database)</li><li>Apache2 (Web Server)</li><li>Zabbix 6.0 (Monitoring Tool)</li></ul><h3>PART 1 — Zabbix Server Setup</h3><ol><li>Installing MySQL</li></ol><pre>sudo apt update<br>sudo apt install mysql-server</pre><p>2. Creating Zabbix Database</p><pre>CREATE DATABASE zabbixdb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;<br>CREATE USER &#39;zabbix&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;password&#39;;<br>GRANT ALL PRIVILEGES ON zabbixdb.* TO &#39;zabbix&#39;@&#39;localhost&#39;;<br>FLUSH PRIVILEGES;</pre><p>This database will store all monitoring data.</p><p>3. Installing Apache and PHP</p><p>Before installing Zabbix frontend, I prepared the web server environment using Apache and PHP</p><pre>sudo apt install apache2 php php-mysql php-gd php-xml php-bcmath php-mbstring php-ldap php-json php-zip -y</pre><p>Why this is important:<br>Zabbix frontend is web-based, so it requires:</p><ul><li>Apache → to serve the web interface</li><li>PHP → to process the application logic</li></ul><p>4. Installing Zabbix Repository</p><pre>wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu20.04_all.deb<br>sudo dpkg -i zabbix-release_6.0-4+ubuntu20.04_all.deb<br>sudo apt update</pre><p>5. Installing Zabbix Components</p><pre>sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent zabbix-sql-scripts -y</pre><p>Installed components:</p><ul><li>zabbix-server-mysql → core monitoring engine</li><li>zabbix-frontend-php → web interface</li><li>zabbix-apache-conf → Apache configuration for Zabbix</li><li>zabbix-agent → local monitoring</li><li>zabbix-sql-scripts → database schema</li></ul><p>6. Importing Database Schema</p><pre>zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -u zabbix -p zabbixdb</pre><p>7. Configuring Zabbix Server</p><pre>sudo nano /etc/zabbix/zabbix_server.conf</pre><p>Update:</p><pre>DBName=zabbixdb<br>DBUser=zabbix<br>DBPassword=password</pre><p>8. Configuring PHP for Zabbix</p><p>Zabbix frontend requires proper PHP settings.</p><pre>sudo nano /etc/zabbix/apache.conf</pre><p>Adjust timezone (important):</p><pre>php_value date.timezone Asia/Jakarta</pre><p>9. Starting Services</p><pre>sudo systemctl restart zabbix-server apache2 zabbix-agent</pre><p>10. Accessing Zabbix Web Interface</p><p>Open in browser:</p><pre>http://&lt;SERVER_IP&gt;/zabbix</pre><p>Complete the setup via GUI.</p><h4>Step 1 — Check of Pre-requisites</h4><p>Zabbix will automatically check the following:</p><ul><li>PHP version</li><li>PHP extensions</li><li>Configuration values</li></ul><p>✅ Make sure all statuses show: <strong>OK (green)</strong></p><p>❗ If there are errors, they are usually caused by:</p><ul><li>Missing PHP extensions</li><li>Timezone not configured</li></ul><h4>Step 2 — Configure Database Connection</h4><p>Fill in the details based on your previous configuration:</p><ul><li><strong>Database type</strong>: MySQL</li><li><strong>Database host</strong>: localhost</li><li><strong>Database port</strong>: 0 (default)</li><li><strong>Database name</strong>: zabbixdb</li><li><strong>User</strong>: zabbix</li><li><strong>Password</strong>: password</li></ul><p>Click <strong>Next step</strong></p><p>📌 This step connects the Zabbix frontend to the database.</p><h4>Step 3 — Zabbix Server Details</h4><p>Fill in the following:</p><ul><li><strong>Host</strong>: localhost</li><li><strong>Port</strong>: 10051</li><li><strong>Name</strong>: (optional, e.g., <em>Zabbix Monitoring Server</em>)</li></ul><p>Click <strong>Next step</strong></p><p>📌 Port <strong>10051</strong> is the default port used by the Zabbix Server.</p><h4>Step 4 — Pre-installation Summary</h4><p>A summary of your configuration will be displayed.</p><p>👉 Double-check:</p><ul><li>Database configuration is correct</li><li>Server configuration is correct</li></ul><p>Click <strong>Next step</strong></p><h4>Step 5 — Installation</h4><p>If everything is configured correctly, you will see:</p><p>✅ <strong>Installation successful</strong></p><p>Click <strong>Finish</strong></p><h4>Step 6 — Login to Dashboard</h4><p>Use the default credentials:</p><ul><li><strong>Username</strong>: Admin</li><li><strong>Password</strong>: zabbix</li></ul><h4>Step 7 — Initial Dashboard</h4><p>After logging in:</p><ul><li>You will see the main dashboard</li><li>No hosts are configured yet (this is normal)</li></ul><h3>Result</h3><p>At this stage:</p><ul><li>Zabbix server is running</li><li>Web dashboard is accessible</li><li>Monitoring system is ready</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQsnYCa1TnAev8HfcAjeiQ.png" /><figcaption>Dashboard Zabbix Monitoring without Agent or Host</figcaption></figure><h3>PART 2 — ZABBIX AGENT SETUP (CLIENT)</h3><p>11. Install Zabbix Agent</p><pre>sudo apt update<br>sudo apt install zabbix-agent -y</pre><p>12. Configure Agent</p><pre>sudo nano /etc/zabbix/zabbix_agentd.conf</pre><p>Edit:</p><pre>Server=&lt;ZABBIX_SERVER_IP&gt;<br>ServerActive=&lt;ZABBIX_SERVER_IP&gt;<br>Hostname=client01</pre><p>13. Start Agent</p><pre>sudo systemctl restart zabbix-agent<br>sudo systemctl enable zabbix-agent</pre><p>Check:</p><pre>systemctl status zabbix-agent</pre><p>Make sure the status is active.</p><h3>PART 3 — APACHE SETUP (CLIENT)</h3><p>14. Install Apache</p><pre>sudo apt install apache2 -y</pre><p>15. Enable Status Module</p><pre>sudo a2enmod status</pre><p>16. Configure Status</p><pre>sudo nano /etc/apache2/mods-enabled/status.conf</pre><p>(Optional: allow access from your network)</p><p>17. Restart Apache</p><pre>sudo systemctl restart apache2</pre><h3>PART 4 — LOAD TESTING</h3><p>18. Install Apache Benchmark</p><pre>sudo apt install apache2-utils -y</pre><p>19. Run Test</p><pre>ab -n 1000 -c 10 http://localhost/</pre><p>20. Sample Result</p><ul><li>Requests/sec: ~4600</li><li>Failed: 0</li><li>Response time: ~2ms</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N7qh_ys7XkCNMcvDbMmN5A.png" /></figure><h3>PART 5 — ADD HOST TO ZABBIX (IMPORTANT)</h3><p>21. Login Zabbix Dashboard</p><p>Go to:</p><pre>Configuration → Hosts → Create Host</pre><p>22. Add Host</p><p>Fill:</p><ul><li>Hostname: client01</li><li>IP: 192.168.0.171</li><li>Group: Linux Servers</li></ul><p>23. Add Template</p><p>Attach:</p><pre>Template OS Linux</pre><p>24. Verifiy Monitoring</p><p>Go to:</p><pre>Monitoring → Latest Data</pre><h3>PART 6 — CREATING MONITORING DASHBOARD</h3><p>25. Creating a Dashboard</p><p>After successfully collecting monitoring data, the next step is to visualize it using a dashboard.</p><p>Steps:</p><p>a. Go to:</p><pre>Monitoring → Dashboards</pre><p>b. Click:</p><pre>Create dashboard</pre><p>c. Enter Dashboard name:</p><pre>Zabbix Monitoring Dashboard</pre><p>d. Click:</p><pre>Add</pre><p>26. Adding Widgets</p><p>🔹 CPU Monitoring</p><p>a. Click:</p><pre>Add widget</pre><p>Type: Graph</p><p>b. Click:</p><pre>Add new data set</pre><p>Select:</p><ul><li>Host: client01</li><li>Item: CPU utilization</li></ul><p>c. Click:</p><pre>Add</pre><p>🔹 Memory Monitoring</p><p>Add another widget:</p><ul><li>Host: client01</li><li>Item: Memory utilization</li></ul><p>🔹 Apache Request Rate</p><p>Add widget:</p><ul><li>Item:</li></ul><pre>Apache: Requests per second</pre><p>🔹 Apache Traffic</p><p>Add widget:</p><ul><li>Item:</li></ul><pre>Apache: Bytes per second</pre><p>🔹 Apache Service Status</p><p>Type: Plain text</p><ul><li>Item:</li></ul><pre>Apache: Service ping</pre><p>27. Organizing Dashboard Layout</p><p>Arrange widgets like this:</p><pre>[ CPU ]        [ MEMORY ]<br>[ REQUEST ]    [ TRAFFIC ]<br>[ STATUS ]</pre><p>Click: Save</p><h3>DASHBOARD EXPLANATION</h3><h3>🔍 Why Dashboard is Important</h3><p>The dashboard provides a centralized view of system performance and application activity in real-time.</p><p>Instead of checking each server manually, all key metrics are visible in one place.</p><h3>🧩 Explanation of Each Metric</h3><h4>🔹 CPU Utilization</h4><p>Shows how much CPU is being used.<br>High usage may indicate heavy load or performance issues.</p><h4>🔹 Memory Utilization</h4><p>Tracks RAM usage.<br>Helps detect memory leaks or insufficient resources.</p><h4>🔹 Apache Requests per Second</h4><p>Indicates how many requests the web server handles.<br>Useful for understanding user traffic and load.</p><h4>🔹 Apache Bytes per Second</h4><p>Measures data transfer rate.<br>Helps analyze network usage and server load.</p><h4>🔹 Apache Service Status</h4><p>Shows whether the web server is running or not.<br>Critical for ensuring service availability.</p><h3>TROUBLESHOOTING</h3><p>If troubleshooting, check this:</p><p>❌ Agent Not Connecting</p><pre>ping &lt;server_ip&gt;</pre><p>❌ Service Not Running</p><pre>systemctl status zabbix-agent</pre><p>❌ Apache Not Accessible</p><pre>systemctl status apache2</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14f8118967a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>