Interface statistic debian

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

Moderators: Developers, Moderators

Post Reply
wberbert
Posts: 2
Joined: Thu Sep 08, 2005 2:05 pm
Contact:

Interface statistic debian

Post by wberbert »

I'm using linux debian with kernel 2.6.11

Linux lagomar 2.6.11.10 #5 SMP Fri Jun 24 11:04:01 BRT 2005 i686 GNU/Linux

and net-snmp version 5.2.1.2

NET-SNMP version: 5.2.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

The problem is: I'm not get the interface statitics work on cacti system.

The cacti script returns no interface and the verbose query shows:

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti.sermap.com.br/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.sermap.com.br/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti.sermap.com.br/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti.sermap.com.br/resource/snmp_queries/interface.xml'

The interface statistic works on windows system but not in linux system.

I think that the problem is related to the net-snmp or kernel flags compilation but Im not sure.

Any clue will be welcome.

Wanderson
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Hi,
if stats work against windows and not against linux remote host, you may want to examine the /etc/snmp/snmpd.conf on the remote system. Try running

Code: Select all

snmpwalk -c <community> -v 1 <remote linux host> .1.3.6.1.2.1.2.2.1.1
from cli of your cacti system. If nothing is returned, you will have to configure the snmpd agent on that remote host.

Reinhard
wberbert
Posts: 2
Joined: Thu Sep 08, 2005 2:05 pm
Contact:

Post by wberbert »

The command returned no data.

Can you post a url where I can find a tutorial about how to configure net-snmp porperly to show my interface statitics?


Thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

wberbert,
as a starting point, you may use /etc/snmp/snmpd.conf. There should be some inline documentation that helps you setting up the snmpd agent. At first instance, there will be no need to specifically configure interface statistics or the like, but this may depend on the distro (afaik SuSE and RHEL 3/4 should work immediately). Don't forget to start the service (e.g. /etc/init.d/snmpd start). Decent help may be available from
http://www.net-snmp.org/

happy cactiing
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests