"OID/REGEXP" is not work very well

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
phenixfong
Posts: 2
Joined: Mon Feb 01, 2016 8:45 pm

"OID/REGEXP" is not work very well

Post by phenixfong »

I made a template to query Cisco Nexus Memory Usage.Because SNMP Index does not exist,I create a index using the OID/REGEXP.
The Query1 works well,but the Query2 can not work.Cacti can not create the rrd file for Query2,and there is nothing information in log file.It seems that cacti does not poll the Query2.
In the Data template associated wiht Data query2, Data souce can onle be set 'Mem Used',not 'Mem Free'.
pls find attachment...
How can I do to find the reason? Thank you!

Query1: ----------------Index is 1
<query>
<name>Cisco Nexus - TST Get Memory Usage</name>
<description>TST Get Memory Usage</description>
<oid_index>.1.3.6.1.4.1.9.9.109.1.1.1.1.13</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,2})$</oid_index_parse>
<index_order>MemoryIndex</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<MemoryIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</MemoryIndex>
<memoryUsed>
<name>Used</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.109.1.1.1.1.12</oid>
</memoryUsed>
<memoryFree>
<name>Free</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.109.1.1.1.1.13</oid>
</memoryFree>
</fields>
</query>

Query2:---------Index is 13
<query>
<name>Cisco Nexus - TST Get Memory Usage</name>
<description>TST Get Memory Usage</description>
<oid_index>.1.3.6.1.4.1.9.9.109.1.1.1.1.13</oid_index>
<oid_index_parse>OID/REGEXP:^.{29}(.*).1$</oid_index_parse>
<index_order>MemIndex</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<MemIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</MemIndex>
<MemUsed>
<name>Used</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.109.1.1.1.1.12</oid>
</MemUsed>
<MemFree>
<name>Free</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.109.1.1.1.1.13</oid>
</MemFree>
</fields>
</query>
Attachments
DataQuery Associated Graph-Data Templates.jpg
DataQuery Associated Graph-Data Templates.jpg (74.49 KiB) Viewed 479 times
phenixfong
Posts: 2
Joined: Mon Feb 01, 2016 8:45 pm

Re: "OID/REGEXP" is not work very well

Post by phenixfong »

This problem has been resolved.
Two Data Templates using these two Data Queries is set the same dsname.When I change the second Data query's dsname,rrd file is created.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests