I'm trying get PRTG to give me the number of clients attached to our AP's. I have an snmp command:
|snmpwalk -v2c -c COMMUNITY ADDRESS SNMPv2-SMI::enterprises.14822.214.171.124.126.96.36.199.3|
This will return a list of clients connected, so by adding | wc -l I can count them
|snmpwalk -v2c -c xxx xxx SNMPv2-SMI::enterprises.148188.8.131.52.184.108.40.206.3||wc -l|
But how do I make PRTG count the number of lines returned in SNMP? I've tried asking just on the OID 220.127.116.11.4.1.14818.104.22.168.1 But of course it just returns a list of clients, so it doesn't understand it. Is there a way to use the advanced snmp to count the lines, instead of building a giant custom sensor for this?