rodrigo.pacheco
(usa Debian)
Enviado em 19/10/2007 - 09:56h
Amigos bom dia!
estou com 2 máquinas Debian etch.
quero monitorar via snmp 1 delas.
segue meus .confs.
do servidor de gerenciamento:
snmpd.conf
# sec.name source community
#com2sec paranoid default public
com2sec local localhost public
com2sec localNet 10.109.0.0 /24 public
#com2sec readonly default public
#com2sec readwrite default private
####
# Second, map the security names into group names:
# sec.model sec.name
#group MyROSystem v1 paranoid
#group MyROSystem v2c paranoid
#group MyROSystem usm paranoid
#group MyROGroup v1 readonly
#group MyROGroup v2c readonly
#group MyROGroup usm readonly
#group MyRWGroup v1 readwrite
#group MyRWGroup v2c readwrite
#group MyRWGroup usm readwrite
group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 localnet
group MyROGroup v2c localnet
group MyROGroup usm localnet
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
disk / 10000
load 12 14 14
do servidor que vai ser monitorado
snmpd.conf
com2sec local localhost public
com2sec localNet 10.109.0.0 /24 public
com2sec readonly 127.0.0.1 public
group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 localnet
group MyROGroup v2c localnet
group MyROGroup usm localnet
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
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
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
disk / 10000
load 12 14 14
localmente as 2 máquinas respondem ao snmpwalk.
só que o a máquina remota não responde.
se alguem tiver o .confs já funcionando agradeço muito mesmo, ou me apontar os erros.
[],s
Rodrigo Pacheco