Captiveportal Status – Where can I find this file (what directory)?
-
Greetings,
Where can I find the Captiveportal Status file (what directory)? I'd like to use it for statistical purposes and make sure a backup of it is stored somewhere as I noticed that upon reboot of my psSense device previous days where gone.
Thank you,
Scott
-
Hello,
Look here /usr/local/www - it's there.
Btw: I use this 'self-made scrpit' that a 'Munin' plugin uses:
#!/usr/local/bin/php -q require_once("/etc/inc/util.inc"); require_once("/etc/inc/functions.inc"); require_once("/etc/inc/captiveportal.inc"); /* read in captive portal db */ $cpzone ="cpzone"; /* hard code */ $cpdb = captiveportal_read_db(); /* determine number of logged in users */ echo count($cpdb); ?>
to make this http://www.test-domaine.fr/munin/dyndns.org/brithotelfumel.dyndns.org/index.html#portalusers
-
Gertjan,
Thank you for the response and sharing your code.
Right now I have a simple click button Captive Portal with defaults configured. Do you happen to know how long a device has before it has to re-authenticate with the CP? I want to make sure I understand the data being collected… Whether the authentication in the log represents a unique one time event or is something that may reoccur again in given amount of time.
-
Well,
Toy a little bit with the two time-out settings (hard and soft) and you'll understand quickly how they interact.
-