Monitoring System Stats via BPQ & Python

While setting up my BPQ node, I came across another node that hosted an interesting application: System Info. This application displayed stats such as CPU usage, system uptime, available memory, etc. I think this would be interesting for remote management, so I decided to implement it.

I found this guide, which was very helpful, but it used the Perl language. Not a big fan of Perl (mostly because I don’t know it well), I wanted to rewrite the small script in Python. Here is the script. Before you run it, you’ll need to install the following modules:

  • py-cpuinfo
  • certifi
  • distro
  • psutil
  • uptime

I’ve included a requirements.txt file, so all you’ll have to do is run pip install -r requirements.txt. If you haven’t got pip install, run sudo apt install -y python3-pip.

Follow the guide linked to above, until you get to the scripting portion. Simply replace the line in /etc/inetd.conf with this:

bpqdemo    stream    tcp    nowait    YOURUSER  /usr/local/linbpq/

make sure you change the path to wherever your linbpq installation is located. It will look like /home/USERNAME/linbpq, so the full path should look like /home/USERNAME/linbpq/ Also, don’t forget to replace YOURUSER with the username used to run linbpq.

The script has been tested on Ubuntu 20.04, but it should run anywhere. Hope you enjoy it! Feel free to submit pull requests if you have any ideas for improvements.

The KD5LPB-7 2m BPQ32 Node

Over the past month, I’ve been at work setting up a 2 meter BQP node here in Aurora, Colorado. I chose BPQ32 as it is full of features, is well supported, and is widely used. The nodes broadcast feature is attractive to me, as I think it would be cool to have an automatically generated list of nodes that are reachable from any one station.

I’m new to this mode and am learning something every day.

The node equipment:

  • Kenwood D710G
  • Intel NUC running linbpq on Ubuntu 20.04
  • 20m/440 mobile antenna

The D710G is a great rig for packet, as it comes with a built-in TNC. The built-in TNC has basic BBS functionality, but nothing compared to what is offered by BPQ.

While the antenna is subpar for a fixed node, it’s the best I can do while living in an apartment. It’s mounted to the balcony rail using an MFJ-1907 balcony mount. This seems to work fairly well, and achieves a 1.2:1 VSWR on the local packet frequency, 145.050.

Kenwood D710G
Intel NUC (BPQ host)
2m/440 Antenna in back

Packet radio in Colorado is very much alive and well. I only wish more folks broadcast their nodes list so that a more comprehensive list of local nodes could be built.

My hierarchical route is KD5LPB.#NCO.CO.USA.NOAM

I can be mapped in BPQ via MAP kd5lpb-7 UDP 10093 B; Aurora, CO