Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

-2
votes
0answers
8 views

Iostat report for a time period [closed]

How to get iostat report for the whole month at a particular time in redhat server? I have tried sar -d . But I want for the whole month at 8 pm daily.
1
vote
1answer
24 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
19 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
70 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
66 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
77 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
31 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
42 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
224 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
27 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
70 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
22 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
86 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
90 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
57 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
285 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
104 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
263 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
94 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
163 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
72 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
131 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 ...
6
votes
0answers
46 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
81 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
305 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
67 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
156 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
134 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
93 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
15 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
78 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
0answers
17 views

How can attempts to create or modify on th local file system file and get a file via the web from a specific address be monitored in real-time?

My web server got hacked and after not being able to tell what executable it was running I inquired as to how to detect the file name, which I asked about earlier at How can I diagnose a process which ...
0
votes
1answer
422 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
509 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
27 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 ...
2
votes
0answers
156 views

What is “cooked mode” wifi monitoring?

The following is an excerpt from iw's help page: dev <devname> set monitor * Set monitor flags. Valid flags are: none: no special flags fcsfail: show frames with ...
0
votes
1answer
32 views

Debug possible SSL/TLS problem?

I'm running into a couple networking issues which I suspect could be related to SSL/TLS, but I'm not sure how to go about confirming that that's the case. The main problem I'm having is I'm unable to ...
0
votes
1answer
29 views

Hide / ignore the packets you are creating in iptables firewall when connected with ssh into a Linux machine?

If I'm using SSH to remote into a machine and I'm running a command like: sudo iptables -L -v -n how do I get a packet hit count that excludes the packet traffic I'm creating by using SSH? I mean I ...
1
vote
1answer
403 views

Monit alert/exec when host is back to normal

I use Monit to quick check uptime of Elasticsearch service. Here is my configuration: check host [Elasticsearch]-test with address 1.2.3.4 if failed port 9200 protocol http ...
1
vote
1answer
69 views

Using one PC on LAN to monitor traffic usage on other PC's on same LAN

I have a cisco epc3825 cablemodem that provides internet to a number of PC's via Wifi. I'd like to add Linux PC on the LAN to monitor traffic usage on all PC's on the same LAN. Is this possible? Would ...