Multiple DSs on one graph...

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

Moderators: Developers, Moderators

Post Reply
porkchop
Posts: 10
Joined: Tue Nov 29, 2005 6:01 pm
Location: Poughkeepsie, NY

Multiple DSs on one graph...

Post by porkchop »

I've been cruising the HOWTO forum trying to find a HOWTO that applies to me. I tried two of them that I thought did, but things didn't work out...

I have an installation of about 150 Cisco access points (1232s and 1242s) with both A and BG radios. I want to graph the number of associations on each radio, and include both pieces of information on the same graph.

I know the OIDs for what I want (.1.3.6.1.4.1.9.9.273.1.1.2.1.1.1 and .1.3.6.1.4.1.9.9.273.1.1.2.1.1.2), and since I have so many APs this should be done in template form. Can someone point me at an appropiate HOWTO?

TIA!
porkchop
Posts: 10
Joined: Tue Nov 29, 2005 6:01 pm
Location: Poughkeepsie, NY

Post by porkchop »

That was the first I tried, and I spent hours on it.
I think I messed up the XML part of it, but I haven't been able to figure that out. Below is my best attempt, though I tried a few other variants.

Code: Select all

<interface>
        <name>Get Aironet Association Data</name>
        <index_order_type>value</index_order_type>
<!--    <oid_index>.1.3.6.1.4.1.9.9.273.1.1.2.1.1</oid_index> -->
        <oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>

        <fields>
                <bgAssoc>
                        <name>BGAssociations</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.9.9.273.1.1.2.1.1.1</oid>
                </bgAssoc>
                <aAssoc>
                        <name>AAssociations</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.9.9.273.1.1.2.1.1.2</oid>
                </aAssoc> 
        </fields>
</interface>
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Take a look at .\cacti\resource\snmp_queries\interface.xml for examples. I suggest you use all the fields present in that file which you are currently not (oid_num_indexes, index_order, etc). I'd also add an <AssocIndex> under <field> and make it an input.

Mind walking the three OIDs you posted and pasting the output?
porkchop
Posts: 10
Joined: Tue Nov 29, 2005 6:01 pm
Location: Poughkeepsie, NY

Post by porkchop »

The walks you asked for:

Code: Select all

root@katratzi:/var/www/htdocs/fi# snmpwalk dn-a2-ap-34 -c seekret .1.3.6.1.4.1.9.9.273.1.1.2.1.1
SNMPv2-SMI::enterprises.9.9.273.1.1.2.1.1.1 = Gauge32: 3
SNMPv2-SMI::enterprises.9.9.273.1.1.2.1.1.2 = Gauge32: 1
root@katratzi:/var/www/htdocs/fi# snmpwalk dn-a2-ap-34 -c seekret .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
root@katratzi:/var/www/htdocs/fi# snmpwalk dn-a2-ap-34 -c seekret .1.3.6.1.2.1.2.1.0
IF-MIB::ifNumber.0 = INTEGER: 5
root@katratzi:/var/www/htdocs/fi# 
I changed the XML, it now reads:

Code: Select all

<interface>
        <name>Get SNMP Interfaces</name>
        <description>Queries a host for a list of monitorable interfaces</description>
        <oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>
        <oid_num_indexes>.1.3.6.1.2.1.2.1.0</oid_num_indexes>
         <index_order>bgAssoc:aAssoc</index_order>
        <!-- <index_order>ifDescr:ifName:ifHwAddr:ifIndex</index_order -->
        <index_order_type>numeric</index_order_type>
        <index_title_format>|chosen_order_field|</index_title_format>
                        
        <fields>
                <bgAssoc>
                        <name>BG Associations</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.9.9.273.1.1.2.1.1.1</oid>
                </bgAssoc>
                <aAssoc>
                        <name>A Associations</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.9.9.273.1.1.2.1.1.2</oid>
                </aAssoc>
                <AssocIndex>
                        <name>Both Associations</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.9.9.273.1.1.2.1.1</oid>
                </AssocIndex>
        </fields>
</interface>
Data query debug:

Code: Select all

+ Running data query [14].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/aironet_assoc.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'AssocIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.273.1.1.2.1.1'
+ Found item [AssocIndex='26'] index: 1 [from value]
+ Found item [AssocIndex='0'] index: 2 [from value]
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/aironet_assoc.xml'
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/aironet_assoc.xml'
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/aironet_assoc.xml'
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/aironet_assoc.xml'
+ Found data query XML file at '/usr/local/cacti/resource/snmp_queries/aironet_assoc.xml'
Happen to see where I'm dumb?
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests