SNMP help!!!!!!!!!!!

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

Moderators: Developers, Moderators

Post Reply
congcong
Posts: 12
Joined: Sat Apr 08, 2006 10:16 pm

SNMP help!!!!!!!!!!!

Post by congcong »

i can't get "SNMP - Interface Statistics" data
i can get data:

SNMP Information
System: FreeBSD
Uptime: 2791391698
Hostname: 4a-c02-a6
Location:xxxxxx
Contact: xxxxxxr@xxxxx
--------------------------------------------
Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/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 '/usr/local/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/interface.xml'
----------------------------------------
target host message:

/usr/local/snmpd/sbin/snmpd -v

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

cat /usr/local/snmpd/share/snmp/snmpd.conf
rocommunity public
load 12 14 14
exec com /usr/local/snmpd/share/snmp/snmpd.command 80 HTTPD
proc httpd
disk /

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

Post by gandalf »

Please run

Code: Select all

snmpwalk -c <community> -v <your targets snmp version> <target host> .1.3.6.1.2.1.2.2.1.1
from command line and post the output
Reinhard
congcong
Posts: 12
Joined: Sat Apr 08, 2006 10:16 pm

Post by congcong »

# snmpwalk -c -v 5.0.9 10.0.153.42 .1.3.6.1.2.1.2.2.1.1
snmpwalk: Timeout
congcong
Posts: 12
Joined: Sat Apr 08, 2006 10:16 pm

Post by congcong »

help,help,help
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

try this :

Code: Select all

$ snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
congcong
Posts: 12
Joined: Sat Apr 08, 2006 10:16 pm

Post by congcong »

4a-c02-a6# /usr/local/snmpd/bin/snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
4a-c02-a6#

dosen't output anything
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

And this :

Code: Select all

snmpwalk -v 1 -c public localhost ucdavis.version
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
congcong
Posts: 12
Joined: Sat Apr 08, 2006 10:16 pm

Post by congcong »

4a-c02-a6# /usr/local/snmpd/bin/snmpwalk -v 1 -c public localhost ucdavis.version
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.0.9
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2002/09/23 17:13:14 $
UCD-SNMP-MIB::versionCDate.0 = STRING: Fri Apr 14 19:05:42 2006
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c,v 5.1 2002/09/23 17:13:14 hardaker Exp $
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: " --prefix=/usr/local/snmpd --with-sys-contact=postmaster@xxxx.net --with-sys-location=xxxxxx --with-persistent-directory=/var/net-snmp --with-logfile=/var/log/snmpd.log"
UCD-SNMP-MIB::versionClearCache.0 = INTEGER: 0
UCD-SNMP-MIB::versionUpdateConfig.0 = INTEGER: 0
UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 0
UCD-SNMP-MIB::versionSavePersistentData.0 = INTEGER: 0
UCD-SNMP-MIB::versionDoDebugging.0 = INTEGER: 0
4a-c02-a6#
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

This is a rather old version of Net-SNMP...
Can you upgrade to a more recent one (5.2.2 seems to be the "stable" FreeBSD port) ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

congcong wrote:4a-c02-a6# /usr/local/snmpd/bin/snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
4a-c02-a6#

dosen't output anything
This is definitively the cause of your problem. Please follow fmangeant's instructions. As long as this query returns nothing, cacti won't make more out of this
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest