SNMP - Interface Statistics This data query returned 0 rows

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

Moderators: Developers, Moderators

Post Reply
Weedy
Posts: 23
Joined: Thu Jan 26, 2006 7:07 pm

SNMP - Interface Statistics This data query returned 0 rows

Post by Weedy »

thanks in advance

Code: Select all

Data Query Debug Information	
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/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/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'

Code: Select all

View SNMP Cache [4 Items]	
Host: Localhost, SNMP Query: Unix - Get Mounted Partitions 	
Index: //Nanako/ybbot, Field Name: dskMount, Field Value: /mnt/samba/ybbot 	
OID: 	
Host: Localhost, SNMP Query: Unix - Get Mounted Partitions 	
Index: //Nanako/ybbot, Field Name: dskDevice, Field Value: //Nanako/ybbot 	
OID: 	
Host: Localhost, SNMP Query: Unix - Get Mounted Partitions 	
Index: /dev/hda3, Field Name: dskMount, Field Value: / 	
OID: 	
Host: Localhost, SNMP Query: Unix - Get Mounted Partitions 	
Index: /dev/hda3, Field Name: dskDevice, Field Value: /dev/hda3 	
OID:

Code: Select all

 ~ # snmpget -c public -v 1 -O fntev localhost .1.3.6.1.2.1.2.2.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.2.2.1.1
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The last bit shows a broken snmp installation. Normally, snmpd should respond to this OID. You may leave the -O stuff and check again. Only lately, I had a similar problem to discuss, where all -O options broke the command
Reinhard
Weedy
Posts: 23
Joined: Thu Jan 26, 2006 7:07 pm

Post by Weedy »

Code: Select all

~ # snmpget -c public -v 1 localhost .1.3.6.1.2.1.2.2.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IF-MIB::ifIndex
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

can you try to replace your /etc/snmp/snmpd.conf with this one :

Code: Select all

rocommunity public
includeAllDisks
[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]
pgisi
Posts: 3
Joined: Thu Jun 08, 2006 2:56 pm
Location: Denver, Colorado

SNMP - Interface Statistics This data query returned 0 rows

Post by pgisi »

I am new to Cacti and having the same basic problem from the install I did made today. My hosts show as Status Unknown with a 100% availability. When I loaded the device it also showed SNMP error under the SNMP Informaion. However from the server that I am running cacti on I get the following;

Code: Select all

# snmpwalk -v1 -c community host .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
... omited for brevity
IF-MIB::ifIndex.17 = INTEGER: 17
IF-MIB::ifIndex.18 = INTEGER: 18
IF-MIB::ifIndex.19 = INTEGER: 19
I dont know much about were to start troubleshooting Cacti or the rrdtool

Any help would be greatly appreciated.

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

Post by gandalf »

You surely configured the correct community string for that host? And correct snmp version? Are you running the lastest cacti version? Please check Downed Host Detection under Settings
Reinhard
pgisi
Posts: 3
Joined: Thu Jun 08, 2006 2:56 pm
Location: Denver, Colorado

Post by pgisi »

I verified the community ... its the same one used in the snmpwalk (I edited for the post along with the Host IP). I already updeated my Downed Host Detection to use Ping and SNMP to verfiy that there is at least communicaitons and it seems as there is. The Debug hits towards a setting error but I can not find one anywhere. The Cacti Verseion is the latest version also. :-?

Code: Select all

06/08/2006 01:30:01 PM - CMDPHP: Poller[0] Host[1] PING: Host is alive
06/08/2006 01:30:01 PM - CMDPHP: Poller[0] Host[1] SNMP: SNMP not performed due to setting or ping result.


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

Post by gandalf »

Please change downed host detection to SNMP only. And report the results of snmpwalking with the parameters -O fntev as stated above
Reinhard
Weedy
Posts: 23
Joined: Thu Jan 26, 2006 7:07 pm

Post by Weedy »

fmangeant wrote:Hi

can you try to replace your /etc/snmp/snmpd.conf with this one :

Code: Select all

rocommunity public
includeAllDisks
no change
pgisi
Posts: 3
Joined: Thu Jun 08, 2006 2:56 pm
Location: Denver, Colorado

Post by pgisi »

OK so that shows that snmpd is broken on my loacl host right? (I do get the same result with the -O stuff or not)

Code: Select all

[~]# snmpget -c xxxxxxx -v 1 -O fntev localhost .1.3.6.1.2.1.2.2.1.1
Timeout: No Response from localhost.

[~]# snmpget -c xxxxxxx -v 1 -O fntev X.X.X.X .1.3.6.1.2.1.2.2.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.2.2.1.1
I set up MRTG on a test windows host and it seems to work fine against my remote host. I will look into my net-snmp install to find resolution I guess ... I also changed the poller back to SNMP only. [/quote]
Weedy
Posts: 23
Joined: Thu Jan 26, 2006 7:07 pm

Post by Weedy »

hmm my thread is dying, not good.. not good..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Weedy wrote:

Code: Select all

~ # snmpget -c public -v 1 localhost .1.3.6.1.2.1.2.2.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IF-MIB::ifIndex
This shows a broken snmp on the target side. No SNMP = no data for cacti. You may get more help on this at net-snmp.org?
Reinhard
Weedy
Posts: 23
Joined: Thu Jan 26, 2006 7:07 pm

Post by Weedy »

#net-snmp wrote:<rstory> Weedy_laptop: you can't snmpget .1.3.6.1.2.1.2.2.1.1, you have to specify which index you want for snmpget. a snmpwalk of .1.3.6.1.2.1.2.2.1.1 should work though.
<rstory-work> you have to tell it which interface you want data for, or use walk instead of get
and i can walk it

Code: Select all

Kana-chan ~ # snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.2.1.2.2.1.1             IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
so then why can't cacti access it?

Code: Select all

Data Query Debug Information	
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/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/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
I'm confused

Edit:I didn't give cacti the community... you may shoot me at will -_-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest