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
Regex index with method get for values is not graphing
Moderators: Developers, Moderators
Try using the php script server and see what the outputs are.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
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.
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>
<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>
Who is online
Users browsing this forum: No registered users and 3 guests