pages:howtos:diagnose:linux-diagnosis-and-monitoring-tools
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pages:howtos:diagnose:linux-diagnosis-and-monitoring-tools [2022/02/07 13:20] – mischerh | pages:howtos:diagnose:linux-diagnosis-and-monitoring-tools [2023/06/15 16:42] (current) – [mytop] mischerh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
FIXME | FIXME | ||
Line 31: | Line 31: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
- | apachetop is a console-based (non-gui) tool for monitoring the threads and overall performance of a set of Apache web servers. It runs on Unix systems which have Perl, LWP, and Term:: | + | apachetop is a console-based (non-gui) tool for monitoring the threads and overall performance of a set of Apache web servers. It runs on Unix systems which have Perl, LWP, and < |
===== Apache mod_status ===== | ===== Apache mod_status ===== | ||
Line 58: | Line 58: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
- | mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of a MySQL 3.22.x, 3.23.x, and 4.x server. It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and Term:: | + | mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of a MySQL 3.22.x, 3.23.x, and 4.x server. It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and < |
===== powertop ===== | ===== powertop ===== | ||
Line 367: | Line 367: | ||
===== incron ===== | ===== incron ===== | ||
+ | * https:// | ||
+ | * http:// | ||
+ | This program is the " | ||
+ | This project was kicked off by Lukas Jelinek in 2006 and then unfortunatally abandoned in 2012. Upstream development and bug-tracking/ | ||
- | Incron allows you to monitor | + | |
- | * http://inotify.aiken.cz/? | + | |
+ | inotify can be used for such tasks: | ||
+ | * detecting changes in files and directories (e.g. configuration files, mail directories) | ||
+ | * guarding critical files and their eventual automatic recovery | ||
+ | * file usage statistics and similar purposes | ||
+ | * automatic upload handling | ||
+ | * monitoring installations outside of packaging systems | ||
+ | * automatic on-change backup and/or versioning | ||
+ | * reflecting changes to search databases | ||
- | monitorix – System | + | There is much more that can be done using inotify. Switch your fantasy on and incorporate inotify to your application the best way. |
- | Monitorix is a free lightweight | + | ===== monitorix ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Monitorix is a free, open source, | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Monitorix-Monitoring-592x450.png | + | It consists mainly of two programs: a collector, called monitorix, which is a Perl daemon that is started automatically like any other system service, and a CGI script called monitorix.cgi. |
- | Monitorix is lightweight system | + | All of its development was initially created for monitoring |
- | * http:// | + | |
- | * Read More : Monitorix a System and Network Monitoring Tool for Linux | + | |
+ | It is currently in active development adding new features, new graphs and correcting bugs in the attempt to offer a great tool for daily systems administration. | ||
- | vmstat | + | ===== vmstat |
+ | * https:// | ||
+ | * https:// | ||
+ | vmstat (virtual memory statistics) is a computer system monitoring tool that collects and displays summary information about operating system memory, processes, interrupts, paging and block I/O. Users of vmstat can specify a sampling interval which permits observing system activity in near-real time. | ||
- | Linux VmStat command used to display statistics of virtual memory, kernerl threads, disks, system processes, I/O blocks, interrupts, CPU activity and much more. By default | + | The vmstat |
- | procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- | + | ===== Web VMStat ===== |
- | | + | * https:// |
- | | + | Display live Linux system stats (memory, CPU, IO, etc) in a pretty web-page, with charts and everything. |
+ | ===== uptime ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes. | ||
- | vmstat or virtual memory statistics is a small built-in tool that monitors and displays a summary about the memory | + | ===== mpstat ===== |
+ | * https:// | ||
+ | * http:// | ||
+ | mpstat - Report processors related statistics. The mpstat command writes to standard output activities for each available processor, processor 0 being the first one. Global average activities among all processors are also reported. The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed. If no activity has been selected, then the default report is the CPU utilization report. | ||
- | For more Vmstat examples read : 6 Vmstat Command Examples | + | The interval parameter specifies the amount of time in seconds between each report. A value of 0 (or no parameters at all) indicates that processors statistics are to be reported for the time since system startup (boot). The count parameter can be specified in conjunction with the interval parameter if this one is not set to zero. The value of count determines the number of reports generated at interval seconds apart. If the interval parameter is specified without the count parameter, the mpstat command generates reports continuously. |
+ | ===== pmap ===== | ||
+ | * https:// | ||
+ | pmap - report memory map of a process. The pmap command reports the memory map of a process or processes. | ||
- | Web VMStat – System Statistics Monitoring | + | ===== ps ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, | ||
- | Web VMStat | + | ===== sar ===== |
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | sar - Collect, report, or save system activity information. The sar command writes to standard output the contents of selected cumulative activity counters in the operating system. The accounting system, based on the values in the count and interval parameters, writes information the specified number of times spaced at the specified intervals in seconds. If the interval parameter | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Web-VMStat.png | + | ===== Sysstat ===== |
+ | * http:// | ||
+ | The sysstat utilities are a collection of performance | ||
+ | Sysstat is Open Source / Free Software, and is freely available under the GNU General Public License, version 2. | ||
- | Read More: Web VMStat: A Real Time System Statistics Tool for Linux | + | Sysstat' |
+ | * Includes four groups of monitoring tools (sar / sadc / sadf, iostat / tapestat / cifsiostat, mpstat, pidstat) for global system performance analysis. | ||
+ | * Can monitor a huge number of different metrics: | ||
+ | * Input / Output and transfer rate statistics (global, per device, per partition, per network filesystem and per Linux task / PID). | ||
+ | * CPU statistics (global, per CPU, per NUMA nodes and per Linux task / PID), including support for virtualization architectures. | ||
+ | * Memory, hugepages and swap space utilization statistics. | ||
+ | * Virtual memory, paging and fault statistics. | ||
+ | * Per-task (per-PID) memory and page fault statistics. | ||
+ | * Global CPU and page fault statistics for tasks and all their children. | ||
+ | * Process creation activity. | ||
+ | * Interrupt statistics (global, per CPU and per interrupt, including potential APIC interrupt sources, hardware and software interrupts). | ||
+ | * Extensive network statistics: network interface activity (number of packets and kB received and transmitted per second, etc.) including failures from network devices; network traffic statistics for IP, TCP, ICMP and UDP protocols based on SNMPv2 standards; support for IPv6-related protocols. | ||
+ | * Fibre Channel traffic statistics. | ||
+ | * Software-based network processing (softnet) statistics. | ||
+ | * NFS server and client activity. | ||
+ | * Sockets statistics. | ||
+ | * Run queue and system load statistics. | ||
+ | * Kernel internal tables utilization statistics. | ||
+ | * System and per Linux task switching activity. | ||
+ | * Swapping statistics. | ||
+ | * TTY devices activity. | ||
+ | * Power management statistics (instantaneous and average CPU clock frequency, fans speed, devices temperature, | ||
+ | * USB devices plugged into the system. | ||
+ | * Filesystems utilization (inodes and blocks). | ||
+ | * Tape drives statistics. | ||
+ | * Pressure-Stall Information statistics. | ||
+ | * Can generate graphs (SVG format - Scalable Vector Graphics) that can be displayed in your favorite web browser! | ||
+ | * Most system statistics can be saved in a file for future inspection. | ||
+ | * Allows to configure the length of data history to keep. | ||
+ | * On the fly detection of new devices (disks, network interfaces, etc.) that are created or registered dynamically. | ||
+ | * Support for UP and SMP machines, including machines with hyperthreaded or multi-core processors. | ||
+ | * Support for hotplug CPUs (it detects automagically processors that are disabled or enabled on the fly) and tickless CPUs. | ||
+ | * Works on many different architectures, | ||
+ | * Needs very little CPU time to run (written in C). | ||
+ | * System statistics collected by sar/sadc can be exported in various different formats (CSV, XML, JSON, SVG, etc.). DTD and XML Schema documents are included in sysstat package. JSON output format is also available for mpstat and iostat commands. | ||
+ | * sar data can also be exported by sadf to PCP (Performance Co-Pilot) archive. | ||
+ | * Smart color output for easier statistics reading. | ||
+ | * Internationalization support (sysstat has been translated into numerous different languages). Sysstat is now part of the Translation Project. | ||
+ | * Sysstat commands can automatically select the unit used to display sizes for easier reading (see option --human). | ||
+ | * Many programs available on the internet to use sysstat' | ||
+ | * iostat has support for devices managed by drivers in userspace like spdk. | ||
- | uptime | + | ===== iostat ===== |
- | + | * http:// | |
- | This small command that quickly gives you information about how long the machine has been running, how many users currently are logged on and the system load average for the past 1, 5 and 15 minutes. | + | * http://sebastien.godard.pagesperso-orange.fr/ |
- | + | ||
- | + | ||
- | mpstat | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\mpstat.jpg | + | |
- | + | ||
- | mpstat is a built-in tool that monitors cpu usage. The most common command is using mpstat -P ALL which gives you the usage of all the cores. You can also get an interval update of the CPU usage. | + | |
- | + | ||
- | + | ||
- | pmap | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\pmap.jpg | + | |
- | + | ||
- | pmap is a built-in tool that reports the memory map of a process. You can use this command to find out causes of memory bottlenecks. | + | |
- | + | ||
- | + | ||
- | ps | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\ps.jpg | + | |
- | + | ||
- | The ps command will give you an overview of all the current processes. You can easily select all processes using the command ps -A | + | |
- | + | ||
- | + | ||
- | sar | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\sar.jpg | + | |
- | + | ||
- | sar is a part of the sysstat package and helps you to collect, report and save different system metrics. With different commands it will give you CPU, memory and I/O usage among other things. | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | Sysstat – All-in-One System Performance Monitoring | + | |
- | + | ||
- | Another monitoring tool for your Linux system. Sysstat is not a real command in fact, it’s just the name of the project, Sysstat in fact is a package that includes many performance monitoring tools like iostat, sadf, pidstat beside many other tools which shows you many statistics about your Linux OS. | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Sysstat-620x381.png | + | |
- | + | ||
- | Features of Sysstat | + | |
- | * Available in many Linux distributions repositories by default. | + | |
- | * Ability to create statistics about RAM, CPU, SWAP usage. Beside the ability to monitor Linux kernel activity, NFS server, Sockets, TTY and filesystems. | + | |
- | * Ability to monitor input & output statistics for devices, tasks.. etc. | + | |
- | * Ability to output reports about network interfaces and devices, with support for IPv6. | + | |
- | * Sysstat can show you the power statistics (usage, devices, the fans speed.. etc) as well. | + | |
- | * Many other features.. | + | |
- | + | ||
- | Read More: Install Sysstat in Linux and 20 Useful Commands of Sysstat | + | |
- | + | ||
- | + | ||
- | collectl- All-in-One Performance Monitoring Tool | + | |
- | + | ||
- | Collectl is a yet another powerful and feature rich command line based utility, that can be used to gather information about Linux system resources such as CPU usage, memory, network, inodes, processes, nfs, tcp, sockets and much more. | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\collectl.jpg | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Collectl-620x410.jpg | + | |
- | + | ||
- | Similar to sar collectl collects performance metrics for your machine. By default it shows cpu, network and disk stats but it collects a lot more. The difference to sar is collectl is able to deal with times below 1 second, it can be fed into a plotting tool directly and collectl monitors processes more extensively. | + | |
- | * http://collectl.sourceforge.net/ | + | |
- | * Read More: Install Collectl (All-in-One Performance Monitoring) Tool in Linux | + | |
- | + | ||
- | + | ||
- | iostat | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\iostat.jpg | + | |
iostat is also part of the sysstat package. This command is used for monitoring system input/ | iostat is also part of the sysstat package. This command is used for monitoring system input/ | ||
- | * http:// | ||
- | |||
- | |||
- | free | ||
- | |||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\free.jpg | ||
- | |||
- | This is a built-in command that displays the total amount of free and used physical memory on your machine. It also displays the buffers used by the kernel at that given moment. | ||
- | |||
- | |||
- | /Proc file system | ||
- | |||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\procfile.jpg | ||
- | |||
- | The proc file system gives you a peek into kernel statistics. From these statistics you can get detailed information about the different hardware devices on your machine. Take a look at the full list of the proc file statistics | ||
- | |||
- | |||
- | GKrellM | ||
- | |||
- | GKrellm is a gui application that monitor the status of your hardware such CPU, main memory, hard disks, network interfaces and many other things. It can also monitor and launch a mail reader of your choice. | ||
- | * http:// | ||
- | |||
- | |||
- | Gnome system monitor | ||
- | |||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\gnome-system-monitor.jpg | ||
- | |||
- | Gnome system monitor is a basic system monitoring tool that has features looking at process dependencies from a tree view, kill or renice processes and graphs of all server metrics. | ||
- | * http:// | ||
- | |||
- | |||
- | GoAccess | ||
- | |||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\goaccess.jpg | ||
- | |||
- | GoAccess is a real-time web log analyzer which analyzes the access log from either apache, nginx or amazon cloudfront. It’s also possible to output the data into HTML, JSON or CSV. It will give you general statistics, top visitors, 404s, geolocation and many other things. | ||
- | * http:// | ||
- | Logwatch | + | ===== collectl ===== |
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | There are a number of times in which you find yourself needing performance data. These can include benchmarking, | ||
- | Logwatch is a log analysis system. It parses through your system’s logs and creates | + | Unlike most monitoring tools that either focus on a small set of statistics, format their output in only one way, run either interatively or as a daemon but not both, collectl tries to do it all. You can choose to monitor any of a broad set of subsystems which currently include buddyinfo, cpu, disk, inodes, infiniband, lustre, memory, network, nfs, processes, quadrics, slabs, sockets and tcp. |
- | * http:// | + | |
+ | ===== free ===== | ||
+ | * https:// | ||
+ | free displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel. The information is gathered by parsing / | ||
- | Swatch | + | ===== /proc file system ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | /proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn' | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\swatch.jpg | + | ===== GKrellM ===== |
+ | * http:// | ||
+ | * https:// | ||
+ | GKrellM is a single process stack of system monitors which supports applying themes to match its appearance to your window manager, Gtk, or any other theme. | ||
- | Much like Logwatch Swatch also monitors your logs, but instead of giving reports it watches for regular expression and notifies you via mail or the console when there is a match. It could be used for intruder detection for example. | + | ===== Gnome system monitor ===== |
- | * http://sourceforge.net/projects/swatch/ | + | * https:// |
+ | * https://help.gnome.org/users/gnome-system-monitor/stable/ | ||
+ | System Monitor is a tool to manage running processes and monitor system resources. | ||
+ | ===== GoAccess ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | GoAccess is an open-source web analytics application for Unix-like operating systems. It has both a text-based and a web application user interface. It can provide real-time analytics by continuously monitoring web server logs. GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. | ||
- | MultiTail | + | It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\multitail.jpg | + | ===== Logwatch ===== |
+ | * https://linux.die.net/ | ||
+ | * https:// | ||
+ | Logwatch is a customizable, | ||
- | MultiTail helps you monitor logfiles in multiple windows. You can merge two or more of these logfiles into one. It will also use colors to display the logfiles for easier reading with the help of regular expressions. | + | ===== Swatchdog ===== |
- | * http://www.vanheusden.com/ | + | * http:// |
+ | * http://swatch.sourceforge.net/ | ||
+ | Swatch: the active log file monitoring tool. Swatch started out as the " | ||
+ | ===== MultiTail ===== | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | MultiTail allows you to monitor logfiles and command output in multiple windows in a terminal, colorize, filter, and merge. | ||
acct or psacct – Monitor User Activity | acct or psacct – Monitor User Activity |
pages/howtos/diagnose/linux-diagnosis-and-monitoring-tools.1644240019.txt.gz · Last modified: 2022/02/07 13:20 by mischerh