--------------------Server side setup-----------------------------------------------
##Install Grafana, Promethesus, Prom/collect-exporter on Docker. You also need to configure Prometheus to scrape the collectd exporter.
Thank you.
I saw a similar post online but run into this issue when trying to install the packages (see below).
Any idea how to solve this?
root@GL-AR750S:~# opkg update
Downloading https://fw.gl-inet.com/releases/v19.07.8/packages-3.0/ath79/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_packages
Downloading https://fw.gl-inet.com/releases/v19.07.8/packages-3.0/ath79/glinet/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_private
Downloading https://fw.gl-inet.com/releases/v19.07.8/kmod-3.0/ath79/nand/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_kmod
root@GL-AR750S:~# opkg install luci-app-statistics
Installing luci-app-statistics (git-21.189.23240-7b931da-1) to root...
Downloading https://fw.gl-inet.com/releases/v19.07.8/packages-3.0/ath79/packages/luci-app-statistics_git-21.189.23240-7b931da-1_all.ipk
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-statistics:
* collectd
* collectd-mod-rrdtool
* collectd-mod-iwinfo
* collectd-mod-cpu
* collectd-mod-memory
* collectd-mod-interface
* collectd-mod-load
* collectd-mod-network
* opkg_install_cmd: Cannot install package luci-app-statistics.
I decided to take the nuclear option.
I setup a pi in bridge mode for the interface I want to monitor. Now I can monitor everything using whatever software I want.
Not ideal but it is going to give me more flexibility.
And here are my notes. Basically we are setting up two network interfaces on a raspberry pi to work in bridge mode. That means all packets entering either of the interfaces will be sent to the other device.
The interesting thing is that you have access to the bridge device (br0) and you can inspect and do whatever you want with those packets.
# For testing manually
sudo apt install bridge-utils
sudo ifconfig eth1 0.0.0.0
sudo ifconfig eth2 0.0.0.0
sudo brctl addbr bridge0
sudo brctl addif bridge0 eth1
sudo brctl addif bridge0 eth2
sudo ifconfig bridge0 up
# To make it permanent:
$ sudo cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
# This is the new part
auto br0
iface br0 inet static
address 0.0.0.0
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.0.255
bridge-ports eth1 eth2
I do not set an ip address because I have another interface (eth0, the one that comes with the pi) connected to another network so I can ssh into the box using that interface. I also have the wlan0 interface setup for redundancy.
Once all is setup you just need to power the pi and connect ethernet cables to the right places: one coming from your router(gl-inet device) and another one coming from the your network switch.