Ubiquiti airfiber Tamplates for Cacti version 0.8.8a

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

Moderators: Developers, Moderators

Post Reply
monchito
Posts: 4
Joined: Thu Oct 06, 2016 1:40 pm

Ubiquiti airfiber Tamplates for Cacti version 0.8.8a

Post by monchito »

Hi all, i use the basic things on cacti (v0.8.8a) but with Ubiquiti Airfiber v5 (AF02.v3.2)

I tried many xml templates from forums but can't get any decent graph. What you suggest? how can get a template? or how can i make my own template?

For example i copy this file to /var/www/html/resource/snmp_queries/ubnt-airfiber.xml
ubnt-airfiber.xml
<interface>
<name>Get UBNT AirFiber Interfaces</name>
<description>Queries a UBNT AirFiber for a list of monitorable interfaces</description>
<oid_index>.1.3.6.1.4.1.41112.1.3.1.1.1</oid_index>
<index_order>airFiberConfigIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>

<fields>
<airFiberConfigIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.41112.1.3.1.1.1</oid>
</airFiberConfigIndex>
<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.26</oid>
</ifOperStatus>
<ifName>
<name>Name (UBNT-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.41112.1.3.1.1.14</oid>
</ifName>
<rxCapacity>
<name>RX Capacity</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.5</oid>
</rxCapacity>
<txCapacity>
<name>TX Capacity</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.6</oid>
</txCapacity>
<rxPower0>
<name>RX Power 0</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.11</oid>
</rxPower0>
<rxPower1>
<name>RX Power 1</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.14</oid>
</rxPower1>
<remoteRXPower0>
<name>Remote RX Power 0</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.19</oid>
</remoteRXPower0>
<remoteRXPower1>
<name>Remote RX Power 1</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.22</oid>
</remoteRXPower1>
<upTime>
<name>Uptime</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.2.1.38</oid>
</upTime>
<txoctetsAll>
<name>TX Octets</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.3.1.64</oid>
</txoctetsAll>
<txpktsAll>
<name>TX Packets</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.3.1.65</oid>
</txpktsAll>
<rxoctetsAll>
<name>RX Octets</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.3.1.66</oid>
</rxoctetsAll>
<rxpktsAll>
<name>RX Packets</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.41112.1.3.3.1.67</oid>
</rxpktsAll>
</fields>
</interface>
But i get these error in Data Query Debug Information
Data Query Debug Information
+ Running data query [7].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ubnt-airfiber.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ubnt-airfiber.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ubnt-airfiber.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ubnt-airfiber.xml'


All OIB values seem ok.

snmpwalk -v1 -c comunity 10.10.20.20
SNMPv2-MIB::sysDescr.0 = STRING: Linux 2.6.33 #1 Mon Nov 30 14:20:49 CST 2015 armv5tejl
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.10002.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2310300) 6:25:03.00
SNMPv2-MIB::sysContact.0 = STRING: Ubnt01
SNMPv2-MIB::sysName.0 = STRING: Direccion
SNMPv2-MIB::sysLocation.0 = STRING: SanJos
SNMPv2-MIB::sysServices.0 = INTEGER: 79
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (9400) 0:01:34.00
SNMPv2-MIB::sysORIndex.1 = INTEGER: 1
SNMPv2-MIB::sysORIndex.2 = INTEGER: 2
SNMPv2-MIB::sysORIndex.3 = INTEGER: 3
SNMPv2-MIB::sysORIndex.4 = INTEGER: 4
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.3 = OID: SNMPv2-SMI::enterprises.10002.1.1.1.31
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-SMI::enterprises.41112
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMP entities
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module to describe system resources
SNMPv2-MIB::sysORDescr.4 = STRING: Ubiquiti Networks MIB module
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (9200) 0:01:32.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (9300) 0:01:33.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (9400) 0:01:34.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (9400) 0:01:34.00
IF-MIB::ifNumber.0 = INTEGER: 5
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
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: sit0
IF-MIB::ifDescr.3 = STRING: eth0
IF-MIB::ifDescr.4 = STRING: air0
IF-MIB::ifDescr.5 = STRING: br0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: other(1)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1480
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1500
IF-MIB::ifMtu.5 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 0
IF-MIB::ifSpeed.2 = Gauge32: 0
IF-MIB::ifSpeed.3 = Gauge32: 10000000
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifSpeed.5 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING:
IF-MIB::ifPhysAddress.3 = STRING: 24:a4:3c:38:5f:2a
IF-MIB::ifPhysAddress.4 = STRING: 26:a4:3c:38:5f:2a
IF-MIB::ifPhysAddress.5 = STRING: 26:a4:3c:38:5f:2a
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: up(1)
IF-MIB::ifAdminStatus.5 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: down(2)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: up(1)
IF-MIB::ifOperStatus.5 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.5 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 102
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 10970641
IF-MIB::ifInOctets.5 = Counter32: 10188601
IF-MIB::ifInUcastPkts.1 = Counter32: 1
IF-MIB::ifInUcastPkts.2 = Counter32: 0
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInUcastPkts.4 = Counter32: 55860
IF-MIB::ifInUcastPkts.5 = Counter32: 6051
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifInNUcastPkts.5 = Counter32: 49809
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInDiscards.5 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInErrors.5 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.5 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 102
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 4201796
IF-MIB::ifOutOctets.5 = Counter32: 2100598
IF-MIB::ifOutUcastPkts.1 = Counter32: 1
IF-MIB::ifOutUcastPkts.2 = Counter32: 0
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.4 = Counter32: 15134
IF-MIB::ifOutUcastPkts.5 = Counter32: 7563
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.5 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutDiscards.5 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutErrors.5 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 1000
IF-MIB::ifOutQLen.4 = Gauge32: 1000
IF-MIB::ifOutQLen.5 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.5 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-MIB::snmpInPkts.0 = Counter32: 2117
SNMPv2-MIB::snmpOutPkts.0 = Counter32: 2116
SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 830
SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 1212
SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 905
SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 1299
SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 2117
SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0
SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0
SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0
Thanks!
waditel
Posts: 2
Joined: Tue May 20, 2014 5:51 am

Re: Ubiquiti airfiber Tamplates for Cacti version 0.8.8a

Post by waditel »

Hi,
first sorry for my bad english.

- https://community.ubnt.com/t5/airFiber/ ... 163/page/2
Installation instruction:

1) Copy ubnt-airfiber.xml file to <cacti_path>/resource/snmp_queries directory.
2) Import templates from cacti_data_query_ubnt-airfiber_-_interface_statistics.xml file.
3) For airfiber hosts select UBNT-AIRFIBER host template and set snmp timeout to 2000 ms.
4) Enjoy graphs! ;-)
Attachments
ubnt-airfiber.xml
(2.94 KiB) Downloaded 573 times
cacti_data_query_ubnt-airfiber_-_interface_statistics.xml
(63.26 KiB) Downloaded 558 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests