In this article I will show how to monitor all available wifi networks (SSIDs) and their signal strength using PRTG.
When I open my Windows network search I usually get a whole bunch of SSIDs in most residential and inner-city areas. I wanted to monitor these networks and also their signal strength, of course I especially wanted to monitor the strength of my own wifi networks.
With my old wifi strength monitoring script for PRTG I could already monitor the strength of the wifi network that each probe system is already connected to. But what about the others? So now I am running a powershell script as a sensor for PRTG on several remote probes of my PRTG installation (they run on several Windows mini-pcs and Windows tablets scattered all over the house).
This is what the sensor result looks like for one of them:
Below I am sharing my Powershell code for a EXE/Script Advanced sensor in PRTG. The code is largely based on Jordan Mill’s powershell code for the WLAN functions of Windows (Thanks for sharing, Jordan!).
How to set up this sensor
Download and unzip the file Signal Strength of Visible Wifi Networks.ps1 from the following link at the end of this article and copy it onto the computer with the (remote) probe into the folder:
C:\Program Files\PRTG Network Monitor\Custom Sensors\EXEXML
and I set the Execution Policy properly. In PRTG’s UI I set up a new EXE/Script Advanced Sensor and the select the filename:
The sensor requires about 30 seconds to run (Windows needs some time to scan for available networks), then you will see a list of networks and their signal strengths:
The network names show the supported wifi standard (e.g. 802.11n or 802.11ac). If a network is not available anymore it will show up as “no data” in this list.
Note: In PRTG every time a new SSID is discovered an additional sensor channel is created and will stay there forever. In PRTG you should not have hundreds of channels for a sensor, so if you have hundreds of wifi networks around you or if you often travel with this sensor then you should maybe not use this sensor.
- Code on Github: https://github.com/dirkpaessler/sensors_for_prtg
- Version 2.0 (Feb 6th 2019): signal-strength-of-visible-wifi-networks-v2.zip
- Version 1.0 (Feb 5th 2019): signal-strength-of-visible-wifi-networks.zip
- Feb 6th 2019: Added detection of WiFi channel/Ghz
- Feb 5th 2019: Initial release