I work on the new snmp query for get, from Firewall filter, only counters name IN and OUT
Currently I recover all the firewall oid name, and only other information from the firewall filter which interest me.
on the picture you can see, on the first full OID and botom only the index which match the REGEXP filter
I looking for disable display index if it not match the RegExp Rules
my snmp query xml :
Code: Select all
<query>
<name>Get SNMP firewall counter</name>
<description>Queries a host for get list of firewall counter</description>
<oid_index>.1.3.6.1.4.1.2636.3.5.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.3\.6\.1\.4\.1\.2636\.3\.5\.1\.1\.1\.([0-9.]+)\.2\.105\.110$</oid_index_parse>
<index_order>NameOFFilter</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<OIDIndex>
<name>OID - VRF</name>
<source>index</source>
<direction>input</direction>
</OIDIndex>
<NameOFFilter>
<name>Filter Name</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2636.3.5.1.1.1</oid>
<oid_suffix>2.105.110</oid_suffix>
</NameOFFilter>
<in>
<name>in</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2636.3.5.1.1.5</oid>
<oid_suffix>2.105.110</oid_suffix>
</in>
<out>
<name>out</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2636.3.5.1.1.5</oid>
<oid_suffix>3.111.117.116</oid_suffix>
</out>
</fields>
</query>
As a reminder :
for 1.3.6.1.4.1.2636.3.5.1.1.1.10.112.114.111.116.101.99.116.45.114.101.11.78.84.80.45.84.82.65.70.70.73.67
.1.3.6.1.4.1.2636.3.5.1.1.1 => OID for firewall Filter
.10 => Number of letters
.112.114.111.116.101.99.116.45.114.101 => name of firewall filter
.11 => Number of letter
.78.84.80.45.84.82.65.70.70.73.67 => name of term
Thanks for helper
Best regards
Dragondark De Lonlindil