# Monitoring

## iperf3

Server running on:

- justine.lan (192.168.1.2) 
    - running as a service
- umma.lan (192.168.1.8) 
    - this is set up as docker container `networkstatic-iperf31`

Clients installed on:

- igor.lan/void VM
- morgana
- futaba

Can be installed on OpenWRT via opkg.

Void Linux service (`void/iperf`):

```bash
#!/usr/bin/fish

mascot-config "iperf3 server" |
mascot-config-xbps-package iperf3 installed |
mascot-config-dir "/etc/sv/iperf" present |
mascot-config-file "/etc/sv/iperf/supervise" symlink "/run/runit/supervise.iperf" |
mascot-config-file "/etc/sv/iperf/run" present --mode "u=rwx,go=rx" read (begin
	echo '#!/bin/sh'
	echo 'exec chpst -u nobody:nogroup iperf3 -s'
end | psub) |
mascot-config-runit-service \
	--require 'Delegated("XBPS package \"iperf3\"")' \
	--require 'FileContent(path:"/etc/sv/iperf/run")' \
	iperf running
```

## SNMP

<table border="1" id="bkmrk-host-version-usernam" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 11.6152%;"></col><col style="width: 9.51459%;"></col><col style="width: 12.4802%;"></col><col style="width: 9.51459%;"></col><col style="width: 20.517%;"></col><col style="width: 36.3234%;"></col></colgroup><tbody><tr><td>**Host**  
</td><td>**Version**  
</td><td>**Username / Community**  
</td><td>**Protocol**  
</td><td>**Passwords**  
</td><td>**Walk example**  
</td></tr><tr><td>umma.lan  
</td><td>v3  
</td><td>`snmp`  
</td><td>SHA/AES  
</td><td>`Inne/network-snmp-v3`</td><td>`snmpwalk -v3 -l authPriv -u snmp -a SHA -x AES -A (pass Inne/network-snmp-v3 | head -n 1) -X (pass Inne/network-snmp-v3 | head -n 1) 192.168.1.8`</td></tr></tbody></table>