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!
Multiple DSs on one graph...
Moderators: Developers, Moderators
| 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 |
That was the first I tried, and I spent hours on it.BSOD2600 wrote:Tried http://forums.cacti.net/viewtopic.php?t=11288 ?
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>
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?
Mind walking the three OIDs you posted and pasting the output?
| 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 |
The walks you asked for:
I changed the XML, it now reads:
Data query debug:
Happen to see where I'm dumb?
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#
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>
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'
Who is online
Users browsing this forum: No registered users and 5 guests