We are trying to use a custom MIB on about 75 OpenWRT routers to count the number of connected WiFi clients. But it doesn’t seem like adding a graph on a custom MIB is easy or straightforward based on our reading of the documentation. Is there an easy way to do this? The following is what we have written to our devices:
I’m assuming the device doesn’t just output that value natively in snmp then?
You have a couple of options.
Install check_mk + munin scripts from our librenms-agent repo and alter your script above to output in the format munin would expect.
Add support natively using includes/polling/wifi.inc.php to call the OID you’ve created above. This would be the slightly easier option as you only need to return the number of clients and the script takes care of the rest.
That’s correct, there is no native station-count value.
when you say to install check_mk + munin scripts, is that all done server-side or is any of that supposed to be done on the client? I’m not super familiar.
How does one add support natively? Is there a guide for that somwhere?
I’ve of course tried the example with stations and it works. I can get the info to Librenms. As far as I can see, You need to re-write some of the example scripts as OpenWrt, now uses “iw” so the commands are a bit different. The only thing needed now is probably to define a new OS Type in Librenms, “openwrt” in this case and add the possible OID using the Wireless Sensors examples. Writing a documentation on to set it up would be a nice move.
I sure hope tough that “iw” will work the same for all chipsets.