Difference between revisions of "SNMP: Instalasi & Konfigurasi di Ubuntu"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
− | + | Cara menginstalasi & konfigurasi SNMP di Ubuntu. | |
− | |||
− | |||
− | |||
Line 15: | Line 12: | ||
==Configuration== | ==Configuration== | ||
− | + | Backup /etc/snmp/snmpd.conf | |
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org | mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org | ||
− | + | Buat file baru /etc/snmp/snmpd.conf: | |
rocommunity public | rocommunity public | ||
Line 25: | Line 22: | ||
syscontact peter@it-slav.net | syscontact peter@it-slav.net | ||
− | + | Pastikan snmpd menggunakan file ini untuk mendengarkan semua interface: | |
==Edit /etc/default/snmpd== | ==Edit /etc/default/snmpd== | ||
− | + | Ubah dari: | |
# snmpd options (use syslog, close stdin/out/err). | # snmpd options (use syslog, close stdin/out/err). | ||
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' | SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' | ||
− | + | Ke: | |
# snmpd options (use syslog, close stdin/out/err). | # snmpd options (use syslog, close stdin/out/err). | ||
Line 40: | Line 37: | ||
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf' | SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf' | ||
− | + | restart | |
/etc/init.d/snmpd restart | /etc/init.d/snmpd restart | ||
− | |||
− | |||
==Test== | ==Test== | ||
− | + | Lakukan snmpwalk dari mesin lain, | |
[root@op5 ~]# snmpwalk -v 1 -c public -O e ibsen | [root@op5 ~]# snmpwalk -v 1 -c public -O e ibsen | ||
+ | |||
SNMPv2-MIB::sysDescr.0 = STRING: Linux ibsen 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 | SNMPv2-MIB::sysDescr.0 = STRING: Linux ibsen 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 | ||
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 | SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 | ||
Line 69: | Line 65: | ||
− | + | ==Contoh Monitor== | |
Below is an example of how it looks using op5 Monitor a Nagios based Enterprise Monitor solution. | Below is an example of how it looks using op5 Monitor a Nagios based Enterprise Monitor solution. | ||
Line 79: | Line 75: | ||
5. Useful links | 5. Useful links | ||
− | + | op5 Statistics, a cacti based graph tool | |
− | + | op5 Monitor, an Enterprise Class Monitoring system based on Nagios | |
− | + | Net-SNMP, an open source implementation of SNMP | |
− | + | Cacti, an open source graph tool | |
− | + | Nagios, the number 1 monitor tool | |
Line 91: | Line 87: | ||
* http://www.it-slav.net/blogs/2009/02/05/install-and-configure-snmp-on-ubuntu/ | * http://www.it-slav.net/blogs/2009/02/05/install-and-configure-snmp-on-ubuntu/ | ||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[SNMP]] |
Latest revision as of 12:14, 12 May 2020
Sumber: http://www.it-slav.net/blogs/2009/02/05/install-and-configure-snmp-on-ubuntu/
Cara menginstalasi & konfigurasi SNMP di Ubuntu.
Installation
apt-get install snmpd
Configuration
Backup /etc/snmp/snmpd.conf
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
Buat file baru /etc/snmp/snmpd.conf:
rocommunity public syslocation "PDC, Peters DataCenter" syscontact peter@it-slav.net
Pastikan snmpd menggunakan file ini untuk mendengarkan semua interface:
Edit /etc/default/snmpd
Ubah dari:
# snmpd options (use syslog, close stdin/out/err). SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
Ke:
# snmpd options (use syslog, close stdin/out/err). #SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
restart
/etc/init.d/snmpd restart
Test
Lakukan snmpwalk dari mesin lain,
[root@op5 ~]# snmpwalk -v 1 -c public -O e ibsen
SNMPv2-MIB::sysDescr.0 = STRING: Linux ibsen 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (68869) 0:11:28.69 SNMPv2-MIB::sysContact.0 = STRING: peter@it-slav.net SNMPv2-MIB::sysName.0 = STRING: ibsen SNMPv2-MIB::sysLocation.0 = STRING: "PDC, Peters DataCenter" SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01 SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
Yes it works!!
Contoh Monitor
Below is an example of how it looks using op5 Monitor a Nagios based Enterprise Monitor solution.
5. Useful links
op5 Statistics, a cacti based graph tool op5 Monitor, an Enterprise Class Monitoring system based on Nagios Net-SNMP, an open source implementation of SNMP Cacti, an open source graph tool Nagios, the number 1 monitor tool
Referensi