Counters and Graphs
You'll graph every link in the house for a month, read the error counters on your switch, and find a problem from the numbers before anyone complains about it.
About
A network you can see is a network you can fix. The kitchen cable with climbing error counts, the provider's latency that spikes every evening at seven, the device uploading at 3am: all of it is sitting in counters on your switch and firewall, waiting for someone to look. What counts is polling those counters into graphs with free software (LibreNMS, Zabbix, or Prometheus with Grafana), tracking latency to the gateway and to the internet, keeping a month of data, and finding real things in it. Graphing the servers themselves (disks, temperatures, containers) and the alerts that go with them is Metrics and Alerts over in Homelab & Hardware. This badge is the links between them, and a one-off look at the switch's status page doesn't count.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- A weekend, then a month
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- You need some
- Where
- At home
- Other people
- On your own
Requirements
-
1
Turn on SNMP on the switch and the firewall, and read one counter by hand. Use version 2c with a community string of your own rather than the default, which is the word public, or version 3 if the gear offers it, and only allow it from your main lane. Run snmpwalk against the switch and find the byte counter for one port. Take a screenshot of the walk with that counter highlighted. Photo
-
2
Set up a grapher that polls every port every minute. LibreNMS in a container is the quickest route and discovers the ports for you. Prometheus with the SNMP exporter and Grafana is more work and more flexible. Take a screenshot of a per-port throughput graph after it has run for a day. Photo
-
3
Graph latency and packet loss to the gateway, to your provider's first hop, and to the internet. Smokeping or the blackbox exporter, pinging three targets every minute. The gap between the three lines is how you tell your house from your provider from the wider internet when someone says it's slow. Take a screenshot after a week with the three lines labeled. Photo
-
4
Find a port with errors and fix its cable. CRC errors that keep climbing on one port mean a cable, a connector or a bad jack, and a port that keeps dropping to 100 Mbit means one pair isn't making contact. Recrimp or replace it and watch the counter stop. Take a screenshot of the counter before and after. If every port is clean, show the clean counters and say so. Photo
-
5
Start one big transfer and follow it through three graphs. Copy a large file from a wired machine to the NAS, or start a big download, and find the bump on the port graph for that machine, then on the trunk or uplink port it crossed, then on the WAN graph if it came from outside. If it doesn't show where you expected, your map is wrong, which is worth knowing. Take a screenshot of the three graphs with the same bump circled on each. Photo
-
6
After thirty days, write three findings from the graphs. When the house is busiest, which device uses the most, whether the slow evenings are your provider's side or yours. Take a screenshot of the graphs that back each finding, with the three written next to them. Photo