I didn't found the solution on the forum so I start this thread.
I'm working on Nokia Checkpoint FW statistics.
I created my data_query xml file like this :
Code: Select all
<nokia-fwStats>
<name>Get SNMP FW Statistics</name>
<description>Queries a host for a list of FW statistics</description>
<oid_index>.1.3.6.1.4.1.2620.1.1.25.5.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]*.0)$</oid_index_parse>
<index_order>fwIfName:fwIfIndex</index_order>
<index_order_type>numeric</index_order_type>
<fields>
<fwIfIndex>
<name>Index (CHECKPOINT-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.1</oid>
</fwIfIndex>
<fwIfName>
<name>Name (CHECKPOINT-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.2</oid>
</fwIfName>
<fwAcceptPcktsIn>
<name>Accept Packets In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.5</oid>
</fwAcceptPcktsIn>
<fwAcceptPcktsOut>
<name>Accept Packets Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.6</oid>
</fwAcceptPcktsOut>
<fwAcceptBytesIn>
<name>Accept Bytes In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.7</oid>
</fwAcceptBytesIn>
<fwAcceptBytesOut>
<name>Accept Bytes Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.8</oid>
</fwAcceptBytesOut>
<fwDropPcktsIn>
<name>Drop Packets In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.9</oid>
</fwDropPcktsIn>
<fwDropPcktsOut>
<name>Drop Packets Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.10</oid>
</fwDropPcktsOut>
<fwRejectPcktsIn>
<name>Reject Packets In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.11</oid>
</fwRejectPcktsIn>
<fwRejectPcktsOut>
<name>Reject Packets Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.12</oid>
</fwRejectPcktsOut>
<fwLogIn>
<name>Log Packets In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.13</oid>
</fwLogIn>
<fwLogOut>
<name>Log Packets Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2620.1.1.25.5.1.14</oid>
</fwLogOut>
</fields>
</nokia-fwStats>
It works ! When I go to graph list for a specific device, I see my nokia interfaces and I can choose the graph I want choosing the interfaces and then select the graph type (Drop or Accept or Log...) - the same way we can add a graph for traffic interface in fact !
But now I have to add a new graph : Connection number.
It doesn't depend on interfaces (the counter is for the entire nokia) and the index is different.
I would like to use these 2 OID .1.3.6.1.4.1.2620.1.1.25.3.0 (fwNumConn) and .1.3.6.1.4.1.2620.1.1.25.4.0 (fwPeakNumConn), so now the index change from .1.3.6.1.4.1.2620.1.1.25.5.1.1 to .1.3.6.1.4.1.2620.1.1.25.
Is it possible to add a section in my xml file to include this news oids (and index) and add it in the same data query ?
My cacti version : 0.8.7e.
Thanks for your help.