Is it supposed to be better ?
It still doesn't work : Same result in the datasource...
Code:
<interface>
<name>StoneSoft fwIfTable</name>
<description>StoneGate firewall interface table stats</description>
<oid_index>.1.3.6.1.4.1.1369.5.2.1.10.1.2</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]*)$</oid_index_parse>
<index_order>fwIfName</index_order>
<fields>
<fwIfStatsIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1369.5.2.1.10.1.1</oid>
</fwIfStatsIndex>
<fwIfName>
<name>Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1369.5.2.1.10.1.2</oid>
</fwIfName>
Code:
+ Running data query [44].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwIfTable.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1369.5.2.1.10.1.2'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.1' value: 'eth0'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.2' value: 'eth1'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.3' value: 'eth2'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.4' value: 'eth3'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.5' value: ''
+ index_parse at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.1' results: '1'
+ index_parse at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.2' results: '2'
+ index_parse at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.3' results: '3'
+ index_parse at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.4' results: '4'
+ index_parse at OID: '1.3.6.1.4.1.1369.5.2.1.10.1.2.5' results: '5'
+ Located input field 'fwIfStatsIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1369.5.2.1.10.1.1'
+ Located input field 'fwIfName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1369.5.2.1.10.1.2'
+ Found item [fwIfName='eth0'] index: 1 [from value]
+ Found item [fwIfName='eth1'] index: 2 [from value]
+ Found item [fwIfName='eth2'] index: 3 [from value]
+ Found item [fwIfName='eth3'] index: 4 [from value]
+ Found item [fwIfName=''] index: 5 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwIfTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwIfTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwIfTable.xml'
Btw, I don't understand : it works perfectly the first way (without regex) for other queries in other branches :
Code:
<interface>
<name>StoneSoft fwDiskSpaceUsageTable</name>
<description>StoneGate disk space usage table stats</description>
<oid_index>.1.3.6.1.4.1.1369.5.2.1.11.3.1.2</oid_index>
<index_order>fwPartitionDevName</index_order>
<index_order_type>numeric</index_order_type>
<fields>
<fwPartitionIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1369.5.2.1.11.3.1.1</oid>
</fwPartitionIndex>
<fwPartitionDevName>
<name>Device name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1369.5.2.1.11.3.1.2</oid>
</fwPartitionDevName>
Code:
+ Running data query [46].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1369.5.2.1.11.3.1.2'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.11.3.1.2.1' value: '/dev/sda2'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.11.3.1.2.2' value: '/dev/sda6'
+ Index found at OID: '1.3.6.1.4.1.1369.5.2.1.11.3.1.2.3' value: '/dev/sda7'
+ Located input field 'fwPartitionIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1369.5.2.1.11.3.1.1'
+ Located input field 'fwPartitionDevName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1369.5.2.1.11.3.1.2'
+ Found item [fwPartitionDevName='/dev/sda2'] index: 1 [from value]
+ Found item [fwPartitionDevName='/dev/sda6'] index: 2 [from value]
+ Found item [fwPartitionDevName='/dev/sda7'] index: 3 [from value]
+ Located input field 'fwMountPointName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1369.5.2.1.11.3.1.3'
+ Found item [fwMountPointName='/'] index: 1 [from value]
+ Found item [fwMountPointName='/data'] index: 2 [from value]
+ Found item [fwMountPointName='/spool'] index: 3 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/StoneSoft_fwDiskSpaceUsageTable.xml'