Add Device Host (Linux, Windows, MikroTik) on Observium

Menambahkan Perangkat Host (Linux, Windows dan MikroTik) pada Observium

Install Observium on Ubuntu 22.04


Linux

Linux Debian dan Ubuntu base

  • Install snmpd
apt update
apt install snmpd -y
  • Setting snmpd
nano /etc/snmp/snmpd.conf
  • Edit pada bagian agentaddress dan tambahkan IP address host linux
agentaddress  127.0.0.1,[::1],192.168.88.101
  • Edit pada bagian rocommunity, disable untuk community public dan tambahkan community string agar bisa diakses server Observium dengan IP Observium Server
# Read-only access to everyone to the systemonly view
#rocommunity  public default -V systemonly
#rocommunity6 public default -V systemonly
rocommunity observium 192.168.88.88
  • Restart service snmpd
systemctl restart snmpd

Linux RedHat, CentOS, AlmaLinux, Rocky LInux base

  • Install snmpd
yum update -y && yum install nano -y
yum -y install net-snmp
systemctl enable --now snmpd
  • Setting snmpd
nano /etc/snmp/snmpd.conf
  • Edit pada bagian source community, disable untuk community public dan tambahkan community yang ada pada server OpenNMS
#        sec.name  source          community
#com2sec notConfigUser  default       public
com2sec notConfigUser  default       observium
  • Restart service snmpd
systemctl restart snmpd

Windows

Install SNMP Windows

  • Buka Server Manager lalu install SNMP
  • Buka Service.msc , cari SNMP Service > Properties > tab Security
  • Ceklis Send authentication trap > Add > Community: observium, Right: READ ONLY
  • Pilih Accept SNMP packets from these hosts > Add > IP server Observium > OK
  • Klik kanan > Restart service SNMP Service

Router MikroTik

  • Login ke dalam MikroTik menggunakan winbox
  • IP > SNMP > ceklis Enable > Communities > Add
  • name: opennms> Addresses: 192.168.88.88 (IP server Observium) > ceklis Read Access > OK
  • Trap Community: librenms > Trap Version: 2 > OK

Observium Server

  • Login ke dalam Observium Web UI > Devices > Add Device
  • Tambahkan device host contoh: 192.168.88.101 (host linux)
  • Devices > Add Device > hostname: localhost > Protocol: v2c > Transport: UDP > Port: 161> Timeout: 10 > Retries: 5 > SNMP Community: observium > Add device
  • Tampilan detail monitoring host
  • Jika terdapat error “device not pulled atau device not discovered” jalankan perintah berikut:
cd /opt/observium/
./poller.php -h 192.168.88.101 -d
./discovery.php -h 192.168.88.101 -d
  • Tampilan detail monitoring host

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.