aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/plays')
-rw-r--r--ansible/plays/ops-server-generate-telegraf-config.yml3
-rw-r--r--ansible/plays/templates/ops-server/telegraf.conf149
2 files changed, 152 insertions, 0 deletions
diff --git a/ansible/plays/ops-server-generate-telegraf-config.yml b/ansible/plays/ops-server-generate-telegraf-config.yml
index 4e662c4..9cadb16 100644
--- a/ansible/plays/ops-server-generate-telegraf-config.yml
+++ b/ansible/plays/ops-server-generate-telegraf-config.yml
@@ -25,3 +25,6 @@
- name: Kontor
ip: 192.168.10.22
type: ap
+ - name: Garasje
+ ip: 192.168.10.23
+ type: ap
diff --git a/ansible/plays/templates/ops-server/telegraf.conf b/ansible/plays/templates/ops-server/telegraf.conf
index 307da93..f7cb0d2 100644
--- a/ansible/plays/templates/ops-server/telegraf.conf
+++ b/ansible/plays/templates/ops-server/telegraf.conf
@@ -724,3 +724,152 @@
oid = "UBNT-UniFi-MIB::unifiIfName"
is_tag = true
+# Device: Garasje, type: ap
+
+[[inputs.snmp]]
+ agents = [ "192.168.10.23" ]
+ version = 2
+ community = "public"
+ name = "snmp_mem"
+
+[[inputs.snmp.field]]
+ oid = "RFC1213-MIB::sysName.0"
+ name = "name"
+ is_tag = true
+
+[[inputs.snmp.field]]
+ oid = "RFC1213-MIB::sysLocation.0"
+ name = "location"
+ is_tag = true
+
+[[inputs.snmp.table]]
+ oid = "IF-MIB::ifXTable"
+ name = "snmp_if_iftable"
+ inherit_tags = ["name", "location"]
+
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifName"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifLinkUpDownTrapEnable"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifHighSpeed"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifPromiscuousMode"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifConnectorPresent"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifAlias"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "IF-MIB::ifCounterDiscontinuityTime"
+ is_tag = true
+
+#
+# snmp_la_table
+#
+
+[[inputs.snmp.table]]
+ oid = "UCD-SNMP-MIB::laTable"
+ name = "snmp_la_table"
+ inherit_tags = ["name", "location"]
+
+[[inputs.snmp.table.field]]
+ oid = "UCD-SNMP-MIB::laNames"
+ is_tag = true
+
+#
+# memory
+#
+
+[[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"
+
+#
+# unifi_radio
+#
+
+[[inputs.snmp.table]]
+ oid = "UBNT-UniFi-MIB::unifiRadioTable"
+ name = "unifi_radio"
+ index_as_tag = true
+ inherit_tags = ["name", "location"]
+
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiRadioName"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiRadioRadio"
+ is_tag = true
+
+#
+# unifi_vap
+#
+
+[[inputs.snmp.table]]
+ oid = "UBNT-UniFi-MIB::unifiVapTable"
+ name = "unifi_vap"
+ index_as_tag = true
+ inherit_tags = ["name", "location"]
+
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapBssId"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapCcq"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapEssId"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapName"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapRadio"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapUp"
+ is_tag = true
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiVapUsage"
+ is_tag = true
+
+#
+# unifi_if_table
+#
+
+[[inputs.snmp.table]]
+ oid = "UBNT-UniFi-MIB::unifiIfTable"
+ name = "unifi_if_table"
+ inherit_tags = ["name", "location"]
+
+[[inputs.snmp.table.field]]
+ oid = "UBNT-UniFi-MIB::unifiIfName"
+ is_tag = true
+