79 lines
2 KiB
Django/Jinja
79 lines
2 KiB
Django/Jinja
{# Telegraf config snippet for Ubiquiti AirMAX devices (NanoStation) #}
|
|
{# Variables: #}
|
|
{# - telegraf_ubnt_ns_ips: List of IPs of NanoStation #}
|
|
|
|
{% if telegraf_ubnt_ns_ips is defined %}
|
|
##
|
|
## SNMP Input For Ubiquiti AirMAX Devices
|
|
##
|
|
[[inputs.snmp]]
|
|
agents = [ "{{ telegraf_ubnt_ns_ips | join('", "') }}" ]
|
|
interval = "5m"
|
|
timeout = "10s"
|
|
retries = 3
|
|
version = 1
|
|
community = "public"
|
|
max_repetitions = 10
|
|
name = "snmp.AirMAX"
|
|
|
|
##
|
|
## System Details
|
|
##
|
|
# System name (hostname)
|
|
[[inputs.snmp.field]]
|
|
is_tag = true
|
|
name = "sysName"
|
|
oid = "RFC1213-MIB::sysName.0"
|
|
# System vendor OID
|
|
[[inputs.snmp.field]]
|
|
name = "sysObjectID"
|
|
oid = "RFC1213-MIB::sysObjectID.0"
|
|
# System description
|
|
[[inputs.snmp.field]]
|
|
name = "sysDescr"
|
|
oid = "RFC1213-MIB::sysDescr.0"
|
|
# System contact
|
|
[[inputs.snmp.field]]
|
|
name = "sysContact"
|
|
oid = "RFC1213-MIB::sysContact.0"
|
|
# System location
|
|
[[inputs.snmp.field]]
|
|
name = "sysLocation"
|
|
oid = "RFC1213-MIB::sysLocation.0"
|
|
# System uptime
|
|
[[inputs.snmp.field]]
|
|
name = "sysUpTime"
|
|
oid = "RFC1213-MIB::sysUpTime.0"
|
|
|
|
##
|
|
## Interface Details & Metrics
|
|
##
|
|
# Radio TX power
|
|
[[inputs.snmp.table]]
|
|
oid = "UBNT-AirMAX-MIB::ubntRadioTable"
|
|
[[inputs.snmp.table.field]]
|
|
is_tag = true
|
|
oid = "UBNT-AirMAX-MIB::ubntRadioAntenna"
|
|
# RSSI
|
|
[[inputs.snmp.table]]
|
|
oid = "UBNT-AirMAX-MIB::ubntRadioRssiTable"
|
|
[[inputs.snmp.table.field]]
|
|
is_tag = true
|
|
oid = "UBNT-AirMAX-MIB::ubntRadioRssiIndex"
|
|
# Wireless link stats
|
|
[[inputs.snmp.table]]
|
|
oid = "UBNT-AirMAX-MIB::ubntWlStatTable"
|
|
[[inputs.snmp.table.field]]
|
|
is_tag = true
|
|
oid = "UBNT-AirMAX-MIB::ubntWlStatIndex"
|
|
[[inputs.snmp.table.field]]
|
|
is_tag = true
|
|
oid = "UBNT-AirMAX-MIB::ubntWlStatSsid"
|
|
# Remote station info
|
|
[[inputs.snmp.table]]
|
|
oid = "UBNT-AirMAX-MIB::ubntStaTable"
|
|
[[inputs.snmp.table.field]]
|
|
is_tag = true
|
|
oid = "UBNT-AirMAX-MIB::ubntStaName"
|
|
{% endif %}
|