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

Consultas usando SNMP



Caros,
Instalei o agente snmp em um host que estou precisando monitorar, instalei
e configurei o snmpd, confome segue abaixo:

# First, map the community name "public" into a "security name"
#       sec.name    source      community
com2sec geral       0.0.0.0/0   comsnmppub

# Second, map the security name into a group name:
#   groupName   securityModel   securityName
group   MyROGroup   v1      geral
group   MyROGroup   v2c     geral
group   MyROGroup   usm     geral

# Third, create a view for us to let the group have rights to:
#   name    incl/excl   subtree     mask(optional)
view    all included    .1      80

# Finally, grant the group read-only access to the systemview view.
#   group       context     sec.model   sec.level   prefix  read    write  
notif
access  MyROGroup   ""      any     noauth      exact   all none    none

# It is also possible to set the sysContact and sysLocation system
# variables through the snmpd.conf file:
sysContact      Inforwave <rede@inforwave.com.br>
syslocation     Juiz de Fora - MG

interface   eth*    6   10000000
interface   ra* 6   10000000
interface   wlan*   6   10000000

Ao realizar a seguinte consulta, no host:

snmpwalk -Os -c comsnmppub -v 1 localhost

Ele retorna os resultados das consultas, porém ao alterar a consulta para:

snmpwalk -Os -c comsnmppub -v 1 10.35.0.1

Ele me retorna a seguinte mensagem:

Timeout: No Response from 10.35.0.1; onde

10.35.0.1 é o ip da eth0 do host onde se encontra o agente snmpd

Não existe nenhum tipo de firewall na maquina, já testei diversos scripts
e nehum deles funcionou. Algume pode me ajudar.

Att.

-- 
Leandro Moreira
Linux Networks
e-mail: leandro@leandromoreira.eti.br
Tel.: + 55(32) 9197-7909


Reply to: