summaryrefslogtreecommitdiff
path: root/ansible/plays/templates/ops-server/telegraf.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/plays/templates/ops-server/telegraf.conf.j2')
-rw-r--r--ansible/plays/templates/ops-server/telegraf.conf.j248
1 files changed, 47 insertions, 1 deletions
diff --git a/ansible/plays/templates/ops-server/telegraf.conf.j2 b/ansible/plays/templates/ops-server/telegraf.conf.j2
index 61f9279..f6a1c87 100644
--- a/ansible/plays/templates/ops-server/telegraf.conf.j2
+++ b/ansible/plays/templates/ops-server/telegraf.conf.j2
@@ -40,7 +40,37 @@
name = "snmp_if_iftable"
inherit_tags = ["name", "location"]
+[[inputs.snmp.table]]
+ oid = "UCD-SNMP-MIB::laTable"
+ name = "snmp_la_table"
+ inherit_tags = ["name", "location"]
+
+[[inputs.snmp.field]]
+ name = "memTotalSwap"
+ oid = "UCD-SNMP-MIB::memTotalSwap.0"
+[[inputs.snmp.field]]
+ name = "memAvailSwap"
+ oid = "UCD-SNMP-MIB::memAvailSwap.0"
+[[inputs.snmp.field]]
+ name = "memTotalReal"
+ oid = "UCD-SNMP-MIB::memTotalReal.0"
+[[inputs.snmp.field]]
+ name = "memAvailReal"
+ oid = "UCD-SNMP-MIB::memAvailReal.0"
+[[inputs.snmp.field]]
+ name = "memTotalFree"
+ oid = "UCD-SNMP-MIB::memTotalFree.0"
+[[inputs.snmp.field]]
+ name = "memShared"
+ oid = "UCD-SNMP-MIB::memShared.0"
+[[inputs.snmp.field]]
+ name = "memBuffer"
+ oid = "UCD-SNMP-MIB::memBuffer.0"
+[[inputs.snmp.field]]
+ name = "memCached"
+ oid = "UCD-SNMP-MIB::memCached.0"
{% if device.type == "ap" %}
+
[[inputs.snmp.table]]
oid = "UBNT-UniFi-MIB::unifiRadioTable"
name = "unifi_radio"
@@ -52,16 +82,28 @@
name = "unifi_vap"
index_as_tag = true
inherit_tags = ["name", "location"]
+
+[[inputs.snmp.table]]
+ oid = "UBNT-UniFi-MIB::unifiIfTable"
+ name = "unifi_if_table"
+ inherit_tags = ["name", "location"]
{% endif %}
+#
# SNMP Fields that should be tags
+#
+
{% for f in [ "ifName", "ifLinkUpDownTrapEnable", "ifHighSpeed", "ifPromiscuousMode", "ifConnectorPresent", "ifAlias", "ifCounterDiscontinuityTime" ] %}
[[inputs.snmp.table.field]]
oid = "IF-MIB::{{ f }}"
is_tag = true
{% endfor %}
-{% for f in [ "unifiRadioName", "unifiRadioRadio", "unifiRadioOtherBss" ] %}
+[[inputs.snmp.table.field]]
+ oid = "UCD-SNMP-MIB::laNames"
+ is_tag = true
+
+{% for f in [ "unifiRadioName", "unifiRadioRadio" ] %}
[[inputs.snmp.table.field]]
oid = "UBNT-UniFi-MIB::{{ f }}"
is_tag = true
@@ -73,4 +115,8 @@
is_tag = true
{% endfor %}
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiIfName"
+ is_tag = true
+
{% endfor %}