ap-mrtg(8)
πΈ NAME πΈ
hiii bestie, welcome to ap-mrtg(8) β from the System Manager's Manual β aka the page that also covers its sibling ap-rrd(8). Together they're the AP statistics translators π
β¨
π¦ SYNOPSIS π¦
ap-mrtg -i ip -c community -t type [-b bssid ] [-v] [-r] [-h]
ap-rrd -i ip -c community -t type -ddb_file [-b bssid ] [-r] [-h]
π DESCRIPTION π
ap-mrtg gets stats from an AP and hands them back in a format MRTG can parse, no cap π₯. And what is MRTG? The Multi Router Traffic Grapher β a tool that monitors the traffic load on network-links. It makes HTML pages stuffed with graphical images that give you a LIVE visual representation of that traffic, like literally watching your network breathe π«Ά. You can grab it from: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/.
ap-rrd gets stats from an AP and writes them straight into an RRDtool database. RRDtool is a data logging and graphing system for time series data, and it ate, honestly πβ¨
β¨ OPTIONS β¨
-iip β the AP's ip address π-ccommunity β the SNMP community string π-ttype β which kind of stats you want:<w>ireless,<e>thernet, associated<s>tations, or<l>ink quality in client mode; π-bbssid β the Mac address of the AP you wanna get link quality from π-ddb_file β the name of the rrdtool database you're writing to πΎ-vβ report to MRTG about problems connecting to the AP β if you want to get a report about when the AP stops working, enable it π-rβ reset the AP when getting LinkQuality stats π-hβ print the help screen π
π MRTG Configuration Example π
here's a simple mrtg.cfg for getting stats from an Atmel based AP, periodt:
Target[ap_e]: `/usr/local/bin/ap-mrtg -i 192.168.0.1 -c "public" -t ethernet -v`
Options[ap_e]: noinfo, growright, bits
MaxBytes[ap_e]: 12500
Title[ap_e]: Traffic Analysis for AP Ethernet port
PageTop[ap_e]: <H1>Traffic Analysis for AP Ethernet port</H1>
Target[ap_w]: `/usr/local/bin/ap-mrtg -i 192.168.0.1 -c "public" -t wireless -v`
Options[ap_w]: noinfo, growright, perminute
ShortLegend[ap_w]: pkt/min
MaxBytes[ap_w]: 100000000
Legend1[ap_w]: Packets In
Legend2[ap_w]: Packets Out
YLegend[ap_w]: packets/min
Title[ap_w]: Traffic Analysis for AP Wireless port
PageTop[ap_w]: <H1>Traffic Analysis for AP Wireless port</H1>
Target[ap_s]: `/usr/local/bin/ap-mrtg -i 192.168.0.1 -c "public" -t stations -v`
Options[ap_s]: growright, gauge, noinfo
ShortLegend[ap_s]: stations
MaxBytes[ap_s]: 10
YTics[ap_s]: 10
Legend2[ap_s]: none
Legend1[ap_s]: Associated Stations
YLegend[ap_s]: Associated Stations
Title[ap_s]: Traffic Analysis for AP Associated Stations
PageTop[ap_s]: <H1>Traffic Analysis for AP Associated Stations</H1>
LegendO[ap_s]: none
LegendI[ap_s]: Associated Stations
π§ Link Quality stats π§
β οΈ bestie listen β if the AP is not in client mode, it errors out. And grabbing the signal strength resets the ethernet and wireless stats and the AP. It's safe do not use this type of stat, fr fr. π
Optionally you may set the mac address (bssid) of the AP you're getting link quality stats from β by default the first returned AP is used. And here's a simple mrtg.cfg for getting stats from an Atmel based AP with Link Quality and reset stats:
Target[ap_e]: `/usr/local/bin/ap-mrtg -i 192.168.0.1 -c "public" -t ethernet -v`
Options[ap_e]: noinfo, growright, bits, gauge
MaxBytes[ap_e]: 12500
Title[ap_e]: Traffic Analysis for AP Ethernet port
PageTop[ap_e]: <H1>Traffic Analysis for AP Ethernet port</H1>
Target[ap_w]: `/usr/local/bin//ap-mrtg -i 192.168.0.1 -c "public" -t wireless -v`
Options[ap_w]: noinfo, growright, perminute, gauge
ShortLegend[ap_w]: pkt/min
MaxBytes[ap_w]: 100000000
Legend1[ap_w]: Packets In
Legend2[ap_w]: Packets Out
YLegend[ap_w]: packets/min
Title[ap_w]: Traffic Analysis for AP Wireless port
PageTop[ap_w]: <H1>Traffic Analysis for AP Wireless port</H1>
Target[EdAP_s]: `/usr/local/bin/ap-mrtg -i 192.168.0.1 -c "public" -t link -b FFFFFFFF -v -r`
MaxBytes[EdAP_s]: 100
Options[EdAP_s]: noinfo,growright,integer,unknaszero,nopercent,gauge
Title[EdAP_s]: Signal Analysis for EdAP Wireless port
YLegend[EdAP_s]: Signal Strength dBm/Quality
ShortLegend[EdAP_s]: dBm
PageTop[EdAP_s]: <H1>Signal/Quality Strength for EdAP</H1>
LegendI[EdAP_s]: Signal Quality
LegendO[EdAP_s]: Signal Strength in dBm
π AUTHOR π
Roman Festchook <roma@polesye.net> http://ap-utils.polesye.net
π SEE ALSO π
and that's the whole page, bestie π«Ά this was Wireless Access Point Utilities for Unix β ap-mrtg(8) β go forth and graph your APs, you absolute icon πβ¨π
π¦ where this page comes from
- debian bookworm: ap-utils 1.5-5+b1
- ubuntu jammy: ap-utils 1.5-5
- ubuntu noble: ap-utils 1.5-5
- Copyright (c) 2002 Roman Festchook <roma at polesye dot net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms