telegraf: add support for UBNT NanoStation
This commit is contained in:
parent
df5f0a6fc6
commit
3720b6bf73
9 changed files with 1748 additions and 2 deletions
78
templates/telegraf-AirMAX.conf.j2
Normal file
78
templates/telegraf-AirMAX.conf.j2
Normal file
|
@ -0,0 +1,78 @@
|
|||
{# 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 %}
|
|
@ -66,6 +66,8 @@
|
|||
|
||||
{% include telegraf_unifi_file %}
|
||||
|
||||
{% include telegraf_airmax_file %}
|
||||
|
||||
|
||||
# # Monitor sensors, requires lm-sensors package
|
||||
# [[inputs.sensors]]
|
Loading…
Add table
Add a link
Reference in a new issue