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
2answers
81 views

how to execute a script everytime any USB get mounted

I use a script that writes all mountpoints of my devices to a textfile using df. How can I execute my script everytime any device (especially USB) is mounted? script to execute: #!/bin/bash # save ...
0
votes
1answer
36 views

CentOS 6 apcupsd Trouble Shooting

I'm having issues with the recommended UPS monitoring software apcupsd. It installed ok but when I run it and check the error messages it is getting spammed with all these messages and doesn't seem ...
2
votes
1answer
51 views

Is it possible to track bash commands in real time?

I'd like to know if I can track commands entered by user in a bash shell, in real time. What I'm trying to do is something similar to thefuck, but I need to prompt the user as and when he enters new ...
3
votes
3answers
86 views

How to restart (or reset) a running process in linux

I have two Linux systems communicating over sockets (Desktop and ARM-based development board). I want to restart (or reset) my client application (running on a development board) when server sends a ...
1
vote
0answers
22 views

FreeBSD: Control operational and administrative status of virtual interface

I'm looking for a way to freely control the administrative and operational status of a virtual interface as seen by a snmp get requests: $ snmptable -c public -v 2c myserver iftable SNMP table: ...
0
votes
1answer
44 views

How can I track commands executed in a terminal ( without bash_history )

I'm writing a program that tracks user activities, and basically tries to automate things that can be. I'm currently trying to monitor programs that user uses often from command line. But just ...
1
vote
0answers
14 views

Sample monitoring of ZFS using mrtg

Was wondering if anyone has a quick and simple mrtg hack to monitor a ZFS file system, thought it would be wise to ask before writing one up myself....
2
votes
1answer
50 views

How to monitor the opening and closing of files?

I'm writing an AI personal assistant. One part of the software is a monitor daemon. A small process that monitor's user's active windows. I'm using python( with libwnck and psutils for obtaining info ...
3
votes
2answers
55 views

What is stopping our UDP packets (how does it know the route is down)?

We have a server (camera) sending RTSP video packets via UDP. At a customer site it travels over several hops, one of which may be an unreliable WiFi link that drops the odd packet or five. Usually ...
4
votes
3answers
339 views

On a Linux system, see how busy is file system

I want to know of a command that will show me how (currently) busy is the file system. I'm assuming there exists such a command that will show me this. With such command, are there specific arguments ...
0
votes
4answers
65 views

How to track/log commands executed on a shell?

Can commands be written to a logfile before they were executed in any shells? I know there is a patch for ssh to log all commands from ssh sessions, but i want to log even commands executed from a ...
3
votes
3answers
40 views

Is there a way of listing all the instances when a particular file was modified/edited?

I currently have a file abc.txt. I am curious to know if it is possible to see all the instances when this file was edited, from the date it was created? Q: How can I make it possible [if I would ...
0
votes
0answers
11 views

Measure data submited to a blocked ip adress in iptables

With: sudo iptables -A INPUT -p all -d $ip -j DROP One can drop all packets submitted to an ip adress (or a range of ip adresses). This method is useful if you want to prevent applications from ...
1
vote
0answers
19 views

Passing a parameter to a dstat plugin

I wrote a simple plugin (dstat_externalBackup.py) for dstat to monitor the filesystem free space and placed it in /usr/share/dstat and it works as intended. € dstat --externalBackup 3600 extern free ...
2
votes
2answers
57 views

How can I start a file-processing daemon? [closed]

How can I run a script-based tool which will process files continuously downloaded to given directory as they arrive? I'd like to minimize delay (~1 second is OK), script can have own infinite loop. ...
1
vote
0answers
15 views

Is the perfmon2 tool obsolete due to the same functionality being included in the current Linux kernel?

I was having some issues with the PAPI tool and multiplex and this answer by the PAPI creator led me to check out perfmon2: http://lists.eecs.utk.edu/pipermail/ptools-perfapi/2008-April/000900.html ...
0
votes
1answer
35 views

How many interrupts and context switches good for the server?

Munin has chart 'interrupts and context switches on the system'. As far as this is a monitoring tool I assume these values are important for the server performance. So, the question is: how can I ...
1
vote
1answer
37 views

Monitor a hard disk partition

I need to monitor a partition on a CentOS server (/, to be exact) and would like to be alerted when it is full or full to a certain percentage. What is a simple way (using built-in tools) to ...
1
vote
2answers
38 views

Log and plot temperature-time curve over given time intervall

How can I log and plot a graph of all available hardware temperatures (CPU, SSD, etc). CPU load over a given time (say a day or a week) in linux? The CPU is i7 haswell if this matters, I have ...
1
vote
2answers
143 views

In Linux 'top' command, is there any way to keep track of values?

I'm using the Linux "top" command to monitor %CPU of particular process. As the values keep on changing every few seconds, is there any way to keep track of values in a separate file or as a graphical ...
1
vote
1answer
34 views

Does orca + RICHPse work on Solaris Containers or local zones?

I have just attempted to get RICHPse version 3.4 running on a Solaris version 10 Sun M5000. It seems to run on the global zone but not on the local zones. On the local zones RICHPse just fails ...
1
vote
0answers
41 views

How can I get read/write instant speed of a Hard Drive using /proc/diskstats data?

I know that the proc/diskstats file presents these data columns: 1 - major number 2 - minor mumber 3 - device name 4 - reads completed successfully 5 - reads merged 6 - sectors read 7 - time spent ...
0
votes
1answer
56 views

How does the proc/diskstats work to present that values? And for proc/stat and meminfo?

I am trying to get the diskstats data by same way that the file does. Is there any way to reach that values without reading that file? How the values are placed there? Is there any ".c" file that ...
2
votes
1answer
62 views

How to track down the source of I/O spikes?

I am using Linux as a desktop, and keep getting seemingly random I/O Spikes. The machine becomes unusably slow. At first I thought it was just that I don't have enough memory. But looking at the ...
1
vote
0answers
42 views

Program like vnStat that filters for only external (Internet) traffic

I've been using vnStat to monitor the ethernet interface on a Linux computer, but found that it includes all local traffic. I do many file transfers from within the subnet which far exceeds the ...
1
vote
0answers
79 views

Why doesn't monit like this syntax

I am trying to setup monit for my debian server. I have a main monitrc file in /etc/monit which at the end has include /etc/monit/conf.d/*. In conf.d I have two files for my apache and mysql servers: ...
2
votes
0answers
50 views

How can I monitor the interactions of an application with dbus?

I think the title says it all. I have a set of applications, I want to montior any and all interactions of the applications with dbus. The things I've played with don't seem to have a way of focusing ...
0
votes
1answer
39 views

Create and report system acivity

I have a set-up a server running several applications. There will be multiple people using these applications in a community situation. I am looking for a way to track and report changes made to ...
1
vote
1answer
36 views

Total data usage history with SNMP

I am working on a project to monitor the network devices by the help of SNMP and MRTG, RRDTool. As part of bandwidth monitoring, I can be able to get the maximum used bandwidth per time resolution. ...
1
vote
0answers
41 views

mrtg configuration

I installed mrtg and want add CPU, Memory graphs of local machine (not router) . Traffic graphs page working properly.Tried to find tutorial how to do that but: I do not have mrtg dir on /etc to ...
1
vote
1answer
54 views

Monitoring tool without web interface

I need to monitor a Linux server. I'm searching for a monitoring tool able to store system information (CPU, RAM disks usage, Apache and Postfix status, etc.) throughout the day and send an email ...
3
votes
1answer
132 views

How to find which process is currently writing to the disk?

For some unknown reason there is no space left on my /, even 5 minutes after removing 300 MBs of junk packages, there is no space left again. So I've come to conclusion that there is some process that ...
0
votes
2answers
21 views

file creation and acces monitoring app [duplicate]

I remember long time ago I had some antivirus on windows which had wile accesses monitor, and could tell you if any process accesses a file.I need to monitor every file in my home folder(or any other) ...
3
votes
2answers
67 views

How does one determine when a process or machine is IO bound?

I have a node.js process which writes to many different sqlite databases. Sqlite can handle only one concurrent write per database, which is fine since there will be only one write per database at a ...
2
votes
1answer
106 views

monitor multiple pids with top

I want to monitor memory usage for several processes and came up with a command like this: ps aux |grep -e postgres -e unicorn -e nginx|cut -d' ' -f2|for i in $(xargs); do echo $i; done 16112 16113 ...
1
vote
1answer
73 views

How can I plot disk io per process over time

I would like to analyze and visualize the disk through put of certain processes over time to see how much data is written to disk and to see at which times a process does not utilize the whole disk ...
2
votes
1answer
106 views

Linux: monitor my own internet usage page by page

I have a monthly broadband subscription which rolls over on the 23rd of each month. I had arrived near the end of my usage so I was carefully checking that I didn't go over my limit - they crucify you ...
0
votes
0answers
15 views

logging file system events (like read, write, access file/directory) [duplicate]

I want to get file system events on my arch linux local host, and don't get how to make it. I want to tail throw the logs of file system events to see what processes making changes to my system in ...
4
votes
3answers
574 views

Run command automatically when files are copied into a directory

I have two folders called: A and B, in different paths on the same computer. When I add any new file(s) into folder A, I want to copy it to folder B automatically. My folders: /auto/std1/nat1/A ...
-1
votes
1answer
64 views

Alternative for psutil for ARM processors (raspberry pi) and python3

As I am unable to install psutil to work on raspberry pi on python3, I am looking for any alternative (or a proper way to install it). What I want is to be able to see what's the status of the ...
0
votes
1answer
27 views

Historical bandwidth data in a console? (save/load statistics)

So, I found that nload and iftop displays the amount of data that passed and how fast. Now, is there anything like those that can save/load statistics? I want to measure the amount of data I download ...
1
vote
0answers
35 views

loggedfs crashes system with “access: Transport endpoint is not connected”

I'm trying to use loggedfs to monitor my system changes, and it works great for some time, but then, eventually, it crashes and my fish shell starting to output "access: Transport endpoint is not ...
0
votes
0answers
18 views

Cycle http requests monitor

How I can monitor cycle http requests by linux and store IP which scan my site? I need to find all scanners with copies of my site content. example. If IP 192.168.1.1 open index.php every 1 minute, - ...
0
votes
1answer
34 views

Solaris prstat - definition of “recent” time used in percentages

The man page for prstat (on Solaris 10 in my case) notes that that CPU % output is the "percentage of recent CPU time". I am trying to understand in more depth what "recent" means in this context - is ...
1
vote
1answer
74 views

How much can a bash script interact with a running web browser? [closed]

Here is what I have so far: initiate when a web browser is running download all content from current webpage and scan for "content of interest" output summary/details of said "content of interest" ...
0
votes
0answers
19 views

iotop layout help

my iotop is displaying some columns really closely, how do I space them out? Total DISK READ: 0.00 B/s | Total DISK WRITE: 3.57 K/s PID PRIO USER DISK READ DISK WRITE SWAPIN IO> ...
2
votes
1answer
66 views

How to record network throughput per port for long period of time

I have come across vnstat recently, and am enjoying it's simplicity, low resource usage, and its ability to record network history long term. However, I am looking for a similar tool (for long term ...
2
votes
1answer
117 views

How can I find the CPU resource utilization of a process and all its children [duplicate]

If I have a process that spawns child processes, is there a good way to get a single number representing the combined CPU use of that process and its children? i.e is there a simple shell command ...
1
vote
0answers
133 views

Monitor the creation of new processes

I want to get a notification whenever a new process is created. I've tried to use inotify on /proc, but it didn't report any event even though a new directory appeared in /proc. I could list the ...
0
votes
0answers
10 views

dns dsc auto refresh

I installed the DNS traffic monitoring tool DSC in the centos6.4, but the DSC Apache page is static, how to set up to automatically refresh? For example, each minute refresh time