[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SNMP and Debian



Hi,
i have installed on 2 PC debian/testing the snmpd daemon and snmp package with the applications utility
I have this pc in a LAN with address 10.0.0.25 and 10.0.0.101 (agent).

Using snpwalk to verify them (localhost) i find a good data:

snmpwalk -v 1 -c public localhost system

>SNMPv2-MIB::sysDescr.0 = STRING: Linux hal9000 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
>SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
>DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (178) 0:00:01.78
>... and so on

My target is to utilize snmpwalk between the machines whit

snmpwalk -v 1 -c public 10.0.0.101 system       (from 10.0.0.25)

Naturally at first time i have obtained the "famous" error..

>Timeout: No Response from 10.0.0.101


caused from the configuration of snmpd daemon (file /etc/default/snmpd) that have the LISTENING ADDRESS to 127.0.0.1.
Reading a debian's howto i have modify this file on the
PC 10.0.0.101 with what me it seemed corrected in order to receive request from the net:

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid TCP:161'

after a snmpd restart it is my "netstat -natup | grep 161"

>tcp        0      0 0.0.0.0:161             0.0.0.0:*               LISTEN     7557/snmpd


Although this i obtain the usual message of error.. For the agent configuration the snmpd.conf file that i used i think that it's correct but, however, it is:

..
com2sec local localhost public
com2sec localNet 10.0.0.0/24 public
..
group MyRWGroup v1        local
group MyRWGroup v2c      local
group MyRWGroup usm     local
group MyROGroup v1         localnet
group MyROGroup v2c       localnet
group MyROGroup usm      localnet
..
view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system
..
access MyROSystem ""     any       noauth    exact  system none   none
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none

Anyone can help me?

P.S.
iptables --list return

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


Thanks

David


Reply to: