[INFO] [SOLVED] SNMP returning no data, no interface list

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
The ustas
Posts: 18
Joined: Wed Jun 27, 2007 6:22 am
Location: Russia Moscow
Contact:

Post by The ustas »

Edit snmpd.conf

Code: Select all

syslocation Test.
syscontact INF <mail@test.ru>
#      sec.name   source          community (password)
com2sec Mybox     localhost          public
com2sec cacti     <you ip>     public
com2sec Outside   default            public
#      group.name sec.model  sec.name
group   RWGroup    v2c       Mybox
group   ROGroup    v1        cacti
group   ROGroup    v2c       cacti
group   Others     v2c       Outside
view all     included  .1        80
view system  included  system    fe
#              context sec.model sec.level prefix  read    write  notif
access  ROGroup   ""      any    noauth    exact   all     none   none
access  RWGroup   ""      v2c    noauth    exact   all     all    all
access  Others    ""      v2c    noauth    exact   system  none   all

Testing snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.2.2.1.2
debian:/etc/snmp# snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0

good luck... :wink:
netxus
Posts: 1
Joined: Sun Sep 13, 2009 7:58 pm

Post by netxus »

Hi
I'm having the same problem.i configure snmp security model to any having error message in snmp log. anyone can help me??

THANKS

/etc/snmp/snmpd.conf: line 78: Error: bad security model "any" should be: v1, v2c, usm or a registered security plugin name - installing anyway
/etc/snmp/snmpd.conf: line 79: Error: bad security model "any" should be: v1, v2c, usm or a registered security plugin name - installing anyway
/etc/snmp/snmpd.conf: line 88: Error: bad prefix match parameter "0", should be: exact or prefix - installing anyway
/etc/snmp/snmpd.conf: line 89: Error: bad prefix match parameter "0", should be: exact or prefix - installing anyway
net-snmp: 4 error(s) in config file(s)
NET-SNMP version 5.1.2


## Access.group.name sec.model sec.name
## ================= ========= ========
group MyROGroup_1 any local
group MyROGroup_2 any network_1

## MIB.view.name incl/excl MIB.subtree mask
## ============== ========= =========== ====
view all included .1 80

## MIB
## group.name context sec.model sec.level prefix read write notif
## ========== ======= ========= ========= ====== ==== ===== =====
access MyROGroup_1 "" any noauth 0 all none none
access MyROGroup_2 "" any noauth 0 all none none
RaviGH
Posts: 2
Joined: Wed May 29, 2013 6:18 am

Re: [INFO] [SOLVED] SNMP returning no data, no interface lis

Post by RaviGH »

Thanks a Lot fmangeant.

" rocommunity public " helped me.
RaviGH
Posts: 2
Joined: Wed May 29, 2013 6:18 am

Re: [INFO] [SOLVED] SNMP returning no data, no interface lis

Post by RaviGH »

Thanks fmangnet.

vi /etc/snmp/snmpd.conf

"rocommunity public" helped me.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests