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
1answer
13 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 ...
1
vote
1answer
4k views

Cannot add host to icingaweb2

I installed Icinga2 and icingaweb2. I have the dashboard, view of hosts, services, etc. I can log in, log out, etc. Ok, now I want to monitor something. So I added a host to /etc/icinga2/conf.d/hosts,...
7
votes
1answer
54 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 ...
0
votes
0answers
16 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 ...
2
votes
1answer
2k 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 'smtplib.SMTPServerDisconnected'&...
8
votes
7answers
27k 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?
0
votes
0answers
12 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 ...
3
votes
1answer
2k views

nvidia-smi equivalent for AMD APU

Is there something like nvidia-smi for AMD APU GPU? (I have A8-7600 APU) nvidia-smi can show which processes are currently running on GPU, even Xorg/system applications, not only CUDA. I'm using ...
0
votes
0answers
29 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 | ...
1
vote
1answer
873 views

How to put the percentage of use of each core from cpu

I use the Zabbix Server to monitor my environment. The metrics used by Zabbix to view the CPU are too confusing, so I would like to simplify. Is there a way to get the percentage of use of each core ...
3
votes
2answers
4k views

IBM V7000 scripts for monitoring

Hello (I'm no hard core coder:), I try to develop a script to do some very basic monitoring on an IBM SVC. My goal is to get some information about the nodes and my quroum status and then send ...
1
vote
0answers
37 views

How does top / htop work? [closed]

for some reason I want to create a top / htop like application from scratch. My programming language is Ruby, but I can also run C binary under the hood. For now, I can grab most of the stuff from /...
4
votes
3answers
5k views

Why does MemTotal in /proc/meminfo change?

I monitor value from /proc/meminfo file, namely the MemTotal: number. It changes if a ram module breaks, roughly by size of the memory module - this is obvious. I know the definition for the field ...
61
votes
5answers
55k views

List the files accessed by a program

time is a brilliant command if you want to figure out how much CPU time a given command takes. I am looking for something similar that can list the files being accessed by a program and its children. ...
15
votes
5answers
2k views

How to check which line of a bash script is being executed

Is there a way to check which line number of a bash script is being executed "right now"? Using bash -x script.sh looks promising; however, I need to get the current line number.
165
votes
10answers
286k views

How to monitor CPU/memory usage of a single process?

I would like to monitor one process's memory / cpu usage in real time. Similar to top but targeted at only one process, preferably with a history graph of some sort.
1
vote
1answer
85 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 ...
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'...
63
votes
5answers
132k views

Can I change root's email address or forward it to an external address?

I'm getting a lot of mail in my root user's mail account. This appears to be mostly reports and errors from things like cron scripts. I'm trying to work though and solve these things, possibly even ...
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
20 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 ...
0
votes
1answer
108 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 ...
9
votes
1answer
134 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
1k views

Count number of tcp connections per second

I have a service which can only handle a max of 10 requests per second and I need to monitor how often this is exceeded. I have seen various solutions with tcpdump, ss, netstat, ntop but none seem to ...
2
votes
1answer
27 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 ...
1
vote
1answer
3k views

udev monitor hotplug rule not running

I have setup a basic udev rule to detect when I connect or disconnect a mDP cable. The file is /etc/udev/rules.d/95-monitor-hotplug.rules KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{...
1
vote
1answer
39 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/...
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
28 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
33 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
1answer
1k views

Nagios Core Acknowledgement notification (email)

Nagios Core 3.X on RHEL. I want to know how to send an email to the relevant contact group when someone Acks an alert.
-2
votes
1answer
32 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 ...
7
votes
2answers
2k views

How can I monitor the length of the accept queue?

I have a hypothesis: sometimes TCP connections arrive faster than my server can accept() them. They queue up until the queue overflows and then there are problems. How can I confirm this is happening?...
0
votes
1answer
44 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 ...
1
vote
1answer
25 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 /...
66
votes
6answers
158k 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?
0
votes
1answer
36 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?
4
votes
4answers
2k views

Is there any way to see how much data I sent via Internet?

A big German ISP (Telekom) recently decided to volume limit their DSL internet connection to 75GB per month. Now I would like to know how much I download / upload. I use Linux Mint 14 Nadia and I ...
2
votes
1answer
2k views

tcpdump not capturing http or tcp/ssl traffic

I have been trying to learn tcpdump and I am using this command to attempt to monitor my network: sudo tcpdump -I -i en1 But this gives me a bunch of stuff I don't want, so I used this version to ...
33
votes
8answers
154k views

Health check of web page using curl

I'd like to do a health check of a service by calling a specific url on it. Feels like the simplest solution would be to use cron to do the check every minute or so. In case of errors, cron sends me ...
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 ...
6
votes
1answer
6k 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 ...
1
vote
1answer
574 views

Nagios memory free plug-in misbehaving after upgrade to Debian Stretch

We use Nagios here for monitoring our servers. On the test network I upgraded to Debian 9/Stretch, the memory monitoring box/object in our Nagios monitoring platform says CRITICAL and next to it, ...
8
votes
2answers
20k views

Tracking what commands were executed after sudo to another user

I have provided sudo to ten users to become another user like nsup. I want to track which user executes which command after they become nsup. If there is a way to store the log files in a common file ...
32
votes
5answers
21k views

Is it possible to find out what program or script created a given file?

Three files have suddenly appeared in my home directory, called "client_state.xml", "lockfile", and "time_stats_log". The last two are empty. I'm wondering how they got there. It's not the first time ...
0
votes
1answer
963 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.
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
24 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 ...