Obtaining real-time values of system parameters or events (processor load, server responsiveness, intrusion attempts, …), or getting alerted when certain events happen

learn more… | top users | synonyms

4
votes
1answer
875 views

Monit daemon interval setting…global or service-level?

I'm configuring monit on Ubuntu 11.04. In monitrc, the following setting controls the interval at which the monit daemon monitors services... set daemon 120 Is this a global setting? If I want to ...
0
votes
1answer
94 views

Is it possible to run ganglias gmetad and ganglia-monitor not demonized on debian?

I wonder is it possible to run ganglias gmetad and ganglia-monitor not demonized, under my own user (me, sudo) on debian? Because while gmond.conf contains something like demonize option I see no such ...
1
vote
1answer
2k views

How to configurate ganglia-monitor on a single debian machine?

Here is what I currently have online, as you can see there is no information about my debian server. (While was installing I tried to follow next instructions) What I have changed in default ...
1
vote
2answers
63 views

How to capture the adress an application contacts?

An application contacts an Internet host on each start of it. It seems to take just an instant. I don't know if HTTP, plain TCP or UDP or what is used but tend to suppose HTTP. What a tool can I use ...
4
votes
1answer
2k views

User's executed commands log file

In Unix based systems, is there a log file that stores user's executed command(s)?
2
votes
2answers
400 views

How to identify the program that uses most bandwidth?

How can I know which application is using the most network bandwidth? I saw some graph from KDE's network monitor, but don't know which process did that.
1
vote
1answer
198 views

How can I monitor if anybody (any process) access is certain file [duplicate]

Possible Duplicate: Access history of a file I know if a file is "being accessed" I can use lsof to see who (which process) is accessing it, but lsof is slow and heavy and I don't think I ...
14
votes
3answers
2k views

Monitor what is being sent to /dev/null?

Just for fun: Is there a way to monitor/capture/dump whatever is being written to /dev/null? On Debian, or FreeBSD, if it matters, any other OS specific solutions are also welcome.
2
votes
2answers
620 views

Can I send auditd logs to another computer?

On a Linux (debian) box, I have a NFS server wich seems to be overloaded by requests. In order to identify the problem, I'm trying to monitor with auditd/auditctl accessed files in the partition ...
3
votes
2answers
936 views

How to check and block processes connecting to internet directly?

Is there a way to find which processes in my system are getting connected to net automatically. Is there a way to select and block net access of some processes permanently? I use mint 11. I use a USB ...
11
votes
3answers
584 views

Maintain 100 instances of a program running

I'm currently using supervisord to maintain 100 instances of a script running at once. If any die then it starts up a new one. However it seems to be struggling maintaining larger numbers (>300 ...
16
votes
4answers
12k views

How to monitor only the last n lines of a log file?

I have a growing log file for which I want to display only the last 15 lines. Here is what I know I can do: tail -n 15 -F mylogfile.txt As the log file is filled, tail appends the last lines to the ...
2
votes
2answers
745 views

How to detect and stop user from deleting particular file on Linux?

Is it possible to monitor user actions on the file system and prevent him from performing particular actions? Can inotify only monitor actions on the file system? What about fanotify? There's very ...
3
votes
2answers
377 views

How to identify if there is some power saving setting that powered down a processor in Linux

I have a linux server that apparently has two Intel Xeon X5670. /proc/cpuinfo shows 12 CPUs but dmidecode shows only one CPU and the other one is in the Unpopulated status like it is showing that ...
15
votes
3answers
36k views

Can I change root's email address or forward it to an external address?

I'm getting a lot of mail in my root user's mail account. This appears to be mostly reports and errors from things like cron scripts. I'm trying to work though and solve these things, possibly even ...
3
votes
3answers
235 views

Track daily directory changes (and email them)

I have a Debian powered NAS server (ReadyNAS) with a deep file hierarchy. I'd like to get notified daily about what has changed in some of its directories and their subdirectories. So if someone ...
1
vote
3answers
377 views

Is there a way to beep when tail -F stops to fetch new results?

A few days ago I asked Is there a way to make tail -F beep? Now I want to know if there is any way to use *nix utilities, to beep when a tail -F stops returning new lines for a while! I know, I ...
2
votes
2answers
358 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 ...
14
votes
5answers
24k 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 ...
7
votes
3answers
1k 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 ...
2
votes
2answers
421 views

Measuring CPU and Memory per user to distribute “cost” of a server

How should I implement approximately correct per-user monitoring on a server? I want a way to split the cost of a server between the users based on their usage. On newer machines (RHEL6) I would use ...
3
votes
1answer
1k views

How to enable nagios user created by yum to use check_by_ssh

I've used yum install nagios on an Amazon Linux instance, and it created a nagios user with shell /sbin/nologin and homedir /var/spool/nagios. This is the behaviour on EC2. I want to use check_by_ssh ...
8
votes
2answers
1k views

How can I list the top IO consuming files?

My document management software is doing a lot of IO and I would like to know which files it is accessing the most. Is there a Linux tool that would give me the list of the top IO consuming files, ...
4
votes
1answer
2k views

What is the difference between /proc/self/stack and output from pstack?

