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

1
vote
1answer
33 views

Equivalent command for ``time`` for memory usage?

by using time we can easily get the information about how long a program run, I was wondering if there is any equivalent command I can use for memory usages? Like how many memory are allocated for ...
1
vote
1answer
1k views

SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)

I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class ...
1
vote
0answers
18 views

run a certain file (e.g. a .py) when a certain image, .wav or excel file get opened [duplicate]

Recently, me and my friend have purchased a Palm Vein Scanner. the goal was using it in a mini-project as a new door lock system. we are connecting it to a Raspberry Pi to run the software on it. ...
0
votes
1answer
25 views

How to monitor bunch of machines for CPU usage from another machine?

I have couple of machines as shown below which are running Ubuntu 12.04 and I need to find out the process name along with its pid whose CPU usage is greater than 70%. Below are the machines as an ...
3
votes
1answer
1k views

Accounting for /proc/net/dev reported traffic

I noticed that according to /proc/net/dev I am constantly receiving around 6Kb/s on my wireless usb interface. But I can't account for anything even close to that with the individual connections that ...
0
votes
0answers
11 views

Ejabberd monitoring in ZenOSS problem?

I have installed a Ejabberd chat server in server with IP 192.168.1.52 and also i have installed SNMP version 3 at this server. Now i want to monitor it with ZenOSS in server with IP address ...
0
votes
1answer
21 views

CPU time that accton (psacct) records - recorded time relationship between parent and children processes

I've had 'accton' (in package psacct-6.3.2-63.el6_3.3.x86_64) turned on as I want to be able to report on a particular process (so I've written a script that will take the psacct file and get the ...
2
votes
1answer
2k 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 ...
0
votes
0answers
23 views

Why does reading from a symlink to network location cause local disk activity?

I am running RHEL 6.4 and have a symbolic link in my home directory to a large file stored elsewhere on a network. My home directory is a network location as well. I've noticed that when I run a ...
3
votes
1answer
551 views

Network bandwidth measurement on Solaris

I want to install pathtest or a program like it in a Sparc server running solaris 10. The purpose is to make a speedtest server to my remote sites. It is mentioned in pathtest FAQ that it only ...
2
votes
3answers
68 views

Is it possible to detect when a file has been downloaded?

We have a server where another script sFTPs and downloads files everyday. Question: Is it possible to detect that the file was downloaded and then for me to automatically archive the file after they ...
0
votes
0answers
49 views

Icinga2 node wizard does not set address

We have successfully installed Icinga2 on a master server and on several client nodes. We used the new icinga2 node wizard to setup first the master and then the nodes. After the process is ...
0
votes
0answers
29 views

LAMP CentOS page/folder Outbound Inbound bandwidth monitor

I have a site, the server provide only allow 2000GB/month ($0.02/GB extra). I have monitor the bandwidth in my control panel, every day, i have about 12GB Inbound, but 100GB+ Outbound, a number very ...
0
votes
2answers
2k views

Console CPU utilisation chart

I need to monitor CPU and network utilisation from a terminal. For network traffic, I have found the perfect tool: slurm. It gives me a moving chart. It gives me an nCurses-like UI I can use from a ...
3
votes
1answer
60 views

Alternative to iotop for non-root user without sudo privileges

I'm looking for an alternative to iotop. Here's my situation: I want to find out if a program is accessing the hard drive a lot while running. iotop requires root/sudo privileges. My account is on ...
2
votes
3answers
143 views

CPU and Memory usage monitoring for a single process

I need to monitor the CPU and Memory usage for a single process in an AIX server. The program runs 3 times a day. I need to find the way to capture statistics within some time intervals, lets say ...
0
votes
1answer
40 views

to check the url is live

I have written a script to check if our three URLs are up else echo down.now the problem is even if the URLs are down in that script I get the message URLs are up In the code I have greped 302 ...
0
votes
2answers
122 views

Constantly check if file is modified bash

I have a file called file1 I want in a script, whenever there is a change in it, do something, a beep sound actually. How do I do that ¿? Thank you in advance
1
vote
2answers
76 views

React to incoming files in a directory on HP-UX

How can I achieve this logic using a script: Monitor new incoming files in a directory. If files are not received in the directory for 3 hours or if the received file is empty then do something. ...
1
vote
1answer
47 views

Cron job — If computer inactive for x minutes turn wifi off

I would like to have an alias command in my .bashrc that could be ran at startup. That states: If computer is inactive for X minutes then turn off wifi. How would I do that? I am currently using ...
0
votes
2answers
8k views

CPU usage monitoring in AIX servers

In order to monitor the CPU usage in an AIX server I'm using the following script that is executed every 10 mins. lparstat 2 10 > cpu usage=$(tail -10 cpu | awk 'BEGIN {sum=0;} {sum+=$4} END{print ...
1
vote
0answers
44 views

Need a script to send an email when an input has not changed for more that 30 minutes

I need a linux scrip that will send an sms when there is an input change and it has not gone to the initial state after 30 minutes, I have the following so far, but, I am sure there are few things ...
12
votes
9answers
6k 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 ...
26
votes
5answers
16k views

How to 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
26 views

Start a service on a network request (socket activation)

I have a program that under normal activation listens on some port. I don't want the program running continuously. Is there a "quick and dirty" way to wrap the application in a shell script or ...
2
votes
0answers
17 views

Sending SMS in Linux? [duplicate]

How can we send a SMS message from a Linux server to mobile for notifying specific process status saying when a process goes down?
3
votes
2answers
445 views

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

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 ...
1
vote
1answer
103 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
0answers
37 views

monitor a process by matching the full cmdline

I'm looking for a software that can monitor a process (specified as a partial string/regexp match (e.g. grepping) in its full command-line) in terms of cpu and memory usage. If any of those processes ...
1
vote
2answers
191 views

how does blktrace work?

I am trying to understand the Linux block layer so I am writing a blog about it: http://www.linuxintro.org/wiki/blktrAce. When calling blktrace like this: blktrace -d /dev/sdg -o - | blkparse -i - ...
9
votes
2answers
171 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 ...
3
votes
2answers
293 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 ...
0
votes
1answer
52 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
53 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 ...
8
votes
4answers
641 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 ...
1
vote
2answers
255 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
2k 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
286 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
101 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
332 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
44 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
84 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 ...
10
votes
3answers
869 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
36 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
254 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 ...
5
votes
2answers
4k views

Monitor mode wifi only seeing broadcast packets

I have pretty much exhausted every link I have found on google regarding this topic, and I'd like some of the most experienced eyes on the problem, because something obscure must be going on. Systems ...
0
votes
1answer
431 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 ...
0
votes
0answers
43 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. ...