Simple ways to keep tabs on your piratebox

For those not versed in Linux or even those versed in another flavor the following work well to see what’s going on with your piratebox.

To find the number of currently connected users

iw dev wlan0 station dump | grep -c Station

To get server uptime and average processor loads over the last 1, 5 and 15 minutes

uptime

To get a more in depth real time picture of processor and memory usage

top

This opens a full screen real time automatically updating processor usage by job monitor.   Check out /opt/sbin/lighttpd and python /opt/piratebox/droopy.   On the MR3020 with only 1 user the lighttpd will suck up 15% and the droopy 26 to 40%.   This gives you an idea how many users it can handle.   Hit Ctrl-C to exit the monitor.

iw/grep and uptime can be called by a script that runs periodically with cron and dumps into a usage log to allow you to gauge whether you need to upgrade to a more powerful router while still keeping true to the no logging concept of piratebox (Note the raw  ”iw dev wlan0 station dump” output will display unique MAC address information for any user and should not be logged).

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Home Tech Tips PirateBox Simple ways to keep tabs on your piratebox