I have a problem with a SNMP data query with 0.8.6i. I am trying to graph the open and new connections on a serveriron load balancer.
This is the XML file for the query:
Code: Select all
<query>
<name>Get Virtual Server port statistics</name>
<description>Queries a Serveriron Load Balancer for its SLB Virtual Server ports</description>
<oid_index>.1.3.6.1.4.1.1991.1.1.4.26.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]+)$</oid_index_parse>
<fields>
<snL4VirtualServerPortStatisticIP>
<name>IP</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.26.1.1.1</oid>
</snL4VirtualServerPortStatisticIP>
<snL4VirtualServerPortStatisticPort>
<name>port</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.26.1.1.2</oid>
</snL4VirtualServerPortStatisticPort>
<snL4VirtualServerPortStatisticName>
<name>name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.26.1.1.3</oid>
</snL4VirtualServerPortStatisticName>
<snL4VirtualServerPortStatisticCurrentConnection>
<name>current_connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.26.1.1.4</oid>
</snL4VirtualServerPortStatisticCurrentConnection>
<snL4VirtualServerPortStatisticTotalConnections>
<name>total_connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.26.1.1.5</oid>
</snL4VirtualServerPortStatisticTotalConnections>
</fields>
</query>
The query works well but graphs and data sources created by the data query are not correctly created.
All query specific || place holders are not replaced in the title of the graph nor the name of the data sources but |host_description| is correctly replaced:
Furthermore the data sources index value is empty. The index type and output type id have the following:+ Created graph: lb01 - VServer Port - Connections - |query_snL4VirtualServerPortStatisticName|:|query_snL4VirtualServerPortStatisticPort|
Does anyone know how to fix/debug this?Data query data sources must be created through New Graphs.
I have other data queries on the load balancer and graph creation works well with them. Here are the differences:
- * The other data queries were created with 0.8.6h
* The new query has the IP AND the port as index (e.g. 192.168.12.1.80)
* The new graph template has two sources (open_connections and total_connections) in a single data source