Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?

Configuration

NOTE: ultimately configuring the device directly caused instability; I had to use the UniFi controller to provision with the option of SNMP enabled to actually get this to work...

BZ.v3.7.58# grep -i snmp /tmp/system.cfg
snmp.community=public
snmp.status=enabled

Background: http://gregsowell.com/?p=3457 https://grafana.com/dashboards/1486

vi /tmp/system.cfg
cfgmtd -f /tmp/system.cfg -w
reboot

MIBS

https://community.ubnt.com/t5/UniFi-Feature-Requests/publish-SNMP-MIBs/idi-p/828124 https://github.com/pgmillon/observium/tree/master/mibs/ubiquiti

Other

https://share.zabbix.com/network_devices/ubiquiti/unifi-controller

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.2</version>
<date>2017-08-06T06:38:16Z</date>
<groups>
<group>
<name>Ubiquiti</name>
</group>
</groups>
<templates>
<template>
<template>Template SNMPv1 Ubiquiti UAP-AC</template>
<name>Template SNMPv1 Ubiquiti UAP-AC</name>
<description/>
<groups>
<group>
<name>Ubiquiti</name>
</group>
</groups>
<applications>
<application>
<name>Connectivity</name>
</application>
<application>
<name>UAP</name>
</application>
</applications>
<items>
<item>
<name>Ping check performance</name>
<type>3</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>icmppingsec[]</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>s</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Connectivity</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Number of Stations</name>
<type>1</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>UBNT-UniFi-MIB::unifiVapNumStations.1</snmp_oid>
<key>unifiVapNumStations</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>UAP</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules/>
<httptests/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
</zabbix_export>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment