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
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?...
1
vote
1answer
76 views

Fcs synchronization error monitoring

On the server for everyday there will be a file with name "xxxx_xxx_2016-11-08_0.log" on the lcoation /usr/logs the date changes every day in the file name but format is same, there is one file per ...
7
votes
4answers
5k views

Linux tool to monitor bandwidth consumption of a specific process (PID)

Is there tool or a command that helps capture the bandwidth consumption of specific process (PID), just like the System Monitor does, but for a single specific process, as shows the following ...
0
votes
1answer
135 views

Creating alert notification if process stops touching file

I have set up a very simple script so that I can test whether a process is running or not and if so then it will touch a file and everything will be fine. However if process is not running and file ...
1
vote
1answer
574 views

Where does vmstat get it's “used memory” statistic from?

If you run vmstat -s, it displays statistics about your system. I am wondering what it does to calculate the used memory statistic (highlighted below). This is not a statistic that I can find in /...
2
votes
0answers
222 views

Hardware monitoring on AIX 6.1

We are currently trying to setup and hardware monitoring on AIX 6.1 so that we can interface it with our hypervisor, namely Zabbix. Regarding the detection, I could make up something within a script ...
1
vote
2answers
100 views

Monitoring using rsyslog

I would like to set up some monitoring for a custom application. I want to be able to monitor when a service goes down or stops working and if this happens, find a way to receive these alerts via ...
9
votes
1answer
5k views

What are Kernel PMU event-s in perf_events list?

Searching for what one can monitor with perf_events on Linux, I cannot find what Kernel PMU event are? Namely, with perf version 3.13.11-ckt39 the perf list shows events like: branch-instructions OR ...
0
votes
1answer
598 views

Linux kernel module that kills process

I'm looking forward to build my first linux device driver and it's goal is to detect when a combination of keys is pressed, such as CTRL + ALT and then receive a number, such as 103, that should ...
0
votes
2answers
895 views

Count the number of processes and send a email to multiple people if it exceeds certain limit

As part of smooth functioning on my application I want to check a count of a particular process and send a email to multiple people if it exceeds certain limit.I have written script for counting ...
20
votes
3answers
37k views

How to use inotifywait to watch a directory for creation of files of a specific extension

I have seen this answer. You should consider using inotifywait, as an example: inotifywait -m /path -e create -e moved_to | while read path action file; do echo "The file '$file' ...
1
vote
1answer
3k views

zabbix action on log file

I use zabbix to monitor a log file, and I want zabbix to send a mail every time a new line coming in the log file. I define the trigger: {xxx:log[/tmp/log,"error"].str(error)}=1 I find that zabbix ...
0
votes
1answer
75 views

Centos 7 --> Track if users attempt to access a folder/directory they do not have access too?

If Bob tries to access something like /home/Code/TopSecret for example. The system wouldn't allow him to access this without having the permission. I would like to know about these attempts. Is ...
16
votes
1answer
784 views

How to get an average pipe flow speed

