zabbix_export: version: '6.0' date: '2021-11-21T21:58:07Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 30fc7a362e3e490b94ed0bc4962df186 template: 'UBQT UNIFI SNMP V3 HN' name: 'UBQT UNIFI SNMP V3 HN' description: | ## Description This template retrieve SNMP data from Unifi AP devices. MIBS requiriments: FROGFOOT-RESOURCES-MIB IANAifType-MIB IF-MIB SNMP-FRAMEWORK-MIB SNMPv2-CONF SNMPv2-MIB SNMPv2-SMI SNMPv2-TC UBNT-MIB UBNT-UniFi-MIB Author: Helmut Leonhardt based on Alex Moura ## Overview unifi zabbix snmpv3 based on Alex Mouras work https://share.zabbix.com/network\_devices/ubiquiti/unifi-snmp-2019-v1-1 Ubiquity Controller > Settings > Services > SNMP v3 > enable, set username and passwort Zabbix > Macro > {$SNMP\_USERNAME} <= username set in controller {$SNMP\_AUTHPASS} & {$SNMP\_PRIVPASS} <= password set in controller 2020 April fixed zabbix version fixed virtual interface items ## Author Helmut Leonhardt groups: - name: Templates items: - uuid: 185f5a81714a4d7586956efd36e0830e name: 'CPU Usage' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.3.3.1.2.196608 key: cpuLoad.0 delay: 30s history: 1w units: '%' request_method: POST tags: - tag: Application value: CPU - uuid: 59efd7eace0e46278c77a771e147b07e name: 'System Time' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.1.2.0 key: hrSystemDate.0 delay: 30s history: 1d trends: '0' value_type: TEXT request_method: POST tags: - tag: Application value: System - uuid: 5e6a830f72d34cdc915c36fae4a21602 name: 'CPU AVG Load 1 Min' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2021.10.1.3.1 key: IaLoad.1 history: 1w value_type: FLOAT request_method: POST tags: - tag: Application value: CPU triggers: - uuid: d97e23dd47544d42b7ea3fc3e9797eb0 expression: 'avg(/UBQT UNIFI SNMP V3 HN/IaLoad.1,5m)>1' name: 'Processor load is too high on {HOST.NAME}' priority: AVERAGE - uuid: 71e341f9dcd8437188ec4957d015fbd1 expression: 'avg(/UBQT UNIFI SNMP V3 HN/IaLoad.1,5m)>3' name: 'Processor load is very high on {HOST.NAME}' priority: HIGH - uuid: b25f690ed85040658646815087aff03d name: 'CPU AVG Load 5 Min' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2021.10.1.3.2 key: IaLoad.2 history: 1w value_type: FLOAT request_method: POST tags: - tag: Application value: CPU - uuid: 716c5fa55f4c4ead8b31511263e63b00 name: 'CPU AVG Load 15 Min' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2021.10.1.3.3 key: IaLoad.3 history: 1w value_type: FLOAT request_method: POST tags: - tag: Application value: CPU - uuid: 1862891215324552acff1da286bc78f1 name: Contact type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.4.0 key: sysContact.0 delay: 60m history: 1w trends: '0' value_type: TEXT description: 'Informa o modelo do aparelho' inventory_link: CONTACT request_method: POST tags: - tag: Application value: System - uuid: 92fd5b6523874016b7a243118ec87308 name: 'System Description' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.1.0 key: sysDescr.0 delay: 30m history: 1w trends: '0' value_type: TEXT description: 'Informa o modelo do aparelho' inventory_link: HARDWARE_FULL request_method: POST tags: - tag: Application value: System - uuid: 5acf4647fd78449eaaf2c9169cf8e04f name: Location type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.6.0 key: sysLocation.0 delay: 60m history: 1w trends: '0' value_type: TEXT description: 'Informa o modelo do aparelho' inventory_link: LOCATION request_method: POST tags: - tag: Application value: System - uuid: 98b85d9f8d3e4625992f4494aacdff46 name: Uptime type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: sysUpTime.0 delay: 5m history: 1w value_type: FLOAT units: uptime preprocessing: - type: MULTIPLIER parameters: - '0.01' request_method: POST tags: - tag: Application value: System - uuid: a4731055a86d4dfd8cbaffb6da8fe766 name: 'IP Address' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.3.1.0 key: unifiApSystemIp.0 delay: 10m history: 1w trends: '0' value_type: TEXT request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: eb1042a2574043578fb638a729c7008c name: Model type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.3.3.0 key: unifiApSystemModel.0 delay: 60m history: 1w trends: '0' value_type: TEXT description: 'Informa o modelo do aparelho' inventory_link: HARDWARE request_method: POST tags: - tag: Application value: System - uuid: 7d591193fff34757836a5f4e288f64f6 name: 'Firmware version' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.3.6.0 key: unifiApSystemVersion.0 delay: 60m history: 1w trends: '0' value_type: TEXT inventory_link: SOFTWARE request_method: POST tags: - tag: Application value: System - uuid: 87914b9a4aad47ab881260b75fae0a4b name: 'MAC Address' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.2.1.1.4.1 key: unifiIfMac.1 delay: 30m history: 1w trends: '0' value_type: TEXT inventory_link: MACADDRESS_A request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: 437bc4b769714ca18736e44ff4006ad5 name: 'LAN Traffic Incoming' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.2.1.1.6.1 key: unifiIfRxBytes.1 history: 1w units: Bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: 8eebde019759417a9fc923deb404101e name: 'LAN Traffic Incoming Errors' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.2.1.1.8.1 key: unifiIfRxError.1 history: 1w units: Error(s) request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: 6aaf4ea9942247c193521be4c6d3d4bd name: 'Interface Speed (Mbit/s)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.2.1.1.11.1 key: unifiIfSpeed.1 delay: 60m history: 1w request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: 6f3a82d77567425c991229282940e066 name: 'LAN Traffic Outgoing' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.2.1.1.12.1 key: unifiIfTxBytes.1 history: 1w units: Bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: 75bf495359024adab32b5289831ff608 name: 'LAN Traffic Outgoing Errors' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.2.1.1.14.1 key: unifiIfTxError.1 history: 1w units: Error(s) request_method: POST tags: - tag: Application value: 'AP Interface' - uuid: f02415096ba24600ba7cd3ea7c0354f0 name: 'Channel utilization 2G (BGN)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.1.1.1.6.1 key: unifiRadioCuTotal.1 delay: 30s history: 1w units: '%' description: 'Informa o modelo do aparelho' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' triggers: - uuid: 90b757bd7bcb49b090d3a1d80e8dc656 expression: 'avg(/UBQT UNIFI SNMP V3 HN/unifiRadioCuTotal.1,300s)=80' name: 'Channel utilization 2G on {HOST.NAME} high' priority: WARNING - uuid: e1018b1c002e4fa8a6ce10c03a2caa4f expression: 'avg(/UBQT UNIFI SNMP V3 HN/unifiRadioCuTotal.1,300s)=90' name: 'Channel utilization 2G on {HOST.NAME} very high' priority: AVERAGE - uuid: 330f9eef388443adb7e268a1966a29a6 name: 'Channel utilization 5G (AC)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.1.1.1.6.2 key: unifiRadioCuTotal.2 delay: 30s history: 1w units: '%' description: 'Informa o modelo do aparelho' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' triggers: - uuid: 53a8edac322b4c1ab98b51291cc9d093 expression: 'avg(/UBQT UNIFI SNMP V3 HN/unifiRadioCuTotal.2,300s)=80' name: 'Channel utilization 5G on {HOST.NAME} high' priority: WARNING - uuid: 3c5a400dfd7248489a24d2ed160accb2 expression: 'avg(/UBQT UNIFI SNMP V3 HN/unifiRadioCuTotal.2,300s)=90' name: 'Channel utilization 5G on {HOST.NAME} very high' priority: AVERAGE - uuid: 105096cba14349f7a059a5dafe3382c6 name: 'AP Hostname' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.5.0 key: unifiSysName.0 delay: 60m history: 1w trends: '0' value_type: TEXT inventory_link: NAME request_method: POST tags: - tag: Application value: System - uuid: b5dcab243a394c2494ee37cf96c12163 name: 'Channel 2G (N/G)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.1.2.1.4.1 key: unifiVapChannel.1 history: 1w status: DISABLED description: 'Informa o modelo do aparelho' request_method: POST tags: - tag: Application value: System - uuid: 4ad270fb856e480480019a1677753d79 name: 'Channel 5G (N/AC)' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.41112.1.6.1.2.1.4.5 key: unifiVapChannel.5 history: 1w status: DISABLED description: 'Informa o modelo do aparelho' request_method: POST tags: - tag: Application value: System discovery_rules: - uuid: 477373a3c63d41fc832fbd8900d9b4fa name: 'Wifi Virtual Interfaces' type: SNMP_AGENT snmp_oid: 'discovery[{#UNIFIVAPESSID},.1.3.6.1.4.1.41112.1.6.1.2.1.6, {#UNIVAPRADIO},.1.3.6.1.4.1.41112.1.6.1.2.1.9]' key: unifiVapEssId delay: 30s item_prototypes: - uuid: d2279ac27bba4c2abbca52dc3218ca7d name: 'WIFI Channel {#UNIFIVAPESSID} on {#UNIVAPRADIO}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.41112.1.6.1.2.1.4.{#SNMPINDEX}' key: 'unifiVapChannel[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' - uuid: 8b2ff05b149b4dfda7c5587e3e4d8f6f name: 'Users {#UNIFIVAPESSID} on {#UNIVAPRADIO}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.41112.1.6.1.2.1.8.{#SNMPINDEX}' key: 'unifiVapNumStations[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' delay: 30s units: Users request_method: POST tags: - tag: Application value: 'Virtual Interfaces' - uuid: f40514a52c8a4c86bfb88d129700b246 name: 'Traffic Incoming {#UNIFIVAPESSID} on {#UNIVAPRADIO}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.41112.1.6.1.2.1.10.{#SNMPINDEX}' key: 'unifiVapRxBytes[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' delay: 30s units: Bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' - uuid: cd3b5e71497c41f895731179ae7ba59a name: 'Traffic Incoming Errors per Second {#UNIFIVAPESSID} on {#UNIVAPRADIO}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.41112.1.6.1.2.1.13.{#SNMPINDEX}' key: 'unifiVapRxErrors[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' delay: 60s units: Error/s preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' - uuid: 58ec96db72484ae2a7e596dcd644c1d5 name: 'Traffic Outgoing {#UNIFIVAPESSID} on {#UNIVAPRADIO}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.41112.1.6.1.2.1.16.{#SNMPINDEX}' key: 'unifiVapTxBytes[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' delay: 30s units: Bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' - uuid: a9fc1cfe399e483eaa8305a56ad9b20a name: 'Traffic Outgoing Errors per Second {#UNIFIVAPESSID} on {#UNIVAPRADIO}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.41112.1.6.1.2.1.18.{#SNMPINDEX}' key: 'unifiVapTxErrors[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' delay: 60s units: Error/s preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'Virtual Interfaces' graph_prototypes: - uuid: c437ccd040784ce79b44519b2b78635e name: 'Users {#UNIVAPRADIO} connected on {#UNIFIVAPESSID}' show_work_period: 'NO' show_triggers: 'NO' type: STACKED graph_items: - color: 1A7C11 item: host: 'UBQT UNIFI SNMP V3 HN' key: 'unifiVapNumStations[{#UNIFIVAPESSID},{#UNIVAPRADIO}]' request_method: POST macros: - macro: '{$SNMP_AUTHPASS}' - macro: '{$SNMP_PORT}' value: '161' - macro: '{$SNMP_PRIVPASS}' - macro: '{$SNMP_USERNAME}' graphs: - uuid: 8e27815a3f094b76a31c01afcb68847f name: 'Channel Utilization' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - color: 1A7C11 item: host: 'UBQT UNIFI SNMP V3 HN' key: unifiRadioCuTotal.1 - sortorder: '1' color: F63100 item: host: 'UBQT UNIFI SNMP V3 HN' key: unifiRadioCuTotal.2 - uuid: 2c07b395e64d406bb7cbd481f822ae9c name: 'CPU load' ymin_type_1: FIXED graph_items: - color: 1A7C11 item: host: 'UBQT UNIFI SNMP V3 HN' key: IaLoad.1 - sortorder: '1' color: '000099' item: host: 'UBQT UNIFI SNMP V3 HN' key: IaLoad.2 - sortorder: '2' color: '990000' item: host: 'UBQT UNIFI SNMP V3 HN' key: IaLoad.3 - uuid: f2e0f56d83a442a0a43cd1ace4bddb25 name: 'CPU utilization' type: STACKED ymax_type_1: FIXED graph_items: - color: 1A7C11 item: host: 'UBQT UNIFI SNMP V3 HN' key: cpuLoad.0 - uuid: 9848b36db1624f55bfc932f29ec0eb5f name: 'Network Traffic' show_work_period: 'NO' show_triggers: 'NO' type: STACKED graph_items: - color: 1A7C11 item: host: 'UBQT UNIFI SNMP V3 HN' key: unifiIfRxBytes.1 - sortorder: '1' color: F63100 item: host: 'UBQT UNIFI SNMP V3 HN' key: unifiIfTxBytes.1