I have defined an XML file as such:
Code: Select all
<interface>
<name>ServerIron - Real Server Information</name>
<description>Queries a ServerIron Load Balancer for Real Servers to be monitored</description>
<oid_index>1.3.6.1.4.1.1991.1.1.4.24.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)</oid_index_parse>
<index_order>displayName:ipAddress:port</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<ipAddress>
<name>IP Address</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.24.1.1.1</oid>
</ipAddress>
<port>
<name>Port</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.24.1.1.2</oid>
</port>
<displayName>
<name>Display Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.24.1.1.3</oid>
</displayName>
<connections>
<name>Connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.24.1.1.7</oid>
</connections>
</fields>
</interface>
Code: Select all
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.1.10.11.1.112.8888 = IpAddress: 10.11.1.112
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.1.10.11.1.113.8888 = IpAddress: 10.11.1.113
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.1.10.11.1.114.8888 = IpAddress: 10.11.1.114
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.1.10.11.1.115.8888 = IpAddress: 10.11.1.115
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.2.10.11.1.112.8888 = INTEGER: 8888
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.2.10.11.1.113.8888 = INTEGER: 8888
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.2.10.11.1.114.8888 = INTEGER: 8888
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.2.10.11.1.115.8888 = INTEGER: 8888
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.3.10.11.1.112.8888 = STRING: "server1"
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.3.10.11.1.113.8888 = STRING: "server2"
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.3.10.11.1.114.8888 = STRING: "server3"
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.3.10.11.1.115.8888 = STRING: "server4"
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.4.10.11.1.112.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.4.10.11.1.113.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.4.10.11.1.114.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.4.10.11.1.115.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.5.10.11.1.112.8888 = INTEGER: 6
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.5.10.11.1.113.8888 = INTEGER: 6
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.5.10.11.1.114.8888 = INTEGER: 6
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.5.10.11.1.115.8888 = INTEGER: 6
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.6.10.11.1.112.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.6.10.11.1.113.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.6.10.11.1.114.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.6.10.11.1.115.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.7.10.11.1.112.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.7.10.11.1.113.8888 = INTEGER: 30
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.7.10.11.1.114.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.7.10.11.1.115.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.8.10.11.1.112.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.8.10.11.1.113.8888 = Counter32: 31461169
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.8.10.11.1.114.8888 = Counter32: 129850
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.8.10.11.1.115.8888 = Counter32: 441
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.9.10.11.1.112.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.9.10.11.1.113.8888 = Counter32: 48782
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.9.10.11.1.114.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.9.10.11.1.115.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.10.10.11.1.112.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.10.10.11.1.113.8888 = Counter32: 27911
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.10.10.11.1.114.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.10.10.11.1.115.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.11.10.11.1.112.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.11.10.11.1.113.8888 = Counter32: 62210801
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.11.10.11.1.114.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.11.10.11.1.115.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.12.10.11.1.112.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.12.10.11.1.113.8888 = Counter32: 3759499
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.12.10.11.1.114.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.12.10.11.1.115.8888 = Counter32: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.13.10.11.1.112.8888 = INTEGER: 0
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.13.10.11.1.113.8888 = INTEGER: 387
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.13.10.11.1.114.8888 = INTEGER: 194
SNMPv2-SMI::enterprises.1991.1.1.4.24.1.1.13.10.11.1.115.8888 = INTEGER: 5
Next I define a Data Template using per-data source values for Name, Output Type ID, Index Value and Index Type. I define GAUGE type, and a sensible Maximum value of 10000.
Now I clone a Graph Template I like, and change all of the Template Items to use the new Data Template.
Next I go back to the Graph Template and attach the Graph Template to the Data Query. I name it 'Connections', drop-down select the Graph Template and define a suggested Name value for Data Template, as well as a suggested Title value for the graphs. Both look something like this:
|host_description| - RS: "|query_displayName|" (|query_ipAddress|:|query_port|)
Now I return to my test device (which points at a ServerIron) and add this Data Query, then select 'Create Graphs for this host'. At this point I see a large table full of graphs I can create. I select the Real Server I know will have active connections and click create. The Data Source gets created.
Here are the issues I am running into:
- The graph does not get populated. Yesterday it did, but remained empty.
- The Data Source shows:
Output Type ID: "Data query data sources must be created through New Graphs."
Index Value: [null]
Index Type: "Data query data sources must be created through New Graphs."
Shouldn't these fields be populated by the data query in question? I have templated all of my work based on the SNMP - Interface data query, but I do not get properly populated Data Sources. I assume it's because of the more complex nature of the indexing in the MIB. I just don't know enough about how Cacti deals with this to correct the issue.
Help!