Number of Wireless Clients
Jump to navigation
Jump to search
The Problem
You have multiple wireless access points set up and you would like to monitor the number of connected clients with The Dude.
The Solution
- In Dude, go to "Functions" and create a new function called: wireless_clients
- Under "Code" paste in the following:
- array_size(oid_column("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.
- mtXRouterOs.mtxrWireless.mtxrWlRtabTable.mtxrWlRtabEntry.mtxrWlRtabStrength"))
- Click on Ok and go back to your network map
- Right click on one of your wireless devices and select "Appearance"
- Click on the "Label" box and paste the following:
- [Device.Name]
- [device_performance()][Device.ServicesDown][wireless_clients()] Wireless Clients
- Click on "Ok" to see your handy work.
Now that you have your number, wouldn't it also be nice to have a graph so you can track the number of clients over time?
How to graph it
- Right click on your network object and go to Settings
- On the "Services" tab, add a new service
- Click on the 3 dots next to Probe
- Fill out the following settings:
- Name: wireless_probe
- Type: Function
- Available: wireless_clients()
- Error: if(wireless_clients(), "", "")
- Value: wireless_clients()
- Unit: Clients
- rate: None
- Fill out the following settings:
- Click on Ok and select the wireless_probe as your probe
- Hit Ok again and you should be graphing the number of wireless clients now.
To add the graph to any other APs you may have, simply add the wireless_probe as a new service