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

9
votes
2answers
114 views

Print pids and names of processes as they are created

From the question here, the OP wants to repeatedly poll the pid of a process using pidof in a shell script. Of course this is inefficient as a new process must be started for the pidof program ...
0
votes
1answer
39 views

How to move a file to another directory, as soon as it is created, in linux? [duplicate]

I want to move all the *.xxx file created in a directory to another directory. But, I want that as soon as the files are created, they should move to another directory. Please Help. Thanks in advance. ...
1
vote
0answers
51 views

When was my machine last touched?

It is occasionally useful for me to know when my machine (Debian wheezy) was last touched. To be precise, I mean the more recent of the times I typed on the keyboard or moved the mouse. When I ...
0
votes
0answers
15 views

Shell script to monitor log files going over a certain size [duplicate]

Due to another issue I'm tracking down, one of my app servers occasionally starts generating a large amount of errors and then becomes unresponsive. For now, the simple solution is to restart the ...
1
vote
2answers
64 views

Remote monitoring Linux server from Ubuntu workstation via SSH [closed]

I am looking for a convenient way to monitor my Ubuntu server from my laptop (running Ubuntu Desktop). I understand this is easily achievable by SSHing to the server and running commands, but I'd like ...
2
votes
3answers
519 views

Cron job to check if PHP script is running, if not then run

I am wondering if someone might point me in the right direction. I've got little experience working with the Linux command line and recently due to various factors in work I've been required to gain ...
4
votes
4answers
132 views

List ports a process PID is listening on (preferably using iproute2 tools)?

I'm looking to list all ports a PID is currently listening on. How would you recommend I get this kind of data about a process? NOTE: I was surprised I could not easily find an answer to this!
1
vote
1answer
58 views

How to send a mail when someone remote connects to my server

I would like my server to send a mail to me when someone connects remotely over ssh to my server. who only gives me back the Username, TerminalID and Date. I cannot use only that, I need to check ...
4
votes
3answers
309 views

Open a directory and let it update itself using “tail -f”

Similar to my last question: Open a text file and let it update itself; is there a way I could do the same but for a folder instead? As I have a log folder, can I use tail -f with a folder? i.e. $ ...
1
vote
1answer
35 views

Find service by network activity

I see a strange DNS request at tcpdump and I want to find service which is originated from. I've already tried to find it with different monitoring tools but still no luck. Is there any proven ...
6
votes
2answers
82 views

Operations only on complete files [duplicate]

I have machine on which the files are uploaded by ftp. From this machine I would like to run cronjob and scp/rsync (simply copy them) to different machine in the same network. The problem is I don't ...
9
votes
3answers
839 views

Open a text file and let it update itself

How can I open a text file and let it update itself? Similar to the way top works. I want to open a log file and watch it update itself on the fly. I have just tried: $ tail error.log But just ...
2
votes
0answers
23 views

API Monitoring and Hooking

I am currently reading the "Malware Analyst's Cookbook and DVD". There is a chapter "Dynamic Analysis" and there are also some recipes about hooking and monitoring API calls of process but it is for ...
2
votes
3answers
159 views

Monitor history of USB flash drives

I have to setup a monitoring system for our internet server, to monitor which USB Flash Drives (Pen Drives) are mounted and unmounted and when.(This is to avoid misuse, and to capture which ...
0
votes
0answers
33 views

Issues with net-SNMP . MRTG not generating graph to monitor network bandwidth

I am monitoring network bandwidth for my servers using MRTG . But suddenly can see graphs are not generated for one of the Linux servers running on CentOS 5.5 . SNMPD service is running on the server. ...
0
votes
1answer
29 views

CPU and Memory Usage

I want to monitor the CPU and Memory usage for long hours and find the average of that on a Linux server. Can anybody help me to monitor it using a script. I want to know the readings for around ...
0
votes
3answers
68 views

Recommendations for Free Linux monitoring tools [closed]

My Linux version is Linux 3.4.76-65.111.amzn1.x86_64 x86_64. It's AWS. These days I'm suffering from the absence of monitoring tools, processes sometimes die without knowing it. My need is simple. ...
2
votes
2answers
122 views

Is there a way to get “top” to run exactly once and exit?

I find the output of the shell command top to be a simple and familiar way to get a rough idea of the health of a machine. I'd like to serve top's output (or something very similar to it) from a tiny ...
1
vote
1answer
136 views

Real vs Actual memory in Xymon/Hobbit

What is the difference between real and actual memory usage in xymon ?
3
votes
1answer
82 views

PBS equivalent of 'top' command: avoid running 'qstat' repeatedly

When I run several jobs on a head node, I like to monitor the progress using the command top. However, when I'm using PBS to run several jobs on a cluster, top will of course not show these jobs, and ...
5
votes
2answers
33 views

How to monitor Memory utilization of the single process?

How to monitor Memory and CPU usage of the single process by program/executable name(not PID);
4
votes
3answers
219 views

Lots of traffic between servers - where does it come from?

We have ten servers in two groups servers, and there is a lot of traffic between those groups - too much we think. We know this because of stats of our provider, but don't know how this traffic is ...
1
vote
2answers
48 views

How to see what processes WERE running?

Is there a chance to get the processes that RAN before my system crash? EDIT What I really want is to see the past processes. My system crashed & I want to know if a specific process was the ...
1
vote
2answers
70 views

Monitor Disk Usage per directory/file

I have a huge java app that drives my disk crazy. As I think that this issue is only due to 3-5 small things I would like to monitor what is written to/read from disk within an hour sorted by size and ...
2
votes
0answers
40 views

monitor running services and ports

What is the best way to monitor running services and ports on a system with systemd? My intent is to alert me, when a service stops running or if a new service is listening on a new port (possibly a ...
3
votes
1answer
57 views

Monitor outgoing web requests as they’re happening

I want to see a list of all outgoing HTTP requests from my desktop. I think it should be possible to monitor HTTPS hostnames as well for local clients using Server Name Indication (SNI). OS X has a ...
1
vote
1answer
140 views

How to monitor outgoing http requests per user?

I'd like to know how to monitor users' outgoing http requests. I've got a FreeBSD 8.1 server, and I would like to get an output like this for http requests: source MAC address or IP address → ...
2
votes
1answer
27 views

Track HDD access?

How can I track HDD access? Not in a monitoring sense of MB/s like iotop. My internal mass storage HDD gets permanently woken up and I want to find the evil process with an absolute list of accesses.
1
vote
0answers
194 views

tcpdump not capturing http or tcp/ssl traffic

I have been trying to learn tcpdump and I am using this command to attempt to monitor my network: sudo tcpdump -I -i en1 But this gives me a bunch of stuff I don't want, so I used this version to ...
3
votes
1answer
81 views

Monitoring filesystem activity

Say, I have a program, and I want to monitor its filesystem activity (what files/directories are created/modified/deleted etc.) This program may be capable of spawning further processes, and thus, I ...
0
votes
1answer
40 views

get cpu by user

Working with monit I need create an alert that get cpu usage of system users, so: top -b -n 1 -u user1 | awk 'NR>7 { sum += $9; } END { print sum; }' seems a good solution but I'm not sure about ...
4
votes
3answers
149 views

how to determine how many times pid_max wrapped?

Is it even possible to know that? may be some kind of tests are required to be performed in order to find that information? My system, just after I login, seem to have already wrapped the max_pid, so ...
9
votes
2answers
304 views

Internet connection drop alert

What software is there that will play an alert (PC speaker) when there isn't any internet connectivity for 5 minutes? My switch/router seems to disconnect every few days, and I want to reset it when ...
2
votes
1answer
59 views

how to know the use of my applications?

I want to know how long my programs have been used. For example if I use my web browser I want to know the start and the close time to obtain a total of use time. Basically I want to know when an ...
1
vote
0answers
73 views

SystemTap simple demo fails

Started learning SystemTap using RedHat's manual. Here is the example I'm trying to run. While executing stap open.stp I got the error: [root@ror6ax ~]# stap open.stp semantic error: while resolving ...
1
vote
2answers
37 views

List of files accessed by application

I want to install propertiary AMD driver but I would also like to know which files were created/changed by installer. Is there some application which can observe (probably by inotify) which files were ...
1
vote
1answer
139 views

xentop gives static info about memory usage

I am using CentOS 6.5 and Xen 4.2.4-30 xentop does not change MEM(%) at all. NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO ...
2
votes
2answers
73 views

Is there an auto refreshing graphical text file reader?

So, is there a graphical text reader or editor that automatically refreshes its text if the file is completely changed outside of it? I found that gedit detects file changes but refresh is not ...
1
vote
0answers
99 views

Monitoring Disk Latency

We have quite a few physical machines in our environment, yet we have no trending data over a period of time for disk latency statistics. We can easily run the standard iostat commands to see what the ...
1
vote
1answer
81 views

is there an equivalent to systat in Linux?

Is there an equivalent to the amazing systat command in Linux-based operating systems? For those who don't know about it, the BSD's systat command is just amazing. It displays live graphs of network ...
3
votes
1answer
336 views

simple script for monitoring a mailserver

I would like to use a simple bash script (python would be second best) to monitor regularly (hourly) if my mailserver is online and operating. I know that there are dedicated solutions for this task ...
4
votes
3answers
234 views

Needed: A simple way to remotely monitor a process on my server

I have a cloud-based server running a Java process (a POP/SMTP server called davmail, details don't really matter). What is the simplest way to monitor the status of that Java process remotely? I ...
2
votes
2answers
295 views

How to get CPU Percentage as a Counter?

I would like to monitor total CPU utilization percentage as a counter. The reason I would like it as a counter is that data won't be lost between samples (and I can have the graphing side calculate ...
2
votes
1answer
224 views

inotifywait not working when folder is deleted and re-created

I am trying to use inotifywait to monitor a folder: inotifywait -m -r /home/oshiro/Desktop/work_folder The command works and if I create files in that folder, all seems to work correctly. While ...
3
votes
2answers
101 views

Monitor when read/write on metadata or mmaped files hit the disk

On a server hosting a wide range of websites, I often see IO becoming a bottleneck without being able to identify the processes responsible of IO operations with tools such as iotop, iostat or sar. I ...
0
votes
2answers
132 views

System too slow [closed]

My linux system is responding very slowly.I should wait to get the result of my command. How can i investigate to know the problem of his behavior?
0
votes
0answers
48 views

Tracking user CPU hours

I am looking to work out which users on our system are using the most CPU resources. to check this? So I would like to find out: CPU-hours this month, (and % of total) CPU hours this week, (and % ...
3
votes
1answer
385 views

Monitoring Linux user activities and auditing them

var/log/secure provides us below information : Mar 20 08:07:07 testing sshd[29749]: Accepted password for oracle from 10.51.1.12 port 49239 ssh2 Mar 20 08:07:07 testing sshd[29749]: ...
2
votes
1answer
50 views

How might I log my Internet traffic, grouped by IP address/hostname, port, etc?

While I'm going to be switching to a slightly saner plan soon, being stuck on a 5GB monthly bandwidth cap has made me very data-conscious, and I'm looking for a way to log my Internet usage in such a ...
2
votes
1answer
1k views

What is the difference in CPU utilization between 'ps aux' and 'ps -ef'?

I use Ubuntu 12.04.1 Linux. I see a difference between %CPU and C output format of ps command for a process. It is not clearly noted in the ps man page. Man pages says: CODE HEADER ...