Interface: No SNMP data returned but manual snmpwalk does

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
Stubbed
Posts: 14
Joined: Wed May 28, 2008 4:17 am

Interface: No SNMP data returned but manual snmpwalk does

Post by Stubbed »

Hi there.

I'm trying to get statistics on the four ethernet interfaces on a couple of Mikrotik V3.x routers.

When executing the built in 'SNMP - Interface Statistics' Data Query I get this output:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
However, running an snmpwalk with that odi manually returns the indexes:

Code: Select all

stubbed@dev:~$ snmpwalk -Of -v 2c -c public 192.168.2.1 .1.3.6.1.2.1.2.2.1.1
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.1 = INTEGER: 1
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.2 = INTEGER: 2
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.3 = INTEGER: 3
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.4 = INTEGER: 4
Other SNMP requests through Cacti are working to this host, so I'm a bit stumped here, can anyone shed any input on where to start looking?
User avatar
Stubbed
Posts: 14
Joined: Wed May 28, 2008 4:17 am

Post by Stubbed »

Errr.

If anyone else has the same problem, you have to use SNMP Version 1.
cetterra
Posts: 2
Joined: Sat Oct 31, 2009 11:35 am

Post by cetterra »

Stubbed wrote:Errr.

If anyone else has the same problem, you have to use SNMP Version 1.

Thank you very much for the answer. After hours I could finally graph interface statistics.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest