Tuesday, December 9, 2008

How to detect Net-SNMP host on OpenNMS

How can install net-snmp in Ubuntu and detected from OpenNMS (Network Management Software)?
very easy, since net-snmp.deb are available, it is very simple.
apt-get install ...bla..bla..bla

Here is the ways:
apt-get install snmp
apt-get install snmpd

And it finish,
But, just doing that way, it can't detected by OpenNMS that the client offer Net-SNMP. So, we have to configure again.

Open this file:
/etc/snmp/snmpd.conf :


# com2sec
com2sec local localhost public
com2sec opennms 192.168.100.6 public # change with OpenNMS host IP Adress
# group
group local v1 local
group local v2c local
group local usm local
group opennms v1 opennms
group opennms v2c opennms
group opennms usm opennms
# view [MASK]
view all included .1 80
view system included system fe
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
# access
access local "" any noauth exact all none none
access opennms "" any noauth exact all none none


and then activate monitoring feature in /etc/snmp/snmpd.conf.

and then in /etc/default/snmpd :
change 127.0.0.1 pada SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' with 0.0.0.0, that means allowed listen address to access the host.
and then restart net-snmp.

Check on OpenNMS browser.
Good Luck.

Labels: ,

Sunday, December 7, 2008

apt.conf configuration on Ubuntu

This is sound very simple, but sometimes we forget the configuration. I just documented this, so if I forget, I can easily find how to configure apt.conf on Ubuntu. Here is the configuration:

Acquire::http::Proxy "http://(username):(password)@(name_of_the_proxy):8080";

Here is the example:
If we use proxy:cache1.itb.ac.id.
username:komang,
password:aswantara,
and then the configuration will be:

Acquire::http::Proxy "http://komang:adiaswantara@cache1.itb.ac.id:8080";

After we change, and then save the configuration. Now, you can use apt command to make update of your Ubuntu.

Labels: ,

wget configuration on Ubuntu

Wget is one of the command in Ubuntu to download such file from http or ftp. By default, wget not configured yet to download such file. Configuration of wget almost the same with configuring apt.conf. Here is the step:


1. Open file /etc/wgetrc
2. Find this line :
# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on


3. Change the line with:
http_proxy = http://(username_proxy_anda):(password)@(nama_proxy_anda):8080/
ftp_proxy = http://(username_proxy_anda):(password)@(nama_proxy_anda):8080/

Uncomment this line (status use_proxy must on) :
# If you do not want to use proxy at all, set this to off.
use_proxy = on


4. Now, you can try wget command, for example: wget ftp://...................

Labels: ,