If myfile is increasing over time, I can get the number of line per second using tail -f | pv -lr > /dev/null It gives instantaneous speed, not average. How can I get the average speed (i.e the ...
1
vote
1answer
987 views

Cacti stopped working after upgrade to Stretch

Just upgraded a cacti server to Stretch/Debian 9. Cacti was still working after the upgrade was finished. After cleaning up the leftover Debian 8 PHP 5 packages, that left only PHP 7.0 installed, ...
1
vote
1answer
373 views

In Linux how would you see exactly what another process is doing if that process does not have logs?

In Linux how would you see exactly what another process is doing if that process does not have logs?
0
votes
1answer
443 views

Splunk Forwarder-->Monitoring/Capturing of Specific Events?

Currently Running CentOS7. I am currently running into an issue with Splunk forwarders. I need to be able to monitor the following for all Linux machines. Some of the following may only apply to ...
1
vote
1answer
567 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, ...
3
votes
1answer
72 views

How do I tell who is connected to my network and how much bandwidth they're using?

My router died today, so I used nm-applet on xfce to make a wireless network using my computer and modem. It only appeared to support WEP security. I felt I should keep track of who is connected, but ...
2
votes
0answers
42 views

Investigating annoying short UI hangs

I just bought a new desktop machine for home (see system details below). It's supposed to be super smooth, but nevertheless I'm experiencing quite frequent UI 'stutters'. It's as in the olden days ...
2
votes
1answer
427 views

Strange nagios-nrpe-server error upgrading from Jessie to Stretch

When upgrading from Jessie to Stretch, at the end of dist-upgrade, it ends with an error: Errors were encountered while processing: nagios-nrpe-server E: Sub-process /usr/bin/dpkg returned an error ...
0
votes
1answer
192 views

How to use SNMP to get any information that we need in Redhat?

I am new to SNMP and I can not find any clear article if we can add a data node in SNMP. And also how does SNMP collect data? I want to monitor the following resources, which can be obtained from ...
2
votes
0answers
993 views

Monitoring serial port data between virtual ports

I have a problem with monitoring data transferred between 3D printer and software over TCP. I have 3D printer that is connected to Raspberry pi with usb cable. I'm using ser2net in rasbperry to ...
0
votes
1answer
1k views

How to monitor PHP-FPM in zabbix?

I want to monitor PHP-FPM in Zabbix. Tell me, please, how to do it? Are there any templates to try it ?
3
votes
0answers
513 views

Nagios - Help with getting NRPE to work with check_fail2ban.sh

I am trying to monitor fail2ban with Nagios so, I found the following check via a Google search: http://nagios.fm4dd.com/plugins/manual/check_fail2ban.htm I am trying to get the check to work on a ...
0
votes
1answer
30 views

Why Mouse Activates 3D Image in non-evaluated NB of Debian Mathematica?

Condition: controlling 3D Image output of test code by mouse cause all CPUs to 100%; differential solutions do not help; no clicking of mouse on image Motivation: to understand why mouse activates 3D ...
0
votes
1answer
507 views

Using a Linux box in a bridge or router configuration for network/securing monitoring and analysis

My goal was to add a box between two routers I have so that I can monitor and analyze network traffic, use it as a syslog server for both routers, and mail alerts when appropriate. Although using an ...
0
votes
2answers
74 views

How to find which background tasks take most of my memory and CPU time?

While I probably need some kind of monitoring tool like mon or sysstat or something. I am looking for a way to know which tasks take the most of my memory,CPU time etc. While I understand that each ...
1
vote
1answer
545 views

monitoring user activity in linux

I need to implement some kind of daemon that would check who logged in (with ip address) and when, what commands did that person use, and other basic stuff like differences in edited files that would ...
3
votes
2answers
832 views

Monitoring what program calls an executable file

I want to know what program calls a particular executable, including when that executable is used as an interpreter via a shebang line. This is not quite the same problem as knowing what program ...
1
vote
1answer
61 views

Which program uses which package? [duplicate]

Updating my Linux server is mostly a stressed part for me. Like today. With yum update i see a new version of NodeJS, but from what i can remember nodejs has been used by a program which needs to be ...
4
votes
2answers
4k views

System energy consumption monitoring

Do you know any apps that monitor system power consumption? Not just cpu, but all components, preferably? UPDATE - powertop & powerstat I found powertop, but it doesn't say much. I've also ...
2
votes
0answers
312 views

How to monitor an HP-UX server for OS or hardware specific problems

It has been a while since I have last dealt with an HP-UX server. Therefore, my memory is not too fresh and I want to consult the public wisdom for this. I have a task at hand to come up with a ...
2
votes
4answers
151 views

Hearing the hard drive when nothing is supposed to use it

Sometimes I hear the hard drive physically working when nothing is supposed to be using it. Is there a way for me to see what is activating it ?
2
votes
2answers
1k views

linux: Is there a way to dump the task run queue?

I'm facing a strange extreme load issue on idle conditions. Is there a way to directly dump the linux process scheduler run queue? E.g. when sar -q outputs 400 as runq-sz, to get those 400 PIDs? ps,...
0
votes
2answers
1k views

XYMon-Client status not showing in XYMon Server

I have installed XYMon server successfully, but I can't get the client information to show. It took me a while to figure out, but if you add a host to the server that doesn't have the client, it still ...
0
votes
1answer
429 views

How to interpret VFS usage chart

I'm monitoring an old laptop running as LAMP server. I have trouble understanding this VFS usage chart (sorry can't include images yet) from monitorix (the monitoring tool I'm using). I don't ...
1
vote
1answer
202 views

Event dispatcher in bash (Ubuntu Gnu/Linux) [duplicate]

Are there any methods or bash tools that can observe some events (such as creating a folder) and then do another actions?
0
votes
0answers
299 views

Linux Disk IO Statistics Across Devices

I've read a whole bunch of posts regarding methods of capturing disk IO on Linux, however none of them have answered the source of my confusion. In my case, I am monitoring disk IO on Linux using ...
1
vote
2answers
58 views

How can I log how often a file is modified on OS X?

I would like to know which files in my system I access most often, as a gauge of how important they are. I know the OS records the last time the file was accessed. Is there someone way to log in a ...
3
votes
1answer
704 views

How to tell whether a process is network I/O intensive or not in user mode in Linux?

I am currently writing a program in Linux which needs to tell whether a specific process is network I/O intensive or not at runtime. I have tried some tools such as iotop and iftop, but none of them ...
1
vote
1answer
291 views

Will these commands return the same output on different Linux distributions? [closed]

I am writing a monitoring script. I am running it on a specific machine, and it works. It is planned to be ran on several Linux machines, not bound to a single distribution. Here are the commands and ...
1
vote
1answer
533 views

How to bypass route path filtering (for ping)?

I know asymmetric is wrong and I do not want to use it. But on the other hand I have Linux server having multiple interfaces (prod, backup, interconnect) and I want to monitor them all - via ping for ...
1
vote
1answer
34 views

Getting the size of an URL with referenced content

Is there a recommendable way to get the bytes size of an URL with all referenced images, CSS and javascript files (the number of bytes a normal visitor has to receive before the page has fully loaded ...
1
vote
2answers
87 views

How to execute a command when internet is back

Sometimes my wifi is connected to router but my router is not connected to internet. How can I execute a command when my internet is back (from command line)? I want to execute: mpg123 /home/user/...
0
votes
4answers
884 views

Ensure that cron daemon stays running

If on a debian 7 server (wheezy) running in a hosted VM and an up-to-date cron daemon there is a bug so cron stopped running without obvious reason. Since this only happened once ever since, it is ...
1
vote
1answer
683 views

Zabbix web install Redhat conflicts php

I am trying to install Zabbix on redhat 7 64bit. The zabbix server installed successfully with command yum install zabbix-server-mysql But I am getting conflicts with php70u with php56u when I tried ...
0
votes
1answer
172 views

How do I monitor bash_history file for manual modifications?

I am trying to create a daemon to monitor a users's bash_history file for manual modifications. In other words, if a user opens the file and modifies it, the daemon will notify this action for safety ...
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{...
0
votes
0answers
80 views

Heartbeat with no utilization nor load with ganglia

I use ganglia to monitor my computer cluster. On Ganglia Web Interface, I sometimes have the following issue: given a node, according to the physical view and the node view, the node has sent a ...