Installation - northalpha/smart-home-monitoring GitHub Wiki
Installation of SNMP software / tools needed
sudo apt-get install snmp-mibs-downloader snmp
sudo download-mibs
This should download a ton of MIBs to your system. Next copy mc /etc/snmp/snmp.conf. The only change in there is to COMMENT OUT (!11!11!) the mibs statement, please do not ask me why ...
Next: Login to the Ubiquiti Edgerouter X-SFP or any other SNMP able device an enable the SNMP Agent (Ubiquiti Edgerouter X-SFP > System > SNMP Agent and enter any needed details (most important community, so sake of simplicity i just choose public)
Now do a snmpwalk against your snmp enabled device (i my case the Ubiquiti Edgerouter X-SFP)
snmpwalk -v2c -cpublic 192.168.178.111
You should see now a ton of information getting displayed!
https://www.influxdata.com/downloads/
Installation of latest influx Debian packages fromInfluxDB
First we start with the influxDB itself
wget https://dl.influxdata.com/influxdb/releases/influxdb_1.2.0_amd64.deb
sudo dpkg -i influxdb_1.2.0_amd64.deb
Now create databases what you need:
/usr/bin/influx
Connected to http://localhost:8086 version 1.2.0
InfluxDB shell version: 1.2.0
>create database telegraf
>create database whatsoever
>exit
Now copy my /etc/influxdb/influxdb.conf file. Only changes made to default was to enable HTTP admin UI
After that start the DB with:
sudo service influxdb start
You can connect to http://ip_of_home_server:8083/ for a simple Web UI to InfluxDB
Telegraf
wget https://dl.influxdata.com/telegraf/releases/telegraf_1.2.0_amd64.deb
sudo dpkg -i telegraf_1.2.0_amd64.deb
Now copy my /etc/telegraf/telegraf.conf file. I copied some portion out of the internet and some simplified configs. This is known working for me. Please also see https://www.dev-eth0.de/blog/2016/12/06/grafana_snmp.html for more and excellent information about every piece in the SNMP part of the telegraf config.
Grafana
Download latest release from http://grafana.org/download/ (in time of writing 4.1.1)
wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.1.1-1484211277_amd64.deb
sudo dpkg -i grafana_4.1.1-1484211277_amd64.deb
sudo service grafana-server start
Now you should be able to login to http://ip_of_home_server:3000 with admin/admin credentials (please change it)
Please see more information about how to setup grafana and influx as data sources here: https://lkhill.com/using-influxdb-grafana-to-display-network-statistics/ (middle of the page)