Captive portal monitoring
-
Appologies if this is the wrong area or its answered somewhere I have not yet found - there is so much info on here now its hard to find what you're looking for.
We have a very stable and functioning pfsence setup , the captive portal is fantastic.
We already remote monitor the bandwidth via snmp of the firewall and that works a treat, what we're wanting to add to the monitoring is how many users currently there are on the system.
Dont mind writing some scripture to do this, would prefer to do it via snmp so just need to know the oid (doesnt seem to be within the mib file we already have) is that varible available anywhere on the system? - it would be a bore to have to login to the webgui and desiminate the page for the infomation.
thanks.
-
Unfortunately that isn't already handled by the snmp daemon we have, and it isn't easy to add custom scripts to this snmp daemon either (part of a sacrifice for its smaller footprint and faster speed…)
You might be able to use a local agent or ssh to report back the size of the captive portal db, you really just need to run something like "wc -l /var/db/captiveportal.db" and you'd get back a count.
-
We use a remote syslog server and log all the portal authentications to a database. Then have a web front-end to display. Have it broken down by subnets that represents a certain facility in our guest network. We know how many customers are connected by location. Works great…