lastlog
I need to write a program that can monitor our server,
Who is logged into the machine? What are they doing? Where are they logged in from? What active TCP/UDP connections are there? Where are these connections being made to/from? and output the details to a text file. Hoping someone out there have a similar script that I can get an idea from. Thanks in advance November11 |
Code:
w >> log |
If you want the sort of sophisticated (eg x-ref output) I think you are asking for, Perl is designed to do this kind of stuff.
You prob also want to consider storing the results in MySQL for later analysis. http://perldoc.perl.org/ http://search.cpan.org/ http://www.perlmonks.org/ |
All times are GMT -5. The time now is 06:04 PM. |