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.
Get SNMP data(Indexed) problems
Moderators: Developers, Moderators
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).
2) For that template, you should be creating them through the device's 'create graphs for this host' link (top right corner).
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
1) I am actually on 0.8.7.d, I will grab the patches.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).
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.
Paste the verbose query for the 'SNMP - Interface Statistics' data query.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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'
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'
After our chat, you got it all figured out now, right?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 3 guests