[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

leoutskot
Posts: 1
Joined: Tue Nov 15, 2005 8:02 pm
Location: Mexico
Contact:

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

Post by leoutskot »

I've spend about 3 hours trying to figure this out and I've seen alot of people with the same problem.

In cacti 0.8.6g (and perhaps f), using redhat (I've seen enterprise, RH9, Fedora 3 and 4 mentioned) there's a problem getting the list of interfaces to be detected, which allows you to graph traffic.

The typical problems involve the following errors:
"No SNMP data returned" (from verbose query in the devices detail)
No data returned while running snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
General problems getting Interface - Traffic graphs to work

The problem resides in the permissions for SNMP version 1 users in the /etc/snmp/snmpd.conf file

You need to change the following limits:
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1

to:
view systemview included .1.3.6.1.2.1
view systemview included .1.3.6.1.2.1.25.1.1

This reduces the limits to the pubic group's access using smtpwalk and allows cacti to get the list of interfaces.
rafiso
Posts: 20
Joined: Sat Dec 10, 2005 8:54 pm

Perfect 10 !

Post by rafiso »

THANKS YOU !!!!!!!!!!!!!!!!!!!!!!!!!

EVERYTHING IS WORKING ON MY LINUX BOX NOW :)
spacelobsters
Posts: 12
Joined: Thu Mar 15, 2007 9:24 am

Post by spacelobsters »

i've tried this and it does not fix mine
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please install php-snmp and retry
Reinhard
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

spacelobsters wrote:i've tried this and it does not fix mine
Hi

can you try with a minimalistic snmpd.conf :

Code: Select all

rocommunity public
[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]
spacelobsters
Posts: 12
Joined: Thu Mar 15, 2007 9:24 am

Post by spacelobsters »

must correct myself, it did indeed work :) STICKY!!?!
Alberello
Posts: 6
Joined: Tue Nov 21, 2006 10:16 am
Contact:

Post by Alberello »

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

Post by fmangeant »

You can follow the HowTo in my signaure for further Net-SNMP configuration.
[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]
drag0n3t
Posts: 1
Joined: Mon Sep 10, 2007 2:04 pm

is fix!!

Post by drag0n3t »

thks a lot!!
batofd
Posts: 3
Joined: Thu Nov 01, 2007 3:55 pm

Post by batofd »

Hey I tried that fix but I'm still having issues. Im able to do

Code: Select all

snmpwalk -v 1 -c public 127.0.0.1 .1.3.6.1.2.1

As soon as I add .2 to it I receive "End of MIB". Should I reinstall snmpd?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What OID are actually heading for? What kind of data are you expecting?
Reinhard
batofd
Posts: 3
Joined: Thu Nov 01, 2007 3:55 pm

Post by batofd »

I'm receiving the same error when attempting to start the SNMP - Interface Statistics data query. I tried to manually run the snmpwalk but I get "End of MIB" when I try to run the full command.
bzposse
Posts: 1
Joined: Thu Dec 06, 2007 11:14 am

Fixed problem of SNMP returning no data, no interface list

Post by bzposse »

This post helpd me fix this issue on my build...Thanks to all whom contributed to this post
komunikasys
Posts: 5
Joined: Sun Aug 31, 2008 2:06 am

Post by komunikasys »

batofd wrote:I'm receiving the same error when attempting to start the SNMP - Interface Statistics data query. I tried to manually run the snmpwalk but I get "End of MIB" when I try to run the full command.
make sure your snmp configuration has:

view all included .1 80

best regards,

Raymond Victorio
giana
Posts: 9
Joined: Mon Nov 05, 2007 9:06 am

Post by giana »

i run cacti 0.8.6j on FC5 on our companys cacti server with
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
traffic graphs are fine so far.

now i installed cacti 0.8.7b via yum install cacti on my homeserver FC8
i got no traffic graphs. then i changed snmpd.conf
from: view systemview included .1.3.6.1.2.1.1
__to: view systemview included .1.3.6.1.2.1
now i have also fine traffic graphs on my fc8 with 0.8.7b
thanks leoutskot
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests