Need Data Query Template Help - Cisco ASA-5520 Mem Buffers

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
silvein
Posts: 1
Joined: Wed Jul 06, 2011 8:58 pm

Need Data Query Template Help - Cisco ASA-5520 Mem Buffers

Post by silvein »

I'm trying to graph the memory buffers on an ASA-5520, but I'm having trouble figuring out a way to set up the data query.

To construct the data point OIDs, there is the base OID (.1.3.6.1.4.1.9.9.147.1.2.2.1.1.4), then the buffer size (one of 0, 4, 80, 256, 1550, 2048, 2560, 4096, 8192, 16384, or 65536), then the type (3=maximum, 5=fewest, 8=current). So the current number of allocated 1550 block buffers is in OID .1.3.6.1.4.1.9.9.147.1.2.2.1.1.4.1550.8.

Code: Select all

.1.3.6.1.4.1.9.9.147.1.2.2.1.1.4.1550.8 = Gauge32: 10677
The base OID .1.3.6.1.4.1.9.9.147.1.2.2.1.1.3 contains string based information about the data points:

Code: Select all

.1.3.6.1.4.1.9.9.147.1.2.2.1.1.3.1550.8 = STRING: current number of available 1550 byte blocks
I'd like to index based on the buffer size and return the 3 data points. But since the OIDs are based on the size and THEN the data point, I'm having trouble. Is it possible to append information to the OID after the Index?

This is the data query I have so far, but it creates a data source for every data point, instead of combining them by the buffer size. Has anyone attempted to collect data laid out like this before, or does anyone know of a template that does something similar I can learn from?

Code: Select all

<query>
        <name>Cisco Firewall Buffers</name>
        <description>Queries a host for the firewall buffer status.</description>
        <oid_index>.1.3.6.1.4.1.9.9.147.1.2.2.1.1.4</oid_index>
        <oid_index_parse>OID/REGEXP:^.*\.([[0-9]+\.[358])$</oid_index_parse>
        <index_order>Index</index_order>
        <index_order_type>numeric</index_order_type>

        <fields>
                <bufIndex>
                        <name>Index</name>
                        <source>index</source>
                        <direction>input</direction>
                </bufIndex>
                <bufInfo>
                        <oid>.1.3.6.1.4.1.9.9.147.1.2.2.1.1.3</oid>
                        <name>Description</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                </bufInfo>
                <bufValue>
                        <oid>.1.3.6.1.4.1.9.9.147.1.2.2.1.1.4</oid>
                        <name>Count</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                </bufValue>
        </fields>
</query>
jarcherky
Posts: 1
Joined: Thu Jan 26, 2012 1:14 pm

Re: Need Data Query Template Help - Cisco ASA-5520 Mem Buffe

Post by jarcherky »

By chance did you figure out how to make this work? I used your template and was able to get the snmp query to run and display on the device page, but it will never graph.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests