Session monitor
Installation
For security reasons, the client portion of the session montior may run on one
or more external public machine(s). On these machines, install:
- Perl (at l
east 5.004_05 for the 5.004 series or 5.005_03 for the 5.005 series. Don't enable experimental features like threads or the PerlIO abstraction layer.)
- FS::SessionClient (copy the fs_session/FS-SessionClient directory to the external machine, then: perl Makefile.PL; make; make install)
Then:
Usage
Callbacks
- Sesstion start - The command(s) specified in the session-start configuration file are executed on the Freeside machine. The contents of the file are treated as a double-quoted perl string, with the following variables available:
$ip
, $nasip
and $nasfqdn
, which are the IP address of the starting session, and the IP address and fully-qualified domain name of the NAS this session is on.
- Session end - The command(s) specified in the session-stop configuration file are executed on the Freeside machine. The contents of the file are treated as a double-quoted perl string, with the following variables available:
$ip
, $nasip
and $nasfqdn
, which are the IP address of the starting session, and the IP address and fully-qualified domain name of the NAS this session is on.
Dropping expired users
Run bin/freeside-session-kill username
periodically from cron.