Somewhere in the building, a server is working very hard and telling no one about it.
ProxStrip gives it a way to show you: every packet in and out becomes a spark racing along a
strip of light, and when the server takes ill, the whole strip changes color to say so. It all
began when Experiment 14 filed a formal complaint about the lab's lighting. The lab took the
complaint seriously. Possibly too seriously.
◀ Router (LED 0)Illustrative. Not your network.Server (last LED) ▶
Overview // Field Notes
For most of its life, the lab's server lived in a closet and communicated exclusively through
fan noise. Was it busy? Bored? On fire? The only way to find out was to open a dashboard, and
nobody opens a dashboard on purpose. ProxStrip runs a strip of LEDs from the
router to the server and lets the traffic speak for itself.
Data coming in races toward the server in blue. Data going out runs back toward
the router in green.
Every spark is drawn from real traffic. A big download streaks past fast, dragging a long tail
behind it. A trickle of small housekeeping packets ambles along in short blips. On a busy evening
the strip fills with crossing traffic at a dozen different speeds. In the small hours it settles
into the occasional lone pulse, like a building breathing in its sleep. The lab has been known to
stand and watch it for longer than it would care to admit.
It also keeps an eye on the server's wellbeing. Every fifteen seconds it checks in on the
processor, the memory, the disks, and any guests you have asked it to look after. A little strain
turns the sparks amber. Real trouble turns them red. If the server
stops answering altogether, the entire strip pulses red until somebody goes to investigate. And when
everything comes back to normal, the strip throws a rainbow. This serves no diagnostic
purpose whatsoever. The lab considers it the most important feature.
For all its theatrics, ProxStrip can only look. It reads traffic counters and health reports, and
it has no ability to start, stop, or change a single thing on the server. The lab believes this is
exactly the right amount of authority to give a light fixture.
โ Research note appended by Chief Science Officer: "Counsel for Experiment 14 asked for
better lighting. The lab has delivered a hundred and fifty LEDs, each individually addressable
and each, as of this morning, moving. Counsel has not yet responded. The lab chooses to read
this as stunned approval."
BL-014-2CStrip connected. Pin 12 confirmed as GPIO18. Counting from the USB end is not recommended.
BL-014-4BTraffic polled once per second. Particles observed. Particles found satisfying.
BL-014-7DHealth states deployed: amber, red, and a pulse the lab prefers not to see.
BL-014-9FRainbow events installed. Shiny variant set at one in 4096 per minute.
BL-014-12AAll systems nominal. Strip awake. Illumination adequate. Counsel notified.
01
What It Does In Plain Language
A server's mood, rendered as light, for those who would rather not open another browser tab.
โ
Traffic As Light
The server's uplink is read over SNMP once per second. Inbound traffic
travels router to server in blue. Outbound travels server to router in green. The busier the
link, the more particles. A quiet network is a quiet strip.
โ
Speed From Real Packets
Average packet size blended with throughput sets each particle's speed and
trail. Bulk transfers run fast and long. Small chatty packets run slow and short. A little jitter
keeps many speeds on the strip at once.
โ
Four Health States
OK, WARN, CRIT, and DOWN, graded from CPU, memory, storage, ZFS pools, and
the guests you choose to watch. Particles turn amber or red over a pulsing glow. If the host
stops answering, the whole strip pulses red.
โ
Service Tags
Pick a guest, give it a color, and its particles gain a single solid head LED
in that color while keeping the normal blue or green trail. You can find your media server in the
crowd without turning the strip into confetti. qBittorrent is supported too.
โ
Rainbows
An all-clear sweep when the host recovers. A comet every 100 GB sent or
received. And the shiny: a one-in-4096 chance each minute of comets from both ends meeting over a
sweep, roughly once every 2.8 days. Look up occasionally.
โ
Control Page
The Pi serves a small page on your network: a live mirror of the strip,
current state and throughput, a legend of tagged services, and a button for every rainbow. It polls
only while it is open.
02
Procedure Installation, Start to Finish
The lab estimates one evening. The lab estimates no soldering, provided your strip came with connectors.
Hardware
A Raspberry Pi with the 40-pin header (the lab uses a 3B+), a 5V WS2812-type strip, a separate 5V power supply sized for it, and a few jumper wires.
Network
Proxmox VE host and Pi on the same LAN. Give the Pi a fixed address, either static or a router reservation, because the host will only answer that address.
Access
A root shell on the Proxmox host and an SSH session to the Pi. Comfort with nano. Every edit below uses it.
โWords in CAPITALS (PI_IP_ADDRESS, PROXMOX_IP_ADDRESS, YOUR_USER) are yours to replace.
Each step is tagged with the machine it runs on. Every code block has a copy button.
01Prepare the Proxmox HostRun on: Proxmox host (root)
ProxStrip needs two read-only windows into the host: SNMP for traffic and an
API token for health. Neither can change anything. Open a shell on the host, either over SSH or
from the web interface under your node's Shell button.
1a โ Install SNMP
Install SNMP
Proxmox host, as root
apt update
apt install -y snmpd
1b โ Allow the Pi to read it
Open the config file. Put a # in front of any existing lines that begin with
agentaddress or rocommunity (including rocommunity6), then add the two lines below at the bottom.
The first listens for SNMP requests on UDP 161. The second creates a read-only community that answers
only the Pi's address.
Open the file
Comment out any existing agentaddress / rocommunity lines first
nano /etc/snmp/snmpd.conf
Add to the bottom of /etc/snmp/snmpd.conf
Replace PI_IP_ADDRESS with your Pi's address. Pick your own community string.
โ The community string works like a password, and SNMP v2c sends it unencrypted. Choose your own,
keep it on a trusted LAN, never expose UDP 161 to the internet, and remember it: it must match
SNMP_COMMUNITY on the Pi later.
1c โ Restart and enable
Restart and enable the service
Proxmox host
systemctl restart snmpd
systemctl enable snmpd
systemctl status snmpd --no-pager
1d โ Choose the interface to watch
ProxStrip measures the host's physical uplink. Note its name, plus the node name for later.
Find the uplink NIC and node name
Proxmox host
# Look for the physical NIC that carries your LAN (state UP), e.g. eno1 or enp3s0. Not vmbr0.ip -br link
# The node name is what PVE_NODE needs (usually "pve")hostname
โDo not choose vmbr0. A Linux bridge counts only traffic to and from the host itself, not traffic
it forwards to your guests, so the strip would sit dark while your containers worked. Use the physical NIC underneath it.
1e โ Create the read-only API token
This makes a user that holds only the built-in PVEAuditor role, and a token that inherits exactly that. The last
command prints a table. Copy the value (a UUID) immediately, because Proxmox shows it only once.
Create a read-only API user and token
Proxmox host, as root
pveum user add ledstrip@pve
pveum aclmod / -user ledstrip@pve -role PVEAuditor
pveum user token add ledstrip@pve strip --privsep 0
If the secret is ever lost
Remove the token and make a new one
pveum user token remove ledstrip@pve strip
pveum user token add ledstrip@pve strip --privsep 0
โIf you have enabled the Proxmox firewall, allow UDP 161 (SNMP) and TCP 8006 (API) from the Pi's address.
02Prepare the Raspberry PiRun on: Raspberry Pi (SSH)
2a โ Operating system
Flash Raspberry Pi OS (the Lite edition is plenty) with Raspberry Pi Imager. In the Imager's settings, set a hostname,
a username, enable SSH, and enter your network details. Boot the Pi and log in over SSH. Wired Ethernet is the sturdiest choice.
The lab's own Pi runs happily over Wi-Fi with pings of roughly 4 to 20 ms. Then give it a fixed address, ideally a DHCP reservation in your router.
2b โ Disable onboard audio
The Pi's onboard audio shares its PWM hardware with GPIO18, the pin that carries the LED data signal. Leave audio on
and the strip stays dark. Change dtparam=audio=on to dtparam=audio=off and reboot. On older releases
(Bullseye and earlier) the file is /boot/config.txt instead.
Disable onboard audio
Raspberry Pi, then reboot
sudo nano /boot/firmware/config.txt
# Find the line dtparam=audio=on and change it to:# dtparam=audio=off# Save (Ctrl+O, Enter) and exit (Ctrl+X), then:sudo reboot
2c โ Install the system packages
snmp provides the snmpget and snmpwalk tools ProxStrip calls. gcc and python3-dev
are needed because the LED driver compiles C code when it installs.
โ If the last line prints an error instead of LED driver OK, the build step failed quietly. Check that the packages in
2c installed, then run the pip install line again. Skipping this check is how strips stay dark for an evening.
03Connect the StripRun on: the bench (power OFF)
A WS2812 strip needs three things: 5V power, ground, and one data line. Power the strip from its own supply,
share a ground with the Pi, and send data from GPIO18, which is physical pin 12. Switch everything off before touching wires.
The pins that matter
โ Count pins from the correct end. Pin 1 sits at the end of the header farthest from the USB and Ethernet ports. The outer
row, nearest the board edge, holds the even pins. Counting from the USB end is the most common cause of "nothing lights up."
The connections
The lab's strip has six wires: a grouped green / red / black plug at its data-input end, and a separate red / black power pair.
Strip wire
Connects to
Notes
Green (grouped plug)
Pi pin 12 (GPIO18)
The data line.
Black (grouped plug)
Pi pin 6 (GND)
Shared ground. Essential. Without it the data signal means nothing.
Red (grouped plug)
Nothing
Leave unconnected and tape or cap the bare end.
Separate red / black pair
5V supply +5V / GND
All the strip's power comes from here, not from the Pi.
โDifferent wire colors? Strips vary. Find the input end (look for DIN or DI and an arrow pointing away from it)
and send data there. Then match the rule, not the colors: one data wire to pin 12, ground to pin 6, power from a separate 5V supply.
Before you power on
Never connect two 5V sources together. Do not tie the strip's power to the Pi's 5V pins while the separate supply is also connected.
Bench test only: a strip of about 10 LEDs may be powered from Pi pin 2 (5V) with no other supply. Never run a full strip from the Pi.
Size the supply with margin. A WS2812 LED can draw up to about 60 mA at full white, so a 60-LED strip can ask for 3.6 A at worst. ProxStrip's default brightness and mostly-dark animation draw far less. The lab's strip runs from a phone charger.
Data level: the Pi's 3.3V signal drove the lab's strip with no level shifter. If yours flickers or misbehaves, a 5V level shifter on the data line is the usual remedy.
Direction: the LED nearest the Pi connection is LED 0, the router end. The last LED is the server end. To mount the strip the other way round, set SERVER_AT_END = False later.
Mounting: an aluminum channel with a diffuser is the lab's suggested approach.
04Fetch the ProgramRun on: Raspberry Pi
ProxStrip is a single Python file. Download it into the folder you made in step 2d.
Fetch the program
Raspberry Pi
cd ~/proxstrip
curl -fLO https://belmontlabs.dev/proxstrip/proxstrip.py
ls -l proxstrip.py
Optional: preview with no hardware
Draws the strip in your terminal using fake traffic. Ctrl+C to stop.
python3 proxstrip.py --simulate --demo
โYou can also download proxstrip.py in a browser and copy it over with scp.
Either way it should end up at ~/proxstrip/proxstrip.py.
05Configure With nanoRun on: Raspberry Pi
Your settings live in a separate file, proxstrip_local.py, right beside the program. Anything you set there overrides the built-in defaults.
The program file is never edited, so a new version can be dropped in later without re-entering any of this.
Create your settings file
Raspberry Pi, in ~/proxstrip
cd ~/proxstrip
nano proxstrip_local.py
Paste this into nano, then edit the values
Save with Ctrl+O, Enter. Exit with Ctrl+X.
# --- Strip ---LED_COUNT = 60 # number of LEDs on YOUR stripLED_ORDER = "GRB" # most WS2812 strips are GRB; try "RGB" if colors look wrongLED_BRIGHTNESS = 128 # 0 to 255# --- Proxmox (health) ---PVE_HOST = "PROXMOX_IP_ADDRESS"
PVE_NODE = "pve" # output of `hostname` on the Proxmox hostPVE_TOKEN_ID = "ledstrip@pve!strip"
PVE_TOKEN_SECRET = "PASTE_TOKEN_SECRET_HERE"
# --- SNMP (traffic) ---SNMP_COMMUNITY = "proxstrip" # must match snmpd.conf on the hostSNMP_INTERFACE = "eno1" # physical uplink NIC from `ip -br link`# --- Optional ---WATCH_VMIDS = [] # guests that should turn the strip red if they stop, e.g. [100, 104]
Keep the token private
Raspberry Pi
chmod 600 ~/proxstrip/proxstrip_local.py
โ This file holds your API token secret. Keep it private, never paste it into forums, and never commit it to a repository.
If it leaks, remove and re-create the token as shown in step 1e.
What the settings mean
Setting
Meaning
Default
LED_COUNT
Number of LEDs on your strip. Set this correctly or the animation will be cut short.
150
LED_ORDER
Color order of your strip. If red and green appear swapped, try another order such as "RGB".
"GRB"
LED_BRIGHTNESS
0 to 255. Gamma correction lowers apparent brightness, so you may want it higher.
128
PVE_HOST
Address of the Proxmox host.
placeholder
PVE_NODE
Node name, from hostname on the host.
"pve"
PVE_TOKEN_ID / _SECRET
The token from step 1e.
placeholder
SNMP_COMMUNITY
Must match snmpd.conf.
"changeme"
SNMP_INTERFACE
Physical uplink NIC to watch.
"eno1"
WATCH_VMIDS
Guests that turn the strip red if they are not running.
[ ]
SERVER_AT_END
True: LED 0 at the router. False: flipped.
True
TRIGGER_PORT
Port for the control page. 0 turns the page off.
8765
Thresholds (CPU_WARN, MEM_CRIT, STORAGE_WARN and friends) and the rainbow settings
(RAINBOW_EVERY_GB, SHINY_ODDS) can be overridden the same way. Every setting and its default is listed at the top of proxstrip.py.
Optional โ color a service, tame a full disk
Optional extras for proxstrip_local.py
Add any of these to the same file
# Colored head LED for one guest's particles: (name, interface on the Proxmox host, color)# Containers are veth<VMID>i0, virtual machines are tap<VMID>i0 (see `ip -br link` on the host)SERVICES = [("Jellyfin", "veth101i0", (200, 0, 255))]
# qBittorrent via its Web API (its Web UI must allow your Pi's subnet without login)QBIT_URL = "http://QBIT_IP_ADDRESS:8081"
QBIT_COLOR = (0, 215, 255)
# A storage that sits nearly full all the time: (warn, crit) as fractionsSTORAGE_OVERRIDES = {"storage_name": (0.99, 1.00)}
โChoosing head colors: every pixel passes a saturation boost and gamma correction, which pulls in-between colors toward pure ones.
Tested inputs: (200, 0, 255) reads violet, (0, 215, 255) sky blue, (0, 255, 255) cyan. Keep to violets, blues, cyans, and whites.
Amber and red are reserved for alerts, so avoid yellows, oranges, and reddish pinks. If a reverse proxy sits in front of your services, do not tag it,
or proxied streams are counted twice.
06Test Before You TrustRun on: Raspberry Pi
Check each data path on its own, then the strip. Failures are far easier to diagnose one layer at a time.
(The commands below use the example values from this page. Substitute your own address and token.)
1. Check the traffic path
Raspberry Pi. Should list interface names, including your uplink NIC.
Raspberry Pi. Cycles through traffic, alert states, and rainbows. Ctrl+C to stop.
cd ~/proxstrip
sudo ./venv/bin/python proxstrip.py --demo
4. Run it for real
Raspberry Pi. Move some data across your network and watch for particles. Ctrl+C to stop.
cd ~/proxstrip
sudo ./venv/bin/python proxstrip.py
โThe program needs sudo because the LED timing hardware is reserved for root. The console prints a line when a data source fails and another when it recovers.
If anything misbehaves, see Troubleshooting below.
07Run It at BootRun on: Raspberry Pi
Once the live test looks right, hand the program to systemd so it starts with the Pi and restarts itself if it ever stops.
Create the service file
Raspberry Pi
sudo nano /etc/systemd/system/proxstrip.service
Paste this in, replacing YOUR_USER with your username
Run whoami if unsure. Save with Ctrl+O, Enter. Exit with Ctrl+X.
Your settings live in proxstrip_local.py and are not touched
cd ~/proxstrip
curl -fLO https://belmontlabs.dev/proxstrip/proxstrip.py
sudo systemctl restart proxstrip
03
Reading The Strip
What the colors mean, and when the lab would like you to go and look at the server.
OK
Blue and green particles
No issues found. Inbound blue travels toward the server, outbound green toward the router.
WARN
Amber particles over a slow amber glow
CPU at 85% or more. RAM at 90% or more. Storage at 85% or more, or not available.
CRIT
Red particles over a faster red pulse
CPU or RAM at 97% or more. Storage at 95% or more. A watched guest is not running. A ZFS pool is not ONLINE.
DOWN
Whole strip pulses red, no particles
Three failed health polls in a row. The host is not answering. Go and see why.
All Clear
Recovery sweep. When the host returns to OK from WARN, CRIT, or DOWN, a rainbow crosses the whole strip. Setting: RAINBOW_ON_RECOVERY.
Data Milestone
Every 100 GB. A rainbow comet runs router to server for each 100 GB received, and server to router for each 100 GB sent. Setting: RAINBOW_EVERY_GB, with 0 for off.
Shiny
One in 4096 per minute, about every 2.8 days. Comets from both ends meet, then a sweep. Setting: SHINY_ODDS, with 0 for off. No rainbows play during DOWN.
Control page — live viewSimulation. Not your network. Buttons work.
http://PI_IP_ADDRESS:8765/
proxstripBelmont Labs: server traffic, made visible
OK
All systems nominal.
Routerin 0 kbps →← out 0 kbpsServer
qBittorrentin 0 kbps, out 0 kbpsEverything elsein 0 kbps, out 0 kbps
Rainbow log
01
Open http://PI_IP_ADDRESS:8765/ in a browser. A live mirror of the strip (router on the left, server on the right), the current state and its reasons, inbound and outbound Mbps, a legend for tagged services, and a button for each rainbow.
02
Two more endpoints./status returns the full state as JSON. /rainbow?type=in|out|sweep|shiny triggers an effect by GET or POST, which makes it easy to wire into backup notifications, automations, or cron jobs.
03
There is no login. Anyone who can reach port 8765 can press the buttons. Keep it on your LAN, never forward it from your router, and set TRIGGER_PORT = 0 if you would rather have no page at all.
Most of these have happened to the lab. The lab has stopped being embarrassed.
01
The program runs but the strip is dark. In order of likelihood: the data wire is on the wrong pin (count from the end farthest from USB), ground is not shared, onboard audio is still on (step 2b), the data wire is on the strip's output end instead of its input end, or the strip has no power. A brief flash at power-up followed by darkness is normal: the LEDs are waiting for data.
02
ModuleNotFoundError: rpi_ws281x. The LED driver never built. Install python3-dev and gcc (step 2c), then run the pip install line from step 2d again, using the venv's own pip.
03
can't open file '.../proxstrip.py'. Run the command from inside ~/proxstrip.
04
Repeated SNMP poll failed: Timeout. Run the snmpwalk test from step 6 by hand. If that times out too, check that snmpd is running on the host, that the IP in the rocommunity line is the Pi's actual address, that the community string matches exactly, and that no firewall blocks UDP 161. The program already waits 3 seconds and retries once, so occasional Wi-Fi spikes are tolerated.
05
The strip shows DOWN, or the log says it cannot reach Proxmox. Most often the settings file is missing or still holds placeholders, so the built-in defaults were used. Check proxstrip_local.py sits beside the program, then repeat the curl health test from step 6. A 401 means a wrong token or ID. A timeout means a wrong address or a firewall on port 8006.
06
Traffic barely registers. You are probably watching vmbr0 or the wrong NIC. Use the physical uplink that carries your LAN (step 1d).
07
Permanent amber from a storage that is always nearly full. Give it its own thresholds with STORAGE_OVERRIDES (see the optional block in step 5).
08
Colors are wrong, or inbound and outbound seem reversed. Wrong colors mean the wrong LED_ORDER. Reversed direction means the strip is mounted the other way round (SERVER_AT_END = False), or, if only the traffic is backwards, set SWAP_RX_TX = True.
09
The strip seems dim, or only part of it lights. Raise LED_BRIGHTNESS, since gamma correction lowers the apparent level. If only the first stretch lights, LED_COUNT is too small. If the far end flickers under load, the power supply is undersized.
10
Odd behavior when testing by hand. Two copies are running. Stop the service first with sudo systemctl stop proxstrip, then restart it afterward.
05
Design Notes & Construction
Construction // Brief
Five threads share the work. One polls SNMP every second, a second asks the Proxmox API for health every
fifteen, an optional third reads qBittorrent, a fourth serves the control page, and the main loop paints sixty frames a second.
All polled interfaces are read in a single request, using 64-bit counters, so a busy link cannot wrap them between readings.
Traffic is split into sources. Start with the uplink's totals. Each tagged guest claims its own measured traffic. qBittorrent claims what its API reports.
Whatever remains is "everything else." Guest interfaces are read from the host's side of a virtual cable, so their in and out counters are swapped on purpose,
and their numbers are refreshed whenever a container restarts and is handed a new interface index.
Service tags use a single solid head LED over the normal trail. Earlier attempts tinted whole particles and turned the strip into
a rainbow, which the lab found tiring on a Tuesday. Head-only tagging is the current design, and the lab stands by it.
ConstructionOne Python file
Dependenciesrpi_ws281x, requests
TrafficSNMP IF-MIB, 1 Hz
HealthAPI poll, 15 s
Frame Rate60 fps
Runs Assystemd service
SettingsSeparate local file
Writes To HostNEVER
Self-HostedYES
BL-014 PROXSTRIP: STATUS โ ACTIVE / STABLE โฎ
OSHA CASE: WITHDRAWN โ LIGHTING REQUEST GRANTED โ COUNSEL HAS NOT COMMENTED โฎ
INBOUND: BLUE โ OUTBOUND: GREEN โ AMBER MEANS CONCERN โ RED MEANS COME AND LOOK โฎ
BL-014-2C: PIN 12 CONFIRMED AS GPIO18 โ COUNTING FROM THE USB END: NOT RECOMMENDED โฎ
ACCESS LEVEL: READ-ONLY โ THE LAB HAS GIVEN THE LIGHT NO AUTHORITY WHATSOEVER โฎ
SHINY EVENT: ONE IN 4096 PER MINUTE โ LOOK UP OCCASIONALLY โฎ
ONBOARD AUDIO: DISABLED โ THE STRIP HAS ASKED FOR PEACE AND QUIET โฎ
CONTROL PAGE: PORT 8765 โ NO LOGIN โ KEEP IT ON THE LAN โฎ