Questions tagged [monitoring]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Argus stops capturing data after a few hours

I am using Argus to capture some network flow information and while the service doesn't die, it appears to stop capturing flow information after a few hours. The service is running: argus -J It is ...
0
votes
2answers
29 views

How do I extract current process CPU usage by path/command and print it to the console

I'd like to get current process CPU/memory usage% by process name/path and print it to the console. The command should output one number and not provide an ongoing data flow like ps. ps -p PID doesn'...
3
votes
1answer
21 views

libvirt kvm cpu/memory stats collection

We are running virtual machines in kvm and i am trying to collect metrics and send it to influxdb + grafana for graphing. I can see CPU stats using virsh but its in time in second spend, how do i ...
-2
votes
0answers
13 views

Linux- Script to monitor directory and zip any new files saved [duplicate]

I would like to create a script that monitors a certain directory for any new files saved to it. I also need it to zip those new files when they are saved to that directory. I am not very familiar ...
0
votes
1answer
19 views

Process three lines together and repeat the process when delimiter is found until end of line

We will have a scenario where we check the status of a cluster and if any issues are found, we want to take 3 attributes of the output and send the information to an event management system. This is ...
0
votes
0answers
18 views

Where can I trace the memory usage of a process [duplicate]

I want to keep tracing the memory usage of a process. I know top can show us the memory usage of a process but it is a percentage, whereas I want to know the exact number, such as 10MB. int main() { ...
0
votes
0answers
6 views

filter data going through nload ? Purpose : measure bandwidth consumption of a gateway?

I have a LinuxBox that has two functions : an internet gateway and a mail server. With nload I can monitor the traffic on the internet (WAN) interface, but that shows me both the gateway consumption ...
0
votes
0answers
17 views

Collect information on TCP retransmissions

I'm collection monitoring information in my PC. Right now, I want to collect the total number of TCP retransmissions, from the moment I turn on the interface (similar to collect information from files ...
0
votes
0answers
32 views

script runs under my user but fails under root and cron

Using some google and questions, I made this bash script if [[ $(curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s https://check.torproject.org/ | cat | grep -m 1 Congratulations | ...
0
votes
0answers
12 views

How to setup Simple Event Correlator (SEC) to analyse a multi-line input as a single entry

I have this rule that feeds the result of an external program back to SEC every 5 minutes, but the output is multi-line. My current SEC rules handle each line of the output separately, and I need ...
0
votes
2answers
18 views

Monitoring non-filesystem events similarly to inotify?

I know how to use inotify to monitor filesystem events under linux. I'm wondering if there is any utility that is similar to inotify which can be used to monitor non-filesystem events. For example, I'...
0
votes
1answer
73 views

What IP went down?

currently I have a problem. I have a switch and have no idea, what port is connected to what PoE device. Now I'd like to solve this issue. My idea is to disable a PoE port on the switch and wait what ...
0
votes
0answers
23 views

Getting trouble installing HPjmeter

I'm trying to install HPjmeter console on centos 7 desktop in order to monitor my web app GC status . I've follwed all the steps mentioned on the official user guide but when executing this command ...
2
votes
1answer
29 views

auditctl - logging the CPU or identifier of pthread that invoked the system call

auditctl is a great utility for monitoring many things, such as executed system calls. I would ideally like to know either the CPU or the POSIX thread that instantiated each recorded system call. In ...
9
votes
1answer
135 views

List of busiest files

I'm looking for a tool which will list open files sorted by amount of activity in the file. So lsof does not do the job (unless I'm overlooking a way to use lsof). Ideally, the tool should work like ...
0
votes
1answer
126 views

Why does the new Linux “pressure stall information” for IO not show as 100%?

I noticed a shiny new line in atop (on my Fedora 30 install). man atop PSI - Pressure Stall Information. This line contains three percentages per category: average pressure percentage ...
1
vote
1answer
45 views

Wanted: GUI interface to show status of services on many servers

We have 763 Red Hat 7.2 Linux machines with systemd, systemctl and the presto service: systemctl status presto.service ● presto.service - Perforce Server Loaded: loaded (/etc/systemd/system/...
0
votes
0answers
30 views

I am trying to find a spyware agent like “SpyAgent” to monitor users on a Linux system

I am trying to see if I can find a user monitoring system for Linux. Technically I am looking for spyware that I can install on my system so when I let my little nephew use my laptop I know he isn't ...
1
vote
0answers
41 views

VAAPI usage monitoring

I have Intel Core-i7 8650U processor. I transcode video with ffmpeg. I take attempts to accelerate it. Now I use VAAPI codecs in ffmpeg (h264_vaapi) and vaapi rescaling (scale_vaapi) in filters. And ...
1
vote
1answer
113 views

How to set email alert for disk space usage for ubuntu instance on AWS?

I have an ubuntu instance on AWS and I want an email when 80% of disk space is consumed. I have checked the cloud watch but there is no such option to monitor disk space. There is only one option ...
-2
votes
1answer
33 views

Linux tool to monitor network performance

I need some suggestions about monitoring various network statistics (like RTT, Packet loss, Jitter, packet retransmission) using linux command line. I have tried "SS" command but SS command gives ...
1
vote
1answer
26 views

Monitor http server

I want to check the web server health status. If did get http-response in 2 minutes then the server should restart. I am using the below command to check the status - curl -s -w "%{time_total}\n" -o /...
0
votes
1answer
54 views

How to debug/trace incoming SFTP conversations?

My application (JetBrains CLion) connects to my remote server by SFTP and places files to there. Unfortunately, files are appearing filled with zero bytes. I want to trace, what goes wrong. Can I run ...
0
votes
1answer
40 views

Restart systemd service if no log produced in timeout

Is it possible to monitor systemd service (unit), if it produces logs, and if no log is produced in (lets say 5 minutes), restart the service?
1
vote
1answer
29 views

How to get CPU usage in MySQL per user? [closed]

I want to know is there anyway to get CPU usage per user in MySQL? for example I have 3 different users 'user1', 'user2' and 'user3'. I want to get the average/real time memory usage and CPU usage of ...
0
votes
1answer
21 views

Pipe viewer logging

Using the pipe viewer (pv) utility, I can visually monitor the data flow going through a pipe. I would however like to be able to log the data flow in a file instead of dynamically viewing it in a ...
0
votes
0answers
26 views

Monitoring data flow to /dev/null for a given process

I have a process which reads out data from a custom PCI-e device using a custom driver. The program takes a file descriptor as an argument and writes the raw data to it. I would like to test the data ...
0
votes
2answers
152 views

Monitor process pid for change

I have a service that is always supposed to be running. I’d like to know when the service ever stops or gets restarted. I’ve thought about referencing the service’s PID. If it gets restarted, it ...
0
votes
1answer
595 views

How to record only the header info when using `tcpdump`

When running the following command tcpdump -i deviceName 'host 1.2.3.4' -q -w /mypath/dump.pcap the dump file contains a huge amount of data because there's a lot of traffic. However, I only need ...
0
votes
0answers
34 views

how to control process that killed

we want to know what are the options to control processes , for example /opt/important_script/gate_machine.pl is a script that must be up and running and in case from some reason script killed , ...
0
votes
1answer
27 views

Monitoring solution wihtout client-install

I already wasted days to look for a very minimalist (cpu/ram/ping/ssh/disks) monitoring tools that discover hosts by itself instead of installing a client application on each host. (I can accept ...
1
vote
0answers
23 views

System statistics from different utilities don't agree

I am running an Aliyun instance with 8 vCPUs to do some high performance computing, so I want to make full use of the machine. In other words, extremely high CPU usage is not a problem; instead it is ...
0
votes
1answer
117 views

Print the output of an interactive command in a shell script

I am writing a CGI script to monitor the system state, so the information must be outputted to the terminal with echo or cat. The problem is, systat is an interactive command, so it doesn't print ...
0
votes
0answers
8 views

How increate KsysGuard exit process grayed out timeout?

When a process exits, ksysguard make it gray for just a second before removing it from the process list. I would like for it to keep showing for the next 10 minutes, so I can easily see old processes ...
2
votes
0answers
41 views

Run Command When IO Load Average is Low?

I have a bash script which calls an external program I cannot modify. The first stage of this program uses high IO and the second stage uses almost no IO, instead it uses a lot of CPU, it does not ...
2
votes
1answer
57 views

What makes my disk spin? [duplicate]

TL;DR Is there a way under Linux to know which file access caused an hard disk to spin up? Full story My laptop has a NVME disk, which contains the operating system and my home dir, and a spinning ...
0
votes
0answers
13 views

How to use the 2nd monitor to only show textmode vt1 with critical log info?

I have one graphics card with 2 OUTPUT ports: VGA and HDMI and 2 led monitors. On the 1st monitor, the HDMI one, I use the graphical environment (Unity/KDE/Gnome etc). Using NVidiaSettings, I can ...
0
votes
1answer
225 views

Record and later check running services

In a presentation, I saw a command line tool mentioned that is able to record the running services (and the listening ports opened by them) as a baseline and later check against that baseline and ...
0
votes
0answers
31 views

monitoring hardware

I have a laptop with a fingerprint reader that is currently doesn't seem to be supported by linux (integrated in lenovo yoga 920). But I am quite curious if it is at all possible for me to listen to ...
0
votes
1answer
138 views

How to monitor cron maintenance scripts?

My home server runs a couple of shell scripts regularly for maintenance tasks - mostly backup, but also other stuff. I would like to be alerted in case anything fails but also keep a log of when it ...
0
votes
0answers
31 views

SER2NET “Tee or Wedge”

I am successfully using SER2NET on a Raspberry Pi to translate RS-232 data to Ethernet. But I would like to "watch" the data coming from the serial port for a certain string, and if there is a match, ...
0
votes
1answer
130 views

Monitor traffic by ip

I have machines with one interface eth0 with multiple different IP addresses attached to it (255) to be exact, interfaces look like this eth0:1, eth0:2 ...eth0:254. I want to monitor the traffic for ...
6
votes
1answer
121 views

Monitoring CPU% of Tabs in Firefox

Sometimes, when I have numerous tabs open in Firefox, one of those tabs will start consuming a lot of CPU%, and I want to know which tab is the culprit. Doing this is a very manual process for which I'...
1
vote
0answers
75 views

Best way to get precise measure max memory usage and cpu time [duplicate]

I need to test huge amount of applications that will run mostly about 100ms to 1s(pretty fast). I need to measure max memory usage and cpu time on each of them. because they fast I can't just check ...
0
votes
1answer
56 views

Is it possible to check the connectivity between 2 linux machines by pinging from a third machine?

What is the ping and traceroute command option to use in order to check the connectivity between 2 machines (machine A and machine B) using my machine (machine C) ? How do I specify the source machine ...
1
vote
0answers
30 views

can dstat sum network and disk activity?

i'm setting up a simple perf log using dstat as a systemd daemon that dumps to a csv file. i got it working but noticed that it only records what appears to be moving averages over the given interval. ...
2
votes
1answer
424 views

Send sar series to grafana [closed]

sar of sysstat package produces a lot of useful information about system usage regarding various resources; My question (since after a brief query I was unable to find a useful suggestion / solution) ...
1
vote
1answer
158 views

Aggregate usage stats by user

I'd like to look at the aggregated usage information at a user level. Basically hoping for a tool similar to htop but with the option to sum up all the processes for a user, for every user.
1
vote
1answer
617 views

How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?

OK, I've been googling for hours so I obviously have not been able to understand the answers to the various questions that have already been asked about this subject. I am hoping that, by asking the ...
3
votes
1answer
123 views

Get latest output of a running command

I have a command running for a long time, which I don't want to disturb. However, I would like to keep check on the process (most of the time remotely). I am constantly monitoring the process via ...