I have been looking through the documentation for /proc and the "stack" object being a new'ish object in proc, I have also looked through the kernel commit to create it -- however the documentation ...
2
votes
2answers
2k views

Make iotop show only the most disk-intensive item

My laptop (no VM, just plain Ubuntu with encrypted home) freezes for 3 minutes a few times per day. During these 3 minutes, the disk LED indicates intense disk activity, and I can't even move the ...
2
votes
2answers
1k views

What do the three values mean on network monitoring tools

Often in network monitoring tools there are three values for one measure. Ex rx: 2.0 kb/s 40 kb/s 10 kb/s Are these similar to how cpu load works, they are taken at different length time spans. ...
11
votes
5answers
435 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 ...
5
votes
1answer
1k views

Getting disk i/o statistics for single process in Linux

I need to monitor the I/O statistics of a process that writes to disk. The purpose is to avoid write rates too high for long periods. I know there's iostat tool to accomplish this task on a ...
5
votes
1answer
348 views

DTrace to trap any chmod applied to certain files

Underneath the Mac OS X directory /audit I have certain files which users can access and chmod to their liking. I need to audit any chmod done on any files by recording the time, user and file being ...
2
votes
0answers
136 views

What is the recommended way of start and supervise daemons on Arch Linux? [duplicate]

Possible Duplicate: Ensure a process is always running At the moment I use a quick and dirty nohup ... & to start application and database servers. E.g. su - foo -c "nohup php-cgi -b ...
2
votes
3answers
1k views

Is it fine to use tail -f on large log files

I would like monitor a large log file (close to 1 GB) for errors. I want this to be close to real time (few seconds delay is fine). My plan is to use tail -f | grep. Is there any performance issues ...
2
votes
1answer
106 views

Reporting Network and Vital Statistics and writing to db and image

I am looking for a versatile tool that can write either to a MySQL db, or possibly simply even just write some image charts (that i can display on a PHP dashboard) to monitor my network health. Is ...
6
votes
4answers
14k views

How to monitor incoming http requests

How can I monitor incoming HTTP requests to port 80? I have set up web hosting on my local machine using DynDNS and Nginx. I wanted to know how many request are made on my server every day. Currently ...
15
votes
3answers
6k 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. ...
19
votes
3answers
10k views

How does the “tail” command's “-f” parameter work?

$ tail -f testfile the command is supposed to show the latest entries in the specified file, in real-time right? But that's not happening. Please correct me, if what I intend it to do is wrong... I ...
4
votes
2answers
1k 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. ...
2
votes
7answers
1k 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, ...
1
vote
1answer
820 views

Automount lookup failed. How to determine what is trying to access the file?

Is there a way to find out what is trying to mount this file? Jul 13 14:27:24 myhost automount[13527]: lookup(file): lookup for tmp_dir failed Something is looking for "tmp_dir", and I've ...
2
votes
1answer
130 views

Is there a way to determine which process creates a file on osx 10.6.8

I would like to know which process has created files on os X 10.6. I'm trying DTrace, which probably will give the right answer, but I have not eyes to see the method. I'm doing this because I think ...
1
vote
1answer
626 views

Make top shows only server process

Can I make top show info about the web and db servers? Can it be done by piping the pids to the top? They can be many process from every one?!? Or is there any better method for this?
5
votes
2answers
487 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 ...
2
votes
1answer
841 views

Monitoring the OpenSSH sFTP process?

Is there a way to monitor the current status of my sFTP process from my Debian server? I'm looking from something similar to top or netstat that will give me the status/progress of activities ...
8
votes
2answers
467 views

Overheating results in system shutdown

I have been having an overheating issue which makes my laptop shutdown immediately. Is there anyway to monitor the temperature from the sensor and scale down the CPU frequency to avoid that problem? ...
0
votes
1answer
404 views

Turning off mailing in psad

The psad monitoring tool keeps on sending lots of mail to my localhost admin account. I use my ubuntu server as a NAT router, and psad warned me to enable logging in iptables. After I did so, it ...
5
votes
1answer
856 views

Measuring Python script bandwidth usage

I have a python script that uses urllibs to parse some web pages, and uses selenium to scrape pages with javascript, and I would like to know its cumulative bandwidth usage. I've looked at nethogs, ...
3
votes
1answer
260 views

find out the culprit process

This is rather a basic linux administration question. We have a CentOS linux machine running a production application. There are 10 application specific processes running on that machine. Once in ...
3
votes
1answer
110 views

Is there a way to tell which file (script, specifically) executed a command?

I'm running Slackware 13.37, and I was wondering if there was a way to tell which script executed a command. I tracked the process and its arguments, but I would like to know where the command ...
22
votes
5answers
13k 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)?
1
vote
1answer
1k views

How to monitor traffic when SSH tunneling?

If I run: ssh -fND localhost:6000 USERNAME@IPADDRESS -p PORTNUMBER and I set my webbrowser to use 127.0.0.1:6000 SOCKS5 proxy, is there a way for the remote SSH server to monitor my web traffic? ...
13
votes
5answers
4k views

Process Monitor equivalent for Linux?

Is there a Unix/Linux equivalent of Process Monitor, whether GUI or CUI? If it makes a difference, I'm looking at Ubuntu, but if there's an equivalent for other systems (Mac, other Linux variants ...