Get SNMP data(Indexed) problems

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

Moderators: Developers, Moderators

Post Reply
jbooks
Posts: 6
Joined: Fri Mar 27, 2009 2:54 pm
Location: Seattle WA

Get SNMP data(Indexed) problems

Post by jbooks »

I have a fresh install of Cacti 0.8.7c on FreeBSD.

If I add a new host with no template I can't add Interface - Traffic or any other graph template that is tied to a 'data input: Get SNMP Data (Indexed)' data source.

If I create a host template using Interface - Traffic and apply that to the new host, when I create the graph it asks for:

Output Type ID
Index Value
Index Type

This is from the data template under Custom Data. These 3 are checked to Use per data source value.

I'm trying to figure out if I need to have an Associated Data Query with this host or host template for it to work. It doesn't appear to but I can not find any other information about what these fields need.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) you really should be using cacti 0.8.7d + patches.

2) For that template, you should be creating them through the device's 'create graphs for this host' link (top right corner).
jbooks
Posts: 6
Joined: Fri Mar 27, 2009 2:54 pm
Location: Seattle WA

Post by jbooks »

BSOD2600 wrote:1) you really should be using cacti 0.8.7d + patches.

2) For that template, you should be creating them through the device's 'create graphs for this host' link (top right corner).
1) I am actually on 0.8.7.d, I will grab the patches.

2) I was associating the graph template with the host and then clicking the 'create graphs for this host'. Even if I don't associate the graph template before creating the graphs 'Interface - Traffic' is still not available.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Paste the verbose query for the 'SNMP - Interface Statistics' data query.
jbooks
Posts: 6
Joined: Fri Mar 27, 2009 2:54 pm
Location: Seattle WA

Post by jbooks »

I guess that's part of what I was asking. I was told that if I had a graph template I didn't need a data query because the graph template was already associated to one.

I have figured out how to get traffic to graph using just the data query and not the graph template. I was hoping to use the graph templates because I eventually need a host template to setup several servers.

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/share/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'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.2' value: '2'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.3' value: '3'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.4' value: '4'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='em0'] index: 1 [from value]
+ Found item [ifDescr='em1'] index: 2 [from value]
+ Found item [ifDescr='plip0'] index: 3 [from value]
+ Found item [ifDescr='lo0'] index: 4 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd(6)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='para(34)'] index: 3 [from value]
+ Found item [ifType='softwareLoopback(24)'] index: 4 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='1000000000'] index: 1 [from value]
+ Found item [ifSpeed='10000000'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Found item [ifSpeed='0'] index: 4 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:30:48:7E:26:9C'] index: 1 [from value]
+ Found item [ifHwAddr='00:30:48:7E:26:9D'] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [from value]
+ Found item [ifHwAddr=''] index: 4 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 4 [from regexp oid parse]
+ Found item [ifIP='208.111.191.186'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface.xml'
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

After our chat, you got it all figured out now, right?
jbooks
Posts: 6
Joined: Fri Mar 27, 2009 2:54 pm
Location: Seattle WA

Post by jbooks »

Yes, thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests