Pages

Sunday, June 6, 2010

SNMP on LAN

This post explains a simple way to enable Ne-t-SNMP function on lan.

here is the step-by-step procedure.
first, Configure your snmpd.conf file before starting the agent.
here is the sample form:

##### your snmpd.conf file #######
#
# assign the community name for rw & ro-Community
rocommunity public 192.168.1.3 192.168.1.2 192.168.1.100
rwcommunity private

#
# after this segment in the snmpd.conf
# load all the agent modules
# Good Luck

the second step is to disable the firewall in the system

In Linux system Firewall is an in-built package.
to disable firewall,
at the terminal run these as root,
/etc/init.d/iptables save
/etc/init.d/iptables restart

now the firewall is disabled.

Finally start the snmpd service.
now the system must be able to get all the information required from the agent.

2 comments:

  1. how will u ping which system information u want to monitor?? every time u got to change the IP address @ rocommunity in snmpd.conf in order to monitor a particular system eh??

    ReplyDelete
  2. Firstly, ping is just a tool to check connectivity between two systems. as far as i know you cannot monitor anything with ping except the connectivity. if you want to sniff in thriugh the packets then use a sniffer tool..
    secondl, Ya!! if the IP's of the system are DHCP then you have to change the IP's each and everytime.
    Try configuring system to support static IP's..

    ReplyDelete