On Fri, Sep 09, 2005 at 07:54:52AM -0500, Ken Cobler wrote: > Peter Cooper wrote: > > ..........I need to be > > able to monitor the time and date a user logs on to any w/s and what > > time and date the user logs off from the w/s. I am not that interested > > in how much traffic passed through the connection. I also need to be > > able to export this data to a MySQL database where I can then work out > > prices, costs, ect for viewing on a web page. > > > I would suggest using squid (proxy server) to force all new web requests > to your local web server. On that web server, run your php script that > will register the session and the user that logged into the server into > your MySQL database.
Squid won't tell him what time user's log in and out at. Peter - read up on the last command - a log file called /var/log/wtmp contains the last n-days of user's login sessions. The data is in text format and is easily exported to anything you want. Here is a sample of what the lines can look like: ws01 pts/14 ws01 Thu Sep 8 10:25 - 10:25 (00:00) The first fields is the user, the third is the host (workstation), last is the hours and minutes. perl and awk slice and dice this very nicely. -- speech recognition software was used in the composition of this e-mail Jeff Kinz, Emergent Research, Hudson, MA. -- speech recognition software was used in the composition of this e-mail Jeff Kinz, Emergent Research, Hudson, MA. ¡Ya no mas! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
