langkah - langkah mambuat mrtg ayuuuuuuk
- pertama menginstal snmp dulu caranya bagaimana,...
instal using ports
#cd /usr/ports/net-mgmt/net-snmp
#make install clean
tambahkan di /etc/rc.conf
snmpd_enable=”YES”
terus edit snmpd.conf di
#ee /usr/local/share/snmp/snmpd.conf
tambahkan configurasi
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the "system" mib group in the mibII tree.
# syslocation: The [typically physical] location of the system.
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysLocation.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: location_string
syslocation "Jakarta, Indonesia" ---> suka suka
# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysContact.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: contact_string
syscontact info@vilani-net.com ---> suka suka
# sysservices: The proper value for the sysServices object.
# arguments: sysservices_number
sysservices 79
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rwuser: a SNMPv3 read-write user
# arguments: user [noauth|auth|priv] [restriction_oid]
rwuser proxy --> sesuai jalannya snmpd
# rouser: a SNMPv3 read-only user
# arguments: user [noauth|auth|priv] [restriction_oid]
rouser proxy --> sesuai jalannya snmpd
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity proxy --> sesuai jalannya snmpd
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
# arguments: community [default|hostname|network/bits] [oid]
rwcommunity proxy --> sesuai jalannya snmpd
jalankan snmp
#/usr/local/etc/rc.d/snmpd start
setalh itu install mrtg lewat port
#cd /usr/ports/net-mgmt/mrtg/
#make install clean
setelah itu configurasi apache/conf/htdocs.conf tambah configurasi seperti ini
------------------------------------------------------------------------------
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
----------------------------------------------------------------------------dari sini
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews +ExecCGI
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride Options AuthConfig
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
----------------------------------------------------------------------------sampek sini
setelah itu save dan restar apachenya
#/usr/local/apache/bin/apachetl restart
setelah itu jalankan script ini
#/usr/local/bin/cfgmaker --global 'WorkDir: /usr/local/apache/htdocs/web/mrtg' --global 'Options[_]: bits,growright' --output /usr/local/etc/mrtg/mrtg.cfg localhost@localhost
inget untuk cfgmaker disesuaikan dengan letaknya untuk workdir disesuaikan dengan letak index.html dan mrtg.conf jga disesuaikan dengan letaknya.untuk localhost@localhost..ii disesuaokan dengan konfigurasi di snmpd.conf untuk community dan rwuser..oke bosss...dicerna dulu ae...oke
langkah selanjutnya membuat file index.html
#/usr/local/bin/indexmaker --output /usr/local/apache/htdocs/web/mrtg/index.html /usr/local/etc/mrtg/mrtg.cfg
diperhatikan untuk letak indexmaker dan index.html serta mrtg.cfg, harus sama ketika kita menjalankan cfgmaker oke bosss
setalah itu sebelm menjalankan mrtg jalankan crontab duluw
#crontab -e
tambahkan scritp seperti dibawah ini
#*/5 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
jalankan mrtg
#/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
#/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
#/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
mrtg udah jadi tingal jalankan di webbrowser sesuai ip servernya weks
bagussssss
Klo ada masalah,....email aq ya...ato posting aja messege heheheeeee
Friday, July 6, 2007
Membuat MRTG Freebsd
Subscribe to:
Posts (Atom)