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

0
votes
0answers
21 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
12 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 ...
0
votes
0answers
19 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
25 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
22 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
30 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
27 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
26 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
17 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
20 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
97 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
132 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
33 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
26 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
15 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
85 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
7 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
34 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
49 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
11 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
28 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
79 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
24 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
105 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
96 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
61 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
54 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
25 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
323 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
115 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
365 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
101 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 ...
5
votes
1answer
169 views

Monitor network traffic of a process and its entire subprocesses tree

I want to know the amount of the network traffic (inbound and outbound) in a time period, generated a specific process and all subprocesses that it spawns. I have developed a software that contains a ...
1
vote
1answer
79 views

How to log a process's uptime and restarts

I know that I can check a process's uptime with the following: ps -o etime= -p "PID" where PID = pid number. I would like to write to a log when this process ends, and include it's uptime. The ...
0
votes
1answer
164 views

Automatically restarting a process when it dies?

I have a process running on a raspberry pi. After ssh ing into in to the process is started like this: nohup .../blah/blah & IIUC this allows me to log out of the pi and the process keeps ...
7
votes
0answers
49 views

How can I see queries to gpg-agent?

I am using gpg-agent together with a Yubikey to securely store my GPG keys. In addition I've enabled so that whenever a authentication, sign or decryption request happens I must physically push the ...
3
votes
3answers
83 views

Is there a program that can log network traffic by the process and domain names?

I would like to figure out which processes are communicating with which websites over a period of time. All what I found programs like ss that list the connections that open this instant and then exit....
0
votes
2answers
392 views

Monitoring of disk space on multiple Linux server using expect script

I'm trying to write a script using Expect for monitoring multiple servers; the connections will be through ssh using a password. My basic loop is self failing, I'm not sure whether Expect TCL ...
1
vote
0answers
74 views

Weird issue with network tap [closed]

I have googled this to death and can not find an answer that works. Basically, I am mirroring a port on a Nexus switch to a server. The server receives a bunch of packets, no big deal. The issue is ...
1
vote
3answers
164 views

What do “writes / reads issued” refer to in atop's DSK label?

Context: I'm writing a script that calculates a service's I/O usage from atop history for the last 2 minutes (where atop's sampling is configured to be per 1 minute). I'm using the following command ...
-3
votes
1answer
28 views

Setup a monitoring server to get alerts when hw/sw failure and wanted to define certain rules to monitor in server activity [closed]

Setup a monitoring server to get alerts when hw/sw failure and wanted to define certain rules to monitor server activity. Also I wanted to get alerts when something get crashed or when sensitive files ...
1
vote
2answers
141 views

How to pause command when it output some string?

I need a tool that monitors output of other command, and when it prints specified string, eg. "error", stops monitored command. Then I modify some environment and files and continue job. Is it ...
0
votes
0answers
1k views

omiagent: is stopped showing stop state

I am getting the error while running the scxadmin service on RHEL 6.9. ~]# scxadmin -status omiserver: is running omiagent: is stopped I have checked logs but logs are showing empty. ]# pwd /var/...
2
votes
1answer
109 views

Writing CPU Temperature to Port 0x80 Bios Debug Card with Bash Script

I have a port 0x80 BIOS post debug card installed in a PCI slot. I want to use it purposefully after booting by having the CPU temperature displayed on the card. The address takes one byte and is ...
0
votes
0answers
16 views

OSSEC-agent include GPS geolocation with alerts

I am trying to add geolocation to my log alerts based on actual GPS data, NOT IP address. Let's say my current location is stored in /var/local/gps file. Would it be possible to read that file and ...
1
vote
1answer
81 views

Is it possible to monitor all write access to the filesystem of all process [closed]

Is it possible to monitor all write access to the filesystem of all process under linux? I've some different mounted filesystems. A lot of them are tempfs. I'm interested in all writes to the root ...
0
votes
1answer
455 views

Error opening device /dev/sysdig0: make sure sysdig-probe module is loaded [closed]

I'm running Linux 4.16.8-1-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux. I've installed the sysdig package, and trying to run it, I see: $ sudo sysdig Unable to load the driver error opening device /dev/...
0
votes
1answer
559 views

How to redirect service email notifications sent to root

How can a linux box be set up to send service emails from ' "service name" @ "machine id" ' to a non-root email account? Example1: to: manager@mail.com from: cron@machine**1**.com Example2: ...
0
votes
0answers
29 views

How to stop nagios from initially pulling a report?

I work with the nagios webapp with a rather large number of machines; so many in fact that when I pull up the report window the window times out when it does it's inital "today" query. If I'm fast ...