--------------------Server side setup-----------------------------------------------
##Install Grafana, Promethesus, Prom/collect-exporter on Docker. You also need to configure Prometheus to scrape the collectd exporter.
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
Updated list of available packages in /var/opkg-lists/glinet_packages
Updated list of available packages in /var/opkg-lists/glinet_private
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...
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-statistics:
* 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:
# This is the new part
iface br0 inet static
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.