I've come across issues with snmp queries that I just can't seem to get a handle on, I've seen plenty of examples that seem to work perhaps someone can point me in the right direction.
Here are the xml queries i've tried and the results of each:
method:walk source:value
Code: Select all
<interface>
<name>Get F5 Big-IP Load Balancer Virtual Server Statistics</name>
<oid_index>1.3.6.1.4.1.3375.2.2.10.1.2.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.3375\.2\.2\.10\.1\.2\.1\.1\.([0-9\.]*)$</oid_index_parse>
<oid_num_indexes>1.3.6.1.4.1.3375.2.2.10.1.1</oid_num_indexes>
<index_order>vsIndex</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<vsIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</vsIndex>
<vsName>
<name>Virtual Server Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.1.2.1.1</oid>
</vsName>
<vsPortNumber>
<name>Virtual Server Port</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.1.2.1.6</oid>
</vsPortNumber>
<vsBytesIn>
<name>Bytes In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.7</oid>
</vsBytesIn>
<vsBytesOut>
<name>Bytes Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.9</oid>
</vsBytesOut>
<vsConnectionRate>
<name>Connection Rate</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.11</oid>
</vsConnectionRate>
<vsConcurrentConnections>
<name>Concurrent Connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.12</oid>
</vsConcurrentConnections>
</fields>
</interface>
(notice how it blows away the regex'd index after the vsName walk)
Code: Select all
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '1.3.6.1.4.1.3375.2.2.10.1.2.1.1'
+ Inserting index data [value='10.82.101.100.70.111.114.119.97.114.100']
+ Inserting index data [value='10.82.101.100.78.101.116.119.111.114.107']
+ Inserting index data [value='17.112.112.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109']
+ Inserting index data [value='18.97.112.105.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109']
+ Inserting index data [value='19.98.101.116.97.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109']
+ Located input field 'vsName' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.3375.2.2.10.1.2.1.1'
+ Found item [vsName='RedForward'] index: 10.82.101.100.70.111.114.119.97.114.100 [from value]
+ Found item [vsName='RedNetwork'] index: 10.82.101.100.78.101.116.119.111.114.107 [from value]
+ Found item [vsName='pp.advancedmd.com'] index: 17.112.112.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109 [from value]
+ Found item [vsName='api.advancedmd.com'] index: 18.97.112.105.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109 [from value]
+ Found item [vsName='beta.advancedmd.com'] index: 19.98.101.116.97.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109 [from value]
+ Located input field 'vsPortNumber' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.3375.2.2.10.1.2.1.6'
+ Found item [vsPortNumber='0'] index: SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.6.10.82.101.100.70.111.114.119.97.114.100 [from value]
+ Found item [vsPortNumber='0'] index: SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.6.10.82.101.100.78.101.116.119.111.114.107 [from value]
+ Found item [vsPortNumber='80'] index: SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.6.17.112.112.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109 [from value]
+ Found item [vsPortNumber='443'] index: SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.6.18.97.112.105.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109 [from value]
+ Found item [vsPortNumber='443'] index: SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.6.19.98.101.116.97.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109 [from value]
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
What it actually gives me is 15 Items and 10 rows.. so it lumps the port into its own section seperate from the other 5.
Here is the xml for method:walk source:index
Code: Select all
<interface>
<name>Get F5 Big-IP Load Balancer Virtual Server Statistics</name>
<oid_index>1.3.6.1.4.1.3375.2.2.10.1.2.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.3375\.2\.2\.10\.1\.2\.1\.1\.([0-9\.]*)$</oid_index_parse>
<oid_num_indexes>1.3.6.1.4.1.3375.2.2.10.1.1</oid_num_indexes>
<index_order>vsIndex</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<vsIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</vsIndex>
<vsName>
<name>Virtual Server Name</name>
<method>walk</method>
<source>index</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.1.2.1.1</oid>
</vsName>
<vsPortNumber>
<name>Virtual Server Port</name>
<method>walk</method>
<source>index</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.1.2.1.6</oid>
</vsPortNumber>
<vsBytesIn>
<name>Bytes In</name>
<method>walk</method>
<source>index</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.7</oid>
</vsBytesIn>
<vsBytesOut>
<name>Bytes Out</name>
<method>walk</method>
<source>index</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.9</oid>
</vsBytesOut>
<vsConnectionRate>
<name>Connection Rate</name>
<method>walk</method>
<source>index</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.11</oid>
</vsConnectionRate>
<vsConcurrentConnections>
<name>Concurrent Connections</name>
<method>walk</method>
<source>index</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3375.2.2.10.2.3.1.12</oid>
</vsConcurrentConnections>
</fields>
</interface>
Code: Select all
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '1.3.6.1.4.1.3375.2.2.10.1.2.1.1'
+ Inserting index data [value='10.82.101.100.70.111.114.119.97.114.100']
+ Inserting index data [value='10.82.101.100.78.101.116.119.111.114.107']
+ Inserting index data [value='17.112.112.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109']
+ Inserting index data [value='18.97.112.105.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109']
+ Inserting index data [value='19.98.101.116.97.46.97.100.118.97.110.99.101.100.109.100.46.99.111.109']
+ Located input field 'vsName' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.3375.2.2.10.1.2.1.1'
+ Located input field 'vsPortNumber' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.3375.2.2.10.1.2.1.6'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/F5-VirtualServer.xml'
I read in another post that using walk with regex'd index destroys the indexes (the behavior i'm seeing with the first xml) but if i try method:get with source:index I see the exact same results as the second xml, it says located input field X [get] and then does nothing about it.
I realise this is a long post, I've been pulling my hair out all day trying to get this working so any help is greatly appreciated, and I will gladly post the numerous templates I have in mind for these F5's when done getting these queries working.
--Justin