Regex index with method get for values is not graphing

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

Moderators: Developers, Moderators

Post Reply
apharas
Posts: 18
Joined: Mon Oct 10, 2005 12:25 pm

Regex index with method get for values is not graphing

Post by apharas »

I have been working on graphing the call statistics from a FORE atm switch. The index is (port.vpi) so I have to use regex to obtain the list of indexes. When clicking on verbose query from the device page all data shows up just fine but when I attempt to create a graph no rrd file is created and the oid's for call statistics are not polled.

cacti 0.8.6g
cactid 0.8.6f

Here is the xml file for the data query.

<interface>
<name>Get SNMP Interfaces</name>
<description>Queries a Marconi for call statistics</description>
<oid_index>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.6</oid_index>
<index_order>ifName:pathVPI:ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<oid_index_parse>OID/REGEXP:.*\.326\.2\.2\.2\.1\.3\.1\.1\.6\.([0-9\.]*)<
/oid_index_parse>
<fields>
<ifName>
<name>Name (IF-MIB)</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.1</oid>
</ifName>
<pathVPI>
<name>Path VPI</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.2</oid>
</pathVPI>
<ifStatus>
<name>Status</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.3</oid>
</ifStatus>
<pathNumChannels>
<name>Number of Active Channels</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.6</oid>
</pathNumChannels>
<pathVPIerrors>
<name>Path VPI Errors</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.17</oid>
</pathVPIerrors>
<pathMaxChannels>
<name>Path Max Channels</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.5</oid>
</pathMaxChannels>

</fields>
</interface>


Any help would be appreciated. I have the same FORE graphing ATM statistics without any problems but all OID's are using method walk instead of get since it's a standard index.

--
Alex
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try using the php script server and see what the outputs are.
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

Your OID/REGEX is not correct.

The Regex is applied to the OID for each value, not just for getting the initial indexes. So, you'll need to "wildcard" the second-to-last octet to get any matches.

Make sure the indexes show up right on your debug output! If you see the whole OID, then it's not matching.
apharas
Posts: 18
Joined: Mon Oct 10, 2005 12:25 pm

Post by apharas »

Thanks for the help, just to add the <ifIndex></ifIndex> section to get the device to graph properly.


<interface>
<name>Get SNMP Interfaces</name>
<description>Queries a host for a list of monitorable interfaces</descri
ption>
<oid_index>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.6</oid_index>
<index_order>ifName:pathVPI:ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<oid_index_parse>OID/REGEXP:.*\.326\.2\.2\.2\.1\.3\.1\.1\.6\.([0-9\.]*)<
/oid_index_parse>



<fields>
<ifIndex>
<name>Index</name>
<source>index</source>
<method>walk</method>
<direction>input</direction>
</ifIndex>
<ifName>
<name>Name (IF-MIB)</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.1</oid>
</ifName>
<pathVPI>
<name>Path VPI</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.2</oid>
</pathVPI>
<ifStatus>
<name>Status</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.3</oid>
</ifStatus>
<pathNumChannels>
<name>Number of Active Channels</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.6</oid>
</pathNumChannels>
<pathVPIerrors>
<name>Path VPI Errors</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.17</oid>
</pathVPIerrors>
<pathMaxChannels>
<name>Path Max Channels</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.326.2.2.2.1.3.1.1.5</oid>
</pathMaxChannels>

</fields>
</interface>
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests