KENDALA
CORE
Perbarui Catatan
Sesuaikan rincian informasi data kendala atau perbaiki instruksi pemecahan masalah.
Jenis Kategori
Server
Database
Aplikasi
Jaringan
Hardware
Recording
cloud
Security
Tugas-pagi
Nama / Judul Kendala
Uraian Masalah / Kode Error
server merah di zabix tidak konek
Langkah Pemecahan Masalah (Problem Solving)
1. Cek apakah Zabbix Agent hidup (running)
Di server cloudopenvpn2 (IP: 149.129.253.93):
CentOS / Rocky / Alma / RHEL
systemctl status zabbix-agent
systemctl restart zabbix-agent
Ubuntu / Debian
systemctl status zabbix-agent
systemctl restart zabbix-agent
Kalau statusnya inactive atau failed, berarti masalahnya di sini.
2. Pastikan port agent terbuka (default 10050)
Test dari server Zabbix:
telnet 149.129.253.93 10050
atau
nc -vz 149.129.253.93 10050
Kalau “Connection refused” ? service mati.
Kalau “Timed out” ? firewall blokir.
3. Cek firewall server
FirewallD
firewall-cmd --list-all
firewall-cmd --add-port=10050/tcp --permanent
firewall-cmd --reload
UFW
ufw allow 10050/tcp
ufw reload
4. Cek konfigurasi /etc/zabbix/zabbix_agentd.conf
Pastikan:
Server=
ServerActive=
Hostname=cloudopenvpn2
Contoh:
Server=172.16.0.10
ServerActive=172.16.0.10
Hostname=cloudopenvpn2
Setelah edit:
systemctl restart zabbix-agent
5. Cek di Zabbix UI (Web)
Masuk ke:
Monitoring ? Hosts ? cloudopenvpn2 ? tab Latest Data
Kalau merah, biasanya muncul error seperti:
Get value from agent failed
No such file or directory
Connection timeout 10050
Klik ikon ZBX merah ? Details ? akan terlihat pesan error lengkap.
Analisa Tepatnya
Dari server Zabbix:
telnet 149.129.253.93 10050
Jadi masalahnya sekarang tinggal 2 kemungkinan:
1. Port 10050 di server 149.129.253.93 tertutup
Walaupun kamu bisa SSH, belum tentu port 10050 terbuka.
Cek dari server 149.129.253.93:
sudo systemctl status zabbix-agent
sudo ss -tlnp | grep 10050
Harusnya muncul:
LISTEN 0 0 0.0.0.0:10050
Kalau tidak muncul ? agent tidak jalan.
2. Firewall di server 149.129.253.93 memblokir port 10050
Cek:
CentOS/RHEL (firewalld)
firewall-cmd --list-all
firewall-cmd --add-port=10050/tcp --permanent
firewall-cmd --reload
UFW (Ubuntu)
ufw status
ufw allow 10050/tcp
iptables
iptables -L -n | grep 10050
Sekarang kita pastikan dulu:
Tolong jalankan di server 149.129.253.93:
1 Cek service agent
systemctl status zabbix-agent
2 Cek apakah port 10050 listen
ss -tlnp | grep 10050
3 Cek firewall
iptables -L -n
root@OpenVPN2 ~]# firewall-cmd --list-all
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client ssh
ports: 514/udp 514/tcp
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules:
ChatGPT said:
Terlihat jelas dari output firewall Anda:
services: dhcpv6-client ssh
ports: 514/udp 514/tcp
Tidak ada port 10050 atau 10051 yang di-allow.
Maka Zabbix Server tidak bisa masuk ke agent (port 10050)
Dan Agent juga tidak bisa connect ke server (port 10051)
Inilah penyebab semua error Active Check.
SOLUSI: Izinkan port Zabbix
1 Izinkan port untuk Zabbix Agent (10050)
firewall-cmd --add-port=10050/tcp --permanent
2 Izinkan port untuk Zabbix Server (10051)
Jika server Zabbix ada di IP 149.129.253.93, maka izinkan juga:
firewall-cmd --add-port=10051/tcp --permanent
3 Reload firewall
firewall-cmd --reload
4 Verifikasi
firewall-cmd --list-all
Harus muncul:
ports: 514/udp 514/tcp 10050/tcp 10051/tcp
Batal
Update Catatan