[solved] SNMP: No SNMP data returned

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

Moderators: Developers, Moderators

Post Reply
Scormen
Posts: 2
Joined: Sat Nov 01, 2008 4:34 am

[solved] SNMP: No SNMP data returned

Post by Scormen »

Hi all,

At first, I know I'm not the first with this problem, I have found others with the same problem and with some solutions, but they don't work for me.

I'm experimenting with Cacti on a Ubuntu 8.04 box. Everything works well, the installation was simple, but, SNMP seems not to work.

When I run in debug mode, I get this:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/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/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'

The "View SNMP cache" looks like this:

Code: Select all

Host: Localhost , SNMP Query: Unix - Get Mounted Partitions
Index: /dev/sda1 , Field Name: dskDevice , Field Value: /dev/sda1
OID:
Host: Localhost , SNMP Query: Unix - Get Mounted Partitions
Index: /dev/sda3 , Field Name: dskDevice , Field Value: /dev/sda3
OID: 

General information:

Code: Select all

Cacti Version  	0.8.7b
Cacti OS 	unix
SNMP Version 	net-snmp
RRDTool Version 	RRDTool 1.2.x 

My "snmpd.conf" has only 1 rule:

Code: Select all

rocommunity public

What can I do, where do I have to start to look?

Many thanks,
Kris
westsyde
Posts: 23
Joined: Tue Sep 23, 2008 12:44 pm

same prob

Post by westsyde »

I am a noob and am having the same problems. I see in snmpd debug that my Cacti poller is accessing it, but not data is returned:

root@host:~# snmpd -Le -C -c /etc/snmp/snmpd.conf
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
NET-SNMP version 5.4.1
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
Connection from UDP: [10.10.0.1]:3253
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP: No SNMP data returned

Post by gandalf »

Scormen wrote:What can I do, where do I have to start to look?

Many thanks,
Kris
Please run snmpwalk manually against your target host
Reinhard
Scormen
Posts: 2
Joined: Sat Nov 01, 2008 4:34 am

Post by Scormen »

That did the trick :) I found it, a wrong host...
Thanks for the help!

Kris
ronald
Posts: 1
Joined: Thu Nov 27, 2008 6:27 am

error: No snmp data returned

Post by ronald »

Hi,

iam getting the same error: No SNMP data returned
and when i do snmpwalk i get this error:
Timeout: No Response from 192.168.12.3

can someone assist please!!

Regards,

Ronald.
Scormen wrote:That did the trick :) I found it, a wrong host...
Thanks for the help!

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

Post by gandalf »

Please set up the snmp agent on that target device. Please find help at the net-snmp forum/mailing list and/or at the first link of my sig
Reinhard
arun.mittalb
Posts: 9
Joined: Tue Jul 06, 2010 12:31 pm

Post by arun.mittalb »

snmpwalk for target host works if use only ip address but if i use oid with ip address it doesnt work

e.g
snmpwalk -v 1 -c public 184.73.9.43
works
SNMPv2-MIB::sysDescr.0 = STRING: Linux ec2-184-73-9-43.compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (110987025) 12 days, 20:17:50.25
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysName.0 = STRING: ec2-184-73-9-43.compute-1.amazonaws.com
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
End of MIB



but if i use

snmpwalk -v 1 -c public 184.73.9.43 .1.3.6.1.2.1.2.2.1.1

it gives end of MIB

probably i am writing wrong command
but in my cacti logs it keeps on printing msgs
CMDPHP: Poller[0] Host[2] DS[14] WARNING: Result from SNMP not valid. Partial Result:
and my rrd files are not getting updated

Can it be helpful to figure out what is the issue.

I will appreciate if you can post the link of your first and second sig.

Thanks
arun.mittalb
Posts: 9
Joined: Tue Jul 06, 2010 12:31 pm

Post by arun.mittalb »

snmpd.conf file was wrong. i corrected that file and everything was working fine
rvkamat
Posts: 8
Joined: Wed Sep 14, 2011 8:02 am

Re: [solved] SNMP: No SNMP data returned

Post by rvkamat »

I am new to cacti.

CAN ANYONE TEL ME HOW DO WE RUN SNMPWALK for the target host? and what chnges should we make to the snmpd.conf file.

Where can I see teh snmpd.conf file? I could only see snmp.conf file in the net-snmp folder.

My doubts might be foolish. But I am very sorry. I am very new to all this
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: [solved] SNMP: No SNMP data returned

Post by noname »

Please follow this document:
- Installing Under Windows
That is step-by-step installation guide. See also "Troubleshooting" and "FAQ" section.

And refer this topic for further debugging:
- http://forums.cacti.net/viewtopic.php?t=11747
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest