SNMP query succeeds, but no interfaces in add graphs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
denger
Posts: 5
Joined: Thu Apr 03, 2008 6:43 pm

SNMP query succeeds, but no interfaces in add graphs

Post by denger »

I have a fresh install of cacti 0.8.7b on CentOS 5.1.

When I add any Linux net-snmp type host (which has worked previously with earlier CentOS and cacti on the same server), it looks fine. Verbose query under Interface Statistics appears to return four interfaces. However when I go to "Create Graphs", it says under Data Query [SNMP - Interface Statistics]:
"This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information."

SNMP cache search show the following:

Code: Select all

 Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifDescr , Field Value: lo
OID: .1.3.6.1.2.1.2.2.1.2.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifDescr , Field Value: eth0
OID: .1.3.6.1.2.1.2.2.1.2.2
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifDescr , Field Value: eth1
OID: .1.3.6.1.2.1.2.2.1.2.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 4 , Field Name: ifDescr , Field Value: sit0
OID: .1.3.6.1.2.1.2.2.1.2.4
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifHwAddr , Field Value:
OID: .1.3.6.1.2.1.2.2.1.6.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifHwAddr , Field Value: 00:00:06:5B:19:XX:XX
OID: .1.3.6.1.2.1.2.2.1.6.2
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifHwAddr , Field Value: 00:00:06:5B:19:XX:XX
OID: .1.3.6.1.2.1.2.2.1.6.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 4 , Field Name: ifHwAddr , Field Value: 00:00:00:00:00:XX:XX
OID: .1.3.6.1.2.1.2.2.1.6.4
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifIndex , Field Value: 1
OID: .1.3.6.1.2.1.2.2.1.1.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifIndex , Field Value: 2
OID: .1.3.6.1.2.1.2.2.1.1.2
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifIndex , Field Value: 3
OID: .1.3.6.1.2.1.2.2.1.1.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 4 , Field Name: ifIndex , Field Value: 4
OID: .1.3.6.1.2.1.2.2.1.1.4
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifIP , Field Value: 127.0.0.1
OID: .1.3.6.1.2.1.4.20.1.2.127.0.0.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifIP , Field Value: XXX.XXX.XXX.XX
OID: .1.3.6.1.2.1.4.20.1.2.204.9.136.5
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifIP , Field Value: 10.0.0.3
OID: .1.3.6.1.2.1.4.20.1.2.10.0.0.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifOperStatus , Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifOperStatus , Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.2
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifOperStatus , Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 4 , Field Name: ifOperStatus , Field Value: Down
OID: .1.3.6.1.2.1.2.2.1.8.4
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifSpeed , Field Value: 10000000
OID: .1.3.6.1.2.1.2.2.1.5.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifSpeed , Field Value: 100000000
OID: .1.3.6.1.2.1.2.2.1.5.2
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifSpeed , Field Value: 100000000
OID: .1.3.6.1.2.1.2.2.1.5.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 4 , Field Name: ifSpeed , Field Value: 0
OID: .1.3.6.1.2.1.2.2.1.5.4
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 1 , Field Name: ifType , Field Value: softwareLoopback(24)
OID: .1.3.6.1.2.1.2.2.1.3.1
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 2 , Field Name: ifType , Field Value: ethernetCsmacd(6)
OID: .1.3.6.1.2.1.2.2.1.3.2
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 3 , Field Name: ifType , Field Value: ethernetCsmacd(6)
OID: .1.3.6.1.2.1.2.2.1.3.3
Host: wisdom , SNMP Query: SNMP - Interface Statistics
Index: 4 , Field Name: ifType , Field Value: tunnel(131)
OID: .1.3.6.1.2.1.2.2.1.3.4
Any clues why does it think the query returned nothing?

Thanks![/quote]
denger
Posts: 5
Joined: Thu Apr 03, 2008 6:43 pm

nothing?

Post by denger »

No ideas as to how to go about debugging this situation?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Sure. Please follow second link of my sig and post results of every step
Reinhard
denger
Posts: 5
Joined: Thu Apr 03, 2008 6:43 pm

resolved?

Post by denger »

This is really weird. I went to collect all the info per gandalf's instructions and all the interfaces were now available under create graphs.
Strange, but it is now working.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Magic, isn't it?
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests