Obtaining real-time values of system parameters or events (processor load, server responsiveness, intrusion attempts, …), or getting alerted when certain events happen
8
votes
4answers
1k views
Is it possible to find out what program or script created a given file?
Three files have suddenly appeared in my home directory, called "client_state.xml", "lockfile", and "time_stats_log". The last two are empty. I'm wondering how they got there. It's not the first time ...
6
votes
3answers
641 views
How to run a command when a directory's contents are updated?
There is a directory A whose contents are changed frequently by other people.
I have made a personal directory B where I keep all the files that have ever been in A.
Currently I just occasionally ...
10
votes
8answers
1k views
Ensure a process is always running
I started hosting sites a while back using Cherokee. For external sources (FastCGI, etc) it has an option to launch the process if it can't find one running on the designated socket or port. This is ...
17
votes
4answers
4k views
Determine which process is creating a file
Given file path, how can I determine which process creates it (and/or reads/writes to it)?
7
votes
6answers
1k views
Is there a tool that allows logging of memory usage?
I want to monitor memory usage of a process, and I want this data to be logged. Does such a tool exist?
1
vote
2answers
205 views
Is there a log of past threads that are now closed?
Sometimes, I have a rogue Java process which takes up 100% of my CPU and makes it jump about 30C in temperature (usually resulting in a crash if not killed).
Problem is, I can never really identify ...
9
votes
5answers
697 views
Monitoring activity on my computer.
So recently I found that someone has been using my computer without consent, browsing folders, etc....
I could change all my passwords straight away, but I'm curious as the what the intruding party ...
10
votes
5answers
958 views
What happens when I open and read from /proc?
Does the hard drive need to be accessed or is everything done in memory? Basically I would like to constantly get updated values from meminfo and cpuinfo.
Do I need to reopen the file and then reread ...
4
votes
2answers
263 views
Is it possible to follow a command (run repeatedly)? as one would follow a file using tail -f?
I have a script which produces a file 'Detail.out'. I know that the script is completed whenever the file contains a certain number of lines (roughly 21025). So I find myself sitting at the command ...
13
votes
3answers
15k views
How to monitor CPU/memory usage of a single process?
I would like to monitor one process's memory / cpu usage in real time. Similar to top but targeted at only one process, preferably with a history graph of some sort.
8
votes
2answers
3k views
Linux: Writing a watchdog to monitor multiple processes
A few years ago, a coworker came up with an elegant solution for a watchdog program. The program ran on Windows and used Windows Event objects to monitor the process handles (PID’s) of several ...
9
votes
5answers
311 views
Which application should I blame for compulsively creating a directory again and again?
There's an application on my system which keeps creating an empty ~/Desktop directory again and again. I can't stand capital letters in my home, nor I can stand this “desktop” thingy. So, as picky as ...
4
votes
4answers
5k views
Linux file access monitoring
Is there any way in unix to find out who accessed certain file in last 1 week? It may be user or some script ftp it to some other place. Can I get a list of user name who accessed certain file? How ...
3
votes
3answers
2k views
Find out network traffic per IP
We have one central server which functions as an internet gateway. This server is connected to the internet, and using iptables we forward traffic and share the internet connection among all computers ...
3
votes
2answers
497 views
Access history of a file
I was wondering if there are any tools to keep track of the access history of a file. I know of stat, but as far as I understand, it only returns information about the last time the file was accessed.
...
13
votes
1answer
1k views
Why isn't a straightforward 1/5/15 minute moving average used in Linux load calculation?
Until recently i thought the load average (as shown for example in top) was a moving average on the n last values of the number of process in state "runnable" or "running". And n would have been ...
11
votes
5answers
6k views
Script to monitor folder for new files?
How do I detect new files in a folder with a bash script? I would like to process the files as soon as they are created in the folder. Is this possible to do so or do I have to schedule a script with ...
6
votes
1answer
2k views
Monitoring USB traffic
Kernel version: 2.6.31-22
I wish to monitor the USB traffic to and from a device. I've searched, but different sites seem to give different information and I'm confused.
Some sites suggest that I ...
4
votes
1answer
509 views
User's executed commands log file
In Unix based systems, is there a log file that stores user's executed command(s)?
4
votes
3answers
254 views
Forcing an 'added' alias to every command
Is it possible to forcibly add a timing alias (for lack of a better way to phrase it) to every command in bash?
For example, I would like to have a specific user who whenever a command is run, it is ...
4
votes
2answers
734 views
How can I have activity in a Dropbox folder logged?
I have a folder shared with others through Dropbox. When a file is added to this folder, I get a system tray notification in KDE --- but of course if I'm not at my computer, I wouldn't see the ...
6
votes
3answers
1k views
How do you choose which monitoring application to use?
Having a system for collecting performance statistics can be extremely useful. In the past, I've used Munin for this, and it has been invaluable in analyzing bottlenecks and various other issues. I ...
5
votes
3answers
2k views
List the files accessed by a program
time is a brilliant command if you want to figure out how much CPU time a given command takes.
I am looking for something similar that can list the files being accessed by a program and its children. ...
4
votes
5answers
311 views
Unpredictable memory explosions
The main server at my company has recently been having a lot of downtime. For reasons that neither I nor the other admins can determine, it has random (VERY sudden) explosions in memory. It becomes ...
4
votes
4answers
292 views
performance monitoring
Is there some performace monitoring tool which would run in background gathering info about all system activity? Somethimes my system (Arch linux, 32 bit) slows down terribly and the top utility ...
2
votes
6answers
541 views
Linux server monitoring software
The dedicated server I'm looking after started to crash occasionally, I suspect because of overload, so I need some performance/resource based monitoring software, preferably with web interface, ...
4
votes
4answers
308 views
Network monitoring tool
I'm basically looking for a utility that displays which processes are using how much bandwidth, similar to how top displays which processes use how much resources.
4
votes
2answers
7k views
How can I see what processes are running?
I use Ubuntu Server 10.10 and I would like to see what processes are running. I know that PostgreSQL is running on my machine but I can not see it with the top or ps commands, so I assume that they ...
1
vote
2answers
128 views
How to know recently updated files
If I run iostat -x 1 I saw ocassionally large 5MB to 10MB writes.
What files are being written?
I want to check the recently created files with size over 5MB for example.
How would I do so?
1
vote
2answers
113 views
Monitor single process to logfile perodicly
Based on this question, I would like to log the performance of a specific process, with a frequency of say one second, to a csv (comma separated value) log file.
Something like:
...
1
vote
2answers
3k views
What can I use to monitor and log incoming/outgoing traffic to/from remote hosts?
I run a web server (Debian Squeeze on a VPS), and the graphs provided by the hosting company show consistently that around twice as much traffic is incoming to the server compared to the outgoing ...