Products & Services Submit a ticket My Tickets
Selamat datang
Masuk  Mendaftar

Cara install smokeping di Linux

? Apa itu SmokePing?


SmokePing adalah tool monitoring jaringan berbasis web yang digunakan untuk memantau latency, packet loss, dan jitter dari koneksi ke berbagai host atau server. SmokePing sangat berguna bagi sysadmin, NOC, maupun tim support teknis untuk mengetahui stabilitas koneksi ke layanan-layanan penting seperti DNS, server cloud, hingga aplikasi internal.


Berikut panduan instalasi smokeping di Linux:


1. Update Sistem


sudo apt update && sudo apt upgrade -y


---

? 2. Install SmokePing dan Dependensinya


sudo apt install smokeping apache2 sendmail rrdtool fping curl libwww-perl libjson-perl -y


---

⚙️ 3. Konfigurasi SmokePing


SmokePing menyimpan konfigurasi di /etc/smokeping/config.d/.

Edit Informasi Server Smokeping

sudo nano /etc/smokeping/config.d/General

Contoh

owner    = Admin Hosting

contact  = admin@namadomain.com

mailhost = 127.0.0.1

sendmail = /usr/sbin/sendmail

imgcache = /var/cache/smokeping/images

imgurl   = /smokeping/images

datadir  = /var/lib/smokeping

piddir   = /var/run/smokeping

cgiurl   = http://localhost/cgi-bin/smokeping.cgi

smokemail = /etc/smokeping/smokemail

tmail = /etc/smokeping/tmail


---

? 4. Tambahkan Target Monitoring

sudo nano /etc/smokeping/config.d/Targets

Contoh lengkap (DNS, Major Services Provider):

*** Targets ***



menu = Top

title = SmokePing Latency Monitoring

remark = Monitoring DNS, Cloud Providers, and Common Servers

+ DNS

menu = DNS Servers

title = Public DNS Servers

++ GoogleDNS

menu = Google DNS

title = Google Public DNS

host = 8.8.8.8

++ CloudflareDNS

menu = Cloudflare DNS

title = Cloudflare DNS

host = 1.1.1.1

++ OpenDNS

menu = OpenDNS

title = OpenDNS

host = 208.67.222.222

+ CloudProviders

menu = Cloud Providers

title = Cloud Providers' Endpoints

++ AWS

menu = AWS

title = Amazon Web Services - Ping Endpoint

host = ec2.amazonaws.com

++ GCP

menu = Google Cloud

title = Google Cloud Platform - Ping Endpoint

host = cloud.google.com

++ Azure

menu = Azure

title = Microsoft Azure

host = azure.microsoft.com

+ CommonServers

menu = Common Servers

title = Frequently Accessed Servers

++ Localhost

menu = Localhost

title = Localhost

host = 127.0.0.1

++ GitHub

menu = GitHub

title = GitHub.com

host = github.com

++ Google

menu = Google

title = google.com

host = google.com

++ Cloudflare

menu = Cloudflare

title = cloudflare.com

host = cloudflare.com


---

? 5. Konfigurasi Apache untuk SmokePing

Aktifkan Modul CGI


sudo a2enmod cgi


Edit Virtual Host Apache


sudo nano /etc/apache2/sites-available/000-default.conf

sudo nano /etc/apache2/sites-available/000-default.conf

Tambahkan di dalam <VirtualHost *:80>:


ScriptAlias /smokeping/cgi-bin "/usr/lib/cgi-bin/smokeping.cgi"

Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/lib/cgi-bin">

    AllowOverride None

    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

    Require all granted

</Directory>

Restart Apache


sudo systemctl restart apache2


---

? 6. Jalankan SmokePing


sudo systemctl start smokeping

sudo systemctl enable smokeping


---

? 7. Akses SmokePing dari Browser

http://IP-SERVER/smokeping/cgi-bin/smokeping.cgi


Apakah jawaban ini bermanfaat? Ya Tidak

Send feedback
Maaf kami tidak bisa membantu. Bantu kami mengembangkan artikel ini dengan umpan balik Anda.