One thing to keep in mind as we navigate the configuration, is to keep spacing and formatting consistent. We need to customize this configuration to our needs. docker run -rm telegraf telegraf config > nf Setting the Agent and Output Plugin In the command below we are telling docker to run a new container with the remove flag to delete it after it exits, and calling the telegraf config command to output the running configuration (aka the default). Alternatively, you can use docker to spin up a container that will simply output the default configuration to a file locally. You can then copy/paste into the file, wget, curl, etc.
One option is to simply download it from the Telegraf GitHub Repo. There are 2 options for grabbing a default configuration. If we attempt to launch the container without this file, it will fail to do much useful for us. This file will be where we configure exactly WHAT we want to collect from WHICH devices. Last you’ll make sure to enable v1/v2/v3 and set your community string (keep in mind you’ll need to specify this community string later)Įnable SNMP v1/v2 and set the community string Creating the Configuration fileįirst we need to create the nf file to be used.Next you’ll click onto the SNMP tab at the top of the screen.First you’ll login to the controller, and navigate to settings.
I’ll provide the basics here for the controller.
I won’t cover individual devices, you’ll need to do some googling as I can’t cover all the possible devices. The first thing you’re going to need to do is ensure you have SNMP enabled on your Unifi SDN Controller or manually enabled on the device individually. If you’re a more advanced user, then skip down to the TL DR tag where I’ll simply outline the basics with commands and output samples. Let’s get started with the first piece which will be to enable SNMP collection.
In this part, we’re going to dig in a bit further into actually collecting some data from our Unifi devices. I hope in the first part you understood a bit more about how we will organize our collected data into separate databases, how we can create simple databases, and lastly how we can set our retention policies as desired.