SNMP-Interface Statistics can no longer be indexed.

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

Moderators: Developers, Moderators

Post Reply
Digital.Diablo
Posts: 6
Joined: Thu Apr 21, 2005 11:56 am

SNMP-Interface Statistics can no longer be indexed.

Post by Digital.Diablo »

Morning All,

I've got a strange cacti issue.

Using Build v0.8.6h with all the official patches installed, no 'alternative' patches, except for a few templates (a Netscreen one for example), running on a RHL9 machine.

For some reason, I can no longer add devices using the interface.xml template/data query. When I add a generic SNMP device (for example a cisco device) I can get the Cisco CPU usage, but I can't get any interface details, it just says 'Success [0 Items, 0 Rows]'

The verbose query shows :-

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/opt/lampp/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 '/opt/lampp/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/opt/lampp/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/opt/lampp/htdocs/cacti/resource/snmp_queries/interface.xml'
However, if I ssh onto the box, and run SNMPWALK from the box, I get..

Code: Select all

snmpwalk -v 1 -c %mycommunitystring% 10.6.10.6 .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
which seems to indicate that the query is correct and the device is responding as expected. I've tried recopying the /scripts and /resource files from another box which has an older, inactive backup of the system, but this is still the same.

All of my existing devices that have the SNMP-Interfaces Stats queries running on them seem to work fine, its just new devices that don't seem to work.

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

Post by gandalf »

The "new" targets where not set to SNMP V2 by accident within cacti?
Reinhard
Digital.Diablo
Posts: 6
Joined: Thu Apr 21, 2005 11:56 am

Post by Digital.Diablo »

Nope, I've checked that. Besides, the hosts respond to snmp 1 and 2 queries. And I've tried both settings within Cacti.
Digital.Diablo
Posts: 6
Joined: Thu Apr 21, 2005 11:56 am

Post by Digital.Diablo »

Anybody? No? Dust? Anyone? No? :D
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please retry your cli test with the following snmpget options

Code: Select all

snmpget -c <community> -v 1 -O fntev <target> <OID>
The -O fntev options are used by cacti.
Reinhard
Digital.Diablo
Posts: 6
Joined: Thu Apr 21, 2005 11:56 am

Post by Digital.Diablo »

When I do that, I'm getting:-

Code: Select all

snmpget -c %mysnmpstring% -v 1 -O fntev 10.6.10.6 .1.3.6.1.2.1.2.2.1.1

-bash Timeout: No Response from 10.6.10.6.
I've tried it on a variety of devices, all of them are behaving in a similar fasion. All the devices respond to pings and snmpwalks.
So I take it something is up with snmpget? But what could it be? :-?

Also I've just noticed that I'm getting lots of

Code: Select all

06/05/2006 03:42:04 PM - CMDPHP: Poller[0] Host[185] DS[774] WARNING: Result from SNMP not valid.  Partial Result:
06/05/2006 03:42:05 PM - CMDPHP: Poller[0] Host[185] DS[774] WARNING: Result from SNMP not valid.  Partial Result:
06/05/2006 03:42:10 PM - CMDPHP: Poller[0] Host[214] DS[1228] WARNING: Result from SNMP not valid.  Partial Result:
06/05/2006 03:42:10 PM - CMDPHP: Poller[0] Host[185] DS[777] WARNING: Result from SNMP not valid.  Partial Result:
errors in my cacti.log file. So, the question is, whats broken?

Cheers!
Last edited by Digital.Diablo on Mon Jun 05, 2006 10:35 am, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So try to leave the -O parms one by one (may have a look at man snmpcmd to get the meanings of those parms) to check out the "bad" one ...
Reinhard
Digital.Diablo
Posts: 6
Joined: Thu Apr 21, 2005 11:56 am

Post by Digital.Diablo »

I've tried that, for each of the extensions, it doesn't work,

Code: Select all

Timeout: No Response from 10.6.10.6.
and I've tried every possible combination.

So I guess my snmpget is broken? But how to fix is the question?

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

Post by gandalf »

Digital.Diablo wrote:I've tried that, for each of the extensions, it doesn't work,

Code: Select all

Timeout: No Response from 10.6.10.6.
and I've tried every possible combination.

So I guess my snmpget is broken? But how to fix is the question?

:-?
I suppose so. Reinstall (from rpm) or compiling lastest stable version would be an option ...
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests