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.148126.96.36.199.188.8.131.52.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.148184.108.40.206.220.127.116.11.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 18.104.22.168.4.1.14822.214.171.124.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?