IGOS Nusantara dan MRTG: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/igos-nusantara-web/wiki/includes/diff/DairikiDiff.php on line 438
(Konfigurasi /etc/snmp/snmpd.conf)
Baris 14: Baris 14:
 
== Konfigurasi /etc/snmp/snmpd.conf ==
 
== Konfigurasi /etc/snmp/snmpd.conf ==
  
  [bash]# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.original
+
=== Backup /etc/snmp/snmpd.conf ===
  [bash]# vi /etc/snmp/snmpd.conf
+
  # cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.original
 +
 
 +
=== Isi /etc/snmp/snmpd.conf ===
 +
  # vi /etc/snmp/snmpd.conf
 +
 
 
  #  Configure basic Read-Only community string.
 
  #  Configure basic Read-Only community string.
 
  rocommunity  myIGNserver
 
  rocommunity  myIGNserver
Baris 34: Baris 38:
 
  #  Grant Access From the Security Model to MIB View.
 
  #  Grant Access From the Security Model to MIB View.
 
  access      myROGroup  v1 noauth 0 all-mibs none none
 
  access      myROGroup  v1 noauth 0 all-mibs none none
 +
 +
=== Masukkan service snmpd ===
 +
[bash]# chkconfig --level 2345 snmpd on
 +
[bash]# chkconfig --list snmpd
 +
 +
=== Restart snmpd ===
 +
[bash]# /etc/init.d/snmpd restart
 +
[bash]# grep snmp /var/log/messages
 +
 +
== Ujicoba ==
 +
[bash]# snmpwalk -v 1 -c myIGNserver localhost interface | grep Descr
 +
IF-MIB::ifDescr.1 = STRING: lo
 +
IF-MIB::ifDescr.2 = STRING: eth0
 +
IF-MIB::ifDescr.3 = STRING: eth1
 +
IF-MIB::ifDescr.4 = STRING: ppp0
  
 
== Ujicoba ==
 
== Ujicoba ==

Revisi per 28 April 2010 12.32

Multi Router Traffic Grapher (MRTG) adalah aplikasi untuk monitoring lalu lintas informasi SNMP dalam jaringan. Data monitoring disimpan dalam log lalu diolah dan ditampilkan dalam bentuk grafik. Grafik tersebut disajikan di dalam halaman web dan dapat diakses dari browser. MRTG bergantung terhadap web server, karena grafik ditampilkan melalui web server.

MRTG memakai SNMP. Perangkat dan layanan (service) yang didukung SNMP dapat ditampilkan grafiknya. Bila SNMP tidak berfungsi maka grafik juga tidak bisa ditampilkan oleh MRTG.

MRTG akan membuat grafik secara berkala per hari, per minggu, per bulan dan per tahun, sehingga akan memberi gambaran atas jaringan. MRTG hanya mengumpulkan data dan mengolah grafik, bukan untuk memberikan peringatan.

Skema Jaringan lihat:

203.190.241.0/29

Pasang

# yum install -y mrtg

Konfigurasi /etc/snmp/snmpd.conf

Backup /etc/snmp/snmpd.conf

# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.original

Isi /etc/snmp/snmpd.conf

# vi /etc/snmp/snmpd.conf
#  Configure basic Read-Only community string.
rocommunity  myIGNserver

#  Mapping from Community to Security.
com2sec      myLoopNet   localhost                   myIGNserver
com2sec      myExtNet    203.190.241.0/29            myIGNserver
com2sec      myIntNet    192.168.0.0/255.255.255.0   myIGNserver

#  Mapping from Security Group to Security Name.
group        myROGroup   v1 myLoopNet
group        myROGroup   v1 myExtNet
group        myROGroup   v1 myIntNet

#  Define the view.
view         all-mibs    included .1 80

#  Grant Access From the Security Model to MIB View.
access       myROGroup   v1 noauth 0 all-mibs none none

Masukkan service snmpd

[bash]# chkconfig --level 2345 snmpd on [bash]# chkconfig --list snmpd

Restart snmpd

[bash]# /etc/init.d/snmpd restart [bash]# grep snmp /var/log/messages

Ujicoba

[bash]# snmpwalk -v 1 -c myIGNserver localhost interface | grep Descr
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: ppp0

Ujicoba

http://igos-nusantara.or.id/wiki/Skema_Jaringan