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 01:56] – ↷ Page name changed from pages:howtos:diagnose:linux-monitoring-tools to pages:howtos:diagnose:linux-diagnosis-and-monitoring-tools rokkitlawnchair | pages:howtos:diagnose:linux-diagnosis-and-monitoring-tools [2023/06/15 16:42] (current) – [mytop] mischerh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
- | FIXME FIXME FIXME | + | FIXME |
====== Linux Diagnosis and Monitoring Tools ====== | ====== Linux Diagnosis and Monitoring Tools ====== | ||
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 ===== | ||
+ | * https:// | ||
+ | The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser). Another page gives a simple machine-readable list of the current server state. | ||
+ | |||
+ | The details given are: | ||
+ | |||
+ | * The number of workers serving requests | ||
+ | * The number of idle workers | ||
+ | * The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*) | ||
+ | * A total number of accesses and byte count served (*) | ||
+ | * The time the server was started/ | ||
+ | * Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*) | ||
+ | * The current percentage CPU used by each worker and in total by all workers combined (*) | ||
+ | * The current hosts and requests being processed (*) | ||
+ | |||
+ | The lines marked " | ||
===== ftptop ===== | ===== ftptop ===== | ||
Line 41: | 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 142: | Line 159: | ||
mtr combines the functionality of the ' | mtr combines the functionality of the ' | ||
+ | ===== tcpdump ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | tcpdump is a data-network packet analyzer computer program that runs under a command line interface. It allows the user to display TCP/IP and other packets being transmitted or received over a network to which the computer is attached.[3] Distributed under the BSD license,[4] tcpdump is free software. Tcpdump works on most Unix-like operating systems: Linux, Solaris, FreeBSD, DragonFly BSD, NetBSD, OpenBSD, OpenWrt, macOS, HP-UX 11i, and AIX. In those systems, tcpdump uses the libpcap library to capture packets. The port of tcpdump for Windows is called WinDump; it uses WinPcap, the Windows version of libpcap. | ||
+ | ===== Justniffer ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Justniffer - Network TCP Packet Sniffer. Justniffer is a network protocol analyzer that captures network traffic and produces logs in a customized way, can emulate Apache web server log files, track response times and extract all " | ||
- | tcpdump – Network Packet Analyzer | + | Reliable TCP Flow Rebuilding - The main Justniffer’s feature is the ability to handle all those complex low level protocol issues and retrieve the correct flow of the TCP/IP traffic: IP fragmentation, |
+ | Optimized for “Request / Response” protocols. It is able to track server response time | ||
- | Tcpdump one of the most widely used command-line | + | Justniffer was born as tool for helping in analyzing performance problem in complex |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\tcpdump.jpg | + | In very complex and distributed systems is often useful to understand how communication takes place between different components, and when this is implemented as a network protocol based on TCP/IP (HTTP, JDBC, RTSP, SIP, SMTP, IMAP, POP, LDAP, REST, XML-RPC, IIOP, SOAP, etc.), justniffer becomes very useful. Often the logging level and monitoring |
- | tcpdump will output a description of the contents of the packet | + | Other times it is desirable to collect access logs from web services implemented on different environments (various web servers, application servers, python web frameworks, etc.) or web services |
- | * http:// | + | |
- | For more tcpdump usage read : 12 Tcpdump Command Examples | + | Justniffer can capture traffic |
+ | ===== Server Density ===== | ||
+ | * https:// | ||
+ | Server Density: SaaS Monitoring - Proactive infrastructure monitoring for cloud, servers, containers & websites. Cross platform monitoring for Linux, Windows, Docker, Kubernetes, FreeBSD and Mac. Automatic agent installation using our API and integration with Chef, Puppet, Ansible and SaltStack. | ||
- | Justniffer | + | ===== OpenNMS ===== |
+ | * https:// | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\justniffer.jpg | + | <WRAP center round alert 60%> |
+ | Serious remote code execution (RCE) and denial of service (DOS) vulnerabilities in Apache Log4j could affect customers running some OpenNMS products. | ||
+ | </ | ||
- | Justniffer | + | OpenNMS |
- | * http:// | + | |
+ | ===== SysUsage ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | SysUsage: the sysstat and sar grapher. SysUsage is a tool used to continuously monitor a system and generate daily/ | ||
- | Server Density | + | SysUsage continuously monitor your systems informations and generate periodical graph reports using rrdtool or javascript jqplot library. All reports are shown throught a web interface. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\serverdensity.png | + | SysUsage grabs all system activities using Sar and system commands allowing you to keep tracks of your computer or server activity during his life. It is a great help for performance analysis and resources management. The threshold notification can alarm you when the system capabilities are reached by sending SMTP messages or throught Nagios reports. |
- | Our server monitoring tool! It has a web interface that allows | + | By default it will monitor all you need to know on your server activity (See Features), it is written in Perl and should works on all Unix like plateforms. It doesn' |
- | * https:// | + | |
+ | Since release 5.0 SysUsage can be run from a centralized place where collected statistics will be stored and where graphics will be rendered. Unless other monitoring tools with lot of administration work, SysUsage is design to have the lesspossible things to configure and a high level of admin system knowledge. Each server can also be self monitored and you just have to connect your browser to the web interface to know his health level. | ||
- | OpenNMS | + | SysUsage is design with simplicity in mind. I want all relevant statistics from my servers within an intuitive web interface and without spending too much time to configure it, if you know Nagios, you know what I mean. You will especially like SysUsage for that. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\opennms.jpg | + | ===== PCP ===== |
+ | * http:// | ||
+ | * https:// | ||
+ | PCP - Performance Co-Pilot. Performance Co-Pilot is a system performance analysis toolkit. Lightweight : Collect performance metrics from your systems efficiently. Distributed : Collate metrics from multiple hosts and a variety of operating systems. Included : Everything you need is already included in the major distributions: | ||
- | OpenNMS has four main functional areas: event management and notifications; | + | ===== KDE system guard ===== |
- | * http://www.opennms.org/ | + | * https://apps.kde.org/ksysguard/ |
+ | System Guard allows you to monitor information and statistics about your system. In addition to monitoring the local system, it can connect to remote systems running the System Guard Daemon. | ||
+ | ===== Munin ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Munin is a networked resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" | ||
- | SysUsage | + | ===== Nagios ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | Nagios Core / | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\sysusage.jpg | + | Ethan Galstad and a group of developers originally wrote Nagios as NetSaint. As of 2015 they actively maintain both the official and unofficial plugins. Nagios is a recursive acronym: " |
- | SysUsage monitors your system continuously via Sar and other system commands. It also allows notifications to alarm you once a threshold | + | Nagios was originally designed to run under Linux, but it also runs on other Unix variants. It is free software licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. |
- | * http:// | + | Network Monitoring: When it comes to open source network monitoring tools, |
+ | Nagios is known for being the best server monitoring software on the market. Server monitoring is made easy in Nagios because of the flexibility to monitor your servers with both agent-based and agentless monitoring. With over 5000 different addons available to monitor your servers, the community at the Nagios Exchange have left no stone unturned. Server Monitoring Software. Windows Server Monitoring. Linux Server Monitoring. | ||
- | brainypdm | + | Implementing effective application monitoring with Nagios allows your organization to quickly detect application, |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\brainypdm.jpg | + | ===== Icinga ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Icinga is a monitoring | ||
- | brainypdm | + | ===== Zenoss ===== |
- | * http:// | + | * https:// |
+ | Zenoss Community Edition | ||
+ | ===== Cacti ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Cacti is an open-source, | ||
- | PCP | + | The front end can handle multiple users, each with their own graph sets, so it is sometimes used by web hosting providers (especially dedicated server, virtual private server, and colocation providers) to display bandwidth statistics for their customers. It can be used to configure the data collection itself, allowing certain setups to be monitored without any manual configuration of RRDtool. Cacti can be extended to monitor any source via shell scripts and executables. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\pcp.jpg | + | Cacti can use one of two back ends: " |
- | PCP has the capability of collating metrics from multiple hosts and does so efficiently. It also has a plugin framework so you can make it collect specific metrics that is important to you. You can access graph data through either a web interface or a GUI. Good for monitoring large systems. | + | ===== Zabbix ===== |
- | * http://www.pcp.io/ | + | * https://git.zabbix.com/ |
+ | * https://www.zabbix.com/ | ||
+ | Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual machines (VMs) and cloud services. Zabbix provides monitoring metrics, among others network utilization, | ||
+ | Backend of Zabbix is written in C and the web frontend is written in PHP. | ||
- | KDE system guard | + | Zabbix offers several monitoring features: |
+ | * Simple checks can verify the availability and responsiveness of standard services such as SMTP or HTTP without installing any software on the monitored host. | ||
+ | * A Zabbix agent can also be installed on UNIX and Windows hosts to monitor statistics such as CPU load, network utilization, | ||
+ | * As an alternative to installing an agent on hosts, Zabbix includes support for monitoring via SNMP, TCP and ICMP checks, as well as over IPMI, JMX, SSH, Telnet and using custom parameters. Zabbix supports a variety of near-real-time notification mechanisms, including XMPP. | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\kdesystemguard.jpg | + | Released under the terms of GNU General Public License version 2, Zabbix is free software. |
- | This tool is both a system monitor and task manager. You can view server metrics from several machines through | + | ===== nmon ===== |
- | * https:// | + | * http:// |
+ | * http:// | ||
+ | nmon (short hand for Nigel' | ||
+ | ===== conky ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Conky is a free software desktop system monitor for the X Window System. It is available for Linux, FreeBSD, and OpenBSD. Conky is highly configurable and is able to monitor many system variables including the status of the CPU, memory, swap space, disk storage, temperatures, | ||
- | Munin | + | Conky was hailed as "one of the best maintained, and definitely one of the most useful, programs in the world of open source" |
- | Munin is also a web interface GUI for RRDtool, it was written in Perl and licensed under GPL, Munin is a good tool to monitor systems, networks, applications and services. | + | It comes pre-configured in the default installation of Pinguy OS and CrunchBang Linux. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\munin.jpg | + | ===== Glances ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | Glances is a cross-platform | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Munin-620x396.png | + | ===== sarg ===== |
+ | * https:// | ||
+ | * https://linux.die.net/ | ||
+ | sarg - Squid Analysis Report Generator is a tool that allow you to view " | ||
- | Munin is both a network | + | sarg is a logfile parser |
- | * http://munin-monitoring.org/ | + | sarg can take the squid access log as its input, or optionally the squidGuard |
- | * Read More: Install Munin Network Monitoring Tool in Linux | + | |
- | Nagios – Network/Server Monitoring | + | ===== libstatgrab |
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | libstatgrab is a library that provides cross platform access to statistics about the system on which it’s run. It’s written in C and presents a selection of useful interfaces which can be used to access key system statistics. The current list of statistics includes CPU usage, memory utilisation, | ||
- | Nagios is an leading open source powerful monitoring system that enables network/ | + | The current list of supported |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\nagios.jpg | + | The package also includes a couple of useful tools. The first, saidar, provides a curses-based interface to viewing the current state of the system. The second, statgrab, gives a sysctl-style interface to the statistics gathered by libstatgrab. This extends the use of libstatgrab to people writing scripts or anything else that can’t easily make C function calls. Included with statgrab is a script to generate an MRTG configuration file to use statgrab. |
- | Nagios | + | The library part of libstatgrab |
- | * http:// | + | |
- | * Read More : Install Nagios Monitoring System to Monitor Remote Linux/ | + | |
+ | ===== RRDtool ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | RRDtool is the OpenSource industry standard, high performance data logging and graphing system for time series data. RRDtool can be easily integrated in shell scripts, perl, python, ruby, lua or tcl applications. | ||
- | Icinga – Next Generation Server Monitoring | + | ===== monit / M/Monit ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Monit is a free, open-source process supervision tool for Unix and Linux. With Monit, system status can be viewed directly from the command line, or via the native HTTP(S) web server. Monit is able to do automatic maintenance, | ||
- | Unlike the other tools, Icinga is a network monitoring program, it shows you many options | + | Monit can restart |
- | Icinga Monitoring ToolIcinga Monitoring Tool | + | |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Icinga.jpeg | + | Additionally M/Monit can monitor and manage distributed computer systems, M/Monit uses Monit as an agent and can manage and monitor. M/Monit is licensed software. |
- | Features of Icinga | + | ===== Linux process explorer ===== |
- | * Icinga is also free and open-source. | + | * https:// |
- | * Very functional in monitoring everything you may have in networking. | + | Graphical process explorer |
- | * Support | + | |
- | * Real-time monitoring with A nice web interface. | + | |
- | * Very expendable with modules | + | |
- | * Icinga supports applying services | + | |
- | * A lot more to discover.. | + | |
- | * Read More: Install Icinga in RHEL/CentOS 7/6 | + | ===== df ===== |
+ | | ||
+ | * https:// | ||
+ | df (abbreviation for disk free) is a standard Unix command used to display the amount of available disk space for file systems on which the invoking user has appropriate read access. df is typically implemented using the statfs or statvfs system calls. | ||
+ | ===== discus ===== | ||
+ | * https:// | ||
+ | discus | ||
- | Zenoss | + | ===== dstat ===== |
+ | * https:// | ||
+ | * http:// | ||
+ | dstat - versatile tool for generating system resource statistics. Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat overcomes some of the limitations and adds some extra features. Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval). Dstat also cleverly gives you the most detailed information in columns and clearly indicates in what magnitude and unit the output is displayed. Less confusion, less mistakes, more efficient. | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\zenoss.jpg | + | Dstat is unique in letting you aggregate block device throughput for a certain diskset or network bandwidth for a group of interfaces, ie. you can see the throughput for all the block devices that make up a single filesystem or storage system. |
- | Zenoss provides a web interface that allows | + | Dstat allows |
- | * http:// | + | |
+ | ===== Net-SNMP ===== | ||
+ | * http:// | ||
+ | * http:// | ||
+ | Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6. The suite includes command-line applications to: | ||
+ | * retrieve information from an SNMP-capable device, either using single requests (snmpget, snmpgetnext), | ||
+ | * manipulate configuration information on an SNMP-capable device (snmpset). | ||
+ | * retrieve a fixed collection of information from an SNMP-capable device (snmpdf, snmpnetstat, | ||
+ | * convert between numerical and textual forms of MIB OIDs, and display MIB content and structure (snmptranslate). | ||
+ | * A graphical MIB browser (tkmib), using Tk/perl. | ||
+ | * A daemon application for receiving SNMP notifications (snmptrapd). Selected notifications can be logged (to syslog, the NT Event Log, or a plain text file), forwarded to another SNMP management system, or passed to an external application. | ||
+ | * An extensible agent for responding to SNMP queries for management information (snmpd). This includes built-in support for a wide range of MIB information modules, and can be extended using dynamically loaded modules, external scripts and commands, and both the SNMP multiplexing (SMUX) and Agent Extensibility (AgentX) protocols. | ||
+ | * A library for developing new SNMP applications, | ||
- | Cacti | + | Net-SNMP is available for many Unix and Unix-like operating systems and also for Microsoft Windows. Note: Functionality can vary depending on the operating system. Please see the README files for information specific to your platform. |
- | Cacti is nothing more than a free & open-source web interface for RRDtool, | + | ===== incron ===== |
+ | * https:// | ||
+ | * http:// | ||
+ | This program | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\cacti.jpg | + | This project was kicked off by Lukas Jelinek in 2006 and then unfortunatally abandoned in 2012. Upstream development and bug-tracking/ |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Cacti2.png | + | |
- | (And one for luck!) Cacti is network graphing solution that uses the RRDtool data storage. It allows a user to poll services at predetermined intervals | + | inotify can be used for such tasks: |
- | * http:// | + | * 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 | ||
- | Features of Cacti | + | There is much more that can be done using inotify. Switch your fantasy |
- | * Free & open-source, | + | |
- | * Written in PHP with PL/SQL. | + | |
- | * A cross-platform tool, it works on Windows | + | |
- | * User management; you may create different users accounts for Cacti. | + | |
- | Read More: Install Cacti Network | + | ===== monitorix ===== |
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services | ||
+ | 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 includes its own HTTP server built in (which is listening by default on port 8080/TCP) to see the statistics graphs, so you aren't forced to install a third-party web server to use it. Just point your browser at http:// | ||
- | Zabbix | + | All of its development was initially created for monitoring Red Hat, Fedora and CentOS Linux systems, so this project was made keeping in mind these type of distributions. Today it runs on different GNU/Linux distributions and even in other UNIX systems like FreeBSD, OpenBSD and NetBSD. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\zabbix-monitoring.png | + | 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. |
- | Zabbix is an open source infrastructure monitoring solution. It can use most databases out there to store the monitoring statistics. The Core is written in C and has a frontend in PHP. If you don’t like installing an agent, Zabbix might be an option for you. | + | ===== vmstat ===== |
- | * http://www.zabbix.com/ | + | * https:// |
+ | * https://en.wikipedia.org/wiki/ | ||
+ | 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. | ||
+ | The vmstat tool is available on most Unix and Unix-like operating systems, such as FreeBSD, Linux or Solaris. | ||
- | nmon - Monitor | + | ===== Web VMStat ===== |
+ | * https:// | ||
+ | Display live Linux system stats (memory, CPU, IO, etc) in a pretty web-page, with charts and everything. | ||
- | Nmon (stands for Nigel’s performance Monitor) tool, which is used to monitor all Linux resources such as CPU, Memory, Disk Usage, Network, Top processes, NFS, Kernel and much more. This tool comes in two modes: Online Mode and Capture Mode. | + | ===== 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. | ||
- | The Online Mode, is used for real-time monitoring | + | ===== mpstat ===== |
+ | * https:// | ||
+ | * http:// | ||
+ | mpstat - Report processors related statistics. | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\nmon.jpg | + | 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. |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Nmon-620x383.jpeg | + | ===== pmap ===== |
+ | * https://linux.die.net/ | ||
+ | pmap - report memory map of a process. The pmap command reports the memory map of a process or processes. | ||
- | nmon either outputs the data on screen or saves it in a comma separated file. You can display CPU, memory, network, filesystems, | + | ===== ps ===== |
- | * http://nmon.sourceforge.net/pmwiki.php | + | * https:// |
- | * Read More: Install Nmon (Performance Monitoring) Tool in Linux | + | * https://en.wikipedia.org/wiki/ |
+ | ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, | ||
+ | ===== 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 is set to zero, the sar command displays the average statistics for the time since the system was started. If the interval parameter is specified without the count parameter, then reports are generated continuously. The collected data can also be saved in the file specified by the -o filename flag, in addition to being displayed onto the screen. If filename is omitted, sar uses the standard system activity daily data file, the / | ||
- | conky | + | ===== Sysstat ===== |
+ | * http:// | ||
+ | The sysstat utilities are a collection of performance monitoring tools for Linux. These include sar, sadf, mpstat, iostat, tapestat, pidstat, cifsiostat | ||
+ | Sysstat is Open Source / Free Software, and is freely available under the GNU General Public License, version 2. | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\conky.jpg | + | Sysstat' |
- | Conky monitors a plethora | + | * Includes four groups |
- | * http://conky.sourceforge.net/ | + | * Can monitor |
- | + | * Input / Output | |
- | + | * CPU statistics | |
- | Glances | + | * Memory, hugepages |
- | + | * Virtual memory, paging and fault statistics. | |
- | Glances is a monitoring tool built to present as much information as possible in any terminal size, it automatically takes the terminal window size it runs on, in other words, it’s a responsive monitoring tool. | + | * Per-task (per-PID) memory and page fault statistics. |
- | + | * Global CPU and page fault statistics | |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\glances.jpg | + | * Process creation activity. |
- | + | * Interrupt statistics (global, per CPU and per interrupt, including potential APIC interrupt sources, hardware and software interrupts). | |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Glances2.jpeg | + | * Extensive network statistics: network interface activity (number of packets |
- | + | * Fibre Channel traffic statistics. | |
- | Glances monitors your system and aims to present | + | * Software-based network processing (softnet) statistics. |
- | * https:// | + | * NFS server and client activity. |
- | * Install Glances on RHEL/CentOS/ | + | * Sockets statistics. |
- | + | * Run queue and system load statistics. | |
- | Features | + | * Kernel internal tables utilization statistics. |
- | * Licensed under LGPL and written in Python. | + | * System and per Linux task switching |
- | * Cross-platform, it works on Windows, Mac, BSD and Linux. | + | * Swapping statistics. |
- | * Available in most Linux official repositories. | + | * TTY devices activity. |
- | * A It gives a lot of information about your system. | + | * Power management statistics (instantaneous |
- | * Built using curses. | + | * USB devices plugged into the system. |
- | + | * Filesystems utilization (inodes | |
- | + | * Tape drives statistics. | |
- | Sarg – Squid Bandwidth Monitoring | + | * Pressure-Stall Information statistics. |
- | + | * Can generate | |
- | Sarg (Squid Analysis Report Generator) is a free & open-source tool which act as a monitoring tool for your Squid proxy server, it creates reports about your Squid proxy server users, IP addresses, the sites they visit beside some other information. | + | * Most system |
- | Monitor Squid Proxy LogsMonitor Squid Proxy Logs | + | * Allows to configure the length of data history to keep. |
- | + | * On the fly detection | |
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Sarg.jpeg | + | |
- | + | * Support | |
- | Features of Sarg | + | * Works on many different architectures, |
- | * Licensed under GPL 2 and available in many languages. | + | * Needs very little |
- | * Works under Linux & FreeBSD. | + | * System statistics collected by sar/ |
- | * Generates report in HTML format. | + | * sar data can also be exported |
- | * Very easy to install & use. | + | * Smart color output |
- | + | * Internationalization | |
- | Read More: Install Sarg “Squid Bandwidth Monitoring” Tool in Linux | + | * Sysstat |
- | + | * Many programs available on the internet | |
- | + | * iostat has support for devices managed by drivers | |
- | saidar | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\saidar.jpg | + | |
- | + | ||
- | Saidar is a very small tool that gives you basic information about your system resources. It displays a full screen of the standard system resources. The emphasis | + | |
- | * https:// | + | |
- | + | ||
- | + | ||
- | + | ||
- | RRDtool | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\rrdtool.jpg | + | |
- | + | ||
- | RRDtool is a tool developed to handle round-robin databases or RRD. RRD aims to handle time-series data like CPU load, temperatures etc. This tool provides a way to extract RRD data in a graphical format. | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | monit | + | |
- | + | ||
- | Monit is a free open source | + | |
- | + | ||
- | It monitors services like Apache, MySQL, Mail, FTP, ProFTP, Nginx, SSH and so on. The system status can be viewed from the command line or using it own web interface. | + | |
- | + | ||
- | Monit is a nice program that monitors your Linux & Unix server, it can monitor everything you have on your server, from the main server (Apache, Nginx..) to files permissions, | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\monit.jpg | + | |
- | + | ||
- | Monit has the capability of sending you alerts as well as restarting services if they run into trouble. It’s possible to perform any type of check you could write a script for with monit and it has a web user interface to ease your eyes. | + | |
- | * http:// | + | |
- | * Read More: Install Monit Tool in RHEL/ | + | |
- | * Read More : Linux Process Monitoring with Monit | + | |
- | + | ||
- | Features of Monit | + | |
- | * Free & open-source, released under AGPL and written in C. | + | |
- | * It can be started from the command line interface or via its special web interface. | + | |
- | * Very effective in monitoring all the software on your system and services. | + | |
- | * A nice web interface with beautiful charts for CPU and RAM usage. | + | |
- | * Monit can automatically take actions in emergency situations. | + | |
- | * A lot more.. | + | |
- | + | ||
- | + | ||
- | Linux process explorer | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\linux-process-monitor.jpg | + | |
- | + | ||
- | Linux process explorer is akin to the activity | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | df | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\df.jpg | + | |
- | + | ||
- | df is an abbreviation for disk free and is pre-installed program in all unix systems used to display the amount of available disk space for filesystems which the user have access to. | + | |
- | + | ||
- | + | ||
- | discus | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\discus.jpg | + | |
- | + | ||
- | Discus is similar to df however it aims to improve df by making it prettier using fancy features as colors, graphs and smart formatting of numbers. | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | Apache Status Monitoring | + | |
- | + | ||
- | Apache Module mod_status is an Apache server module that allows you to monitor | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Apache-Monitoring.jpeg | + | |
- | + | ||
- | Read More: Apache Web Server Load and Page Statistics Monitoring | + | |
- | + | ||
- | + | ||
- | xosview | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\xosview.jpg | + | |
- | + | ||
- | xosview is a classic | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | Dstat | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\dstat.jpg | + | |
- | + | ||
- | Dstat aims to be a replacement for vmstat, iostat, netstat | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | Net-SNMP | + | |
- | + | ||
- | SNMP is the protocol ‘simple network management protocol’ and the Net-SNMP tool suite helps you collect accurate information about your servers using this protocol. | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | incron | + | |
- | + | ||
- | Incron allows you to monitor a directory tree and then take action on those changes. If you wanted to copy files to directory ‘b’ once new files appeared in directory ‘a’ that’s exactly what incron does. | + | |
- | * http:// | + | |
- | + | ||
- | + | ||
- | monitorix – System and Network Monitoring | + | |
- | + | ||
- | Monitorix is a free lightweight utility that is designed to run and monitor system and network resources as many as possible in Linux/Unix servers. It has a built in HTTP web server that regularly collects system and network information and display them in graphs. It Monitors system load average and usage, memory allocation, disk driver health, system services, network ports, mail statistics | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Monitorix-Monitoring-592x450.png | + | |
- | + | ||
- | Monitorix is lightweight | + | |
- | * http://www.monitorix.org/ | + | |
- | * Read More : Monitorix a System and Network Monitoring Tool for Linux | + | |
- | + | ||
- | + | ||
- | vmstat | + | |
- | + | ||
- | Linux VmStat command used to display statistics | + | |
- | + | ||
- | procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- | + | |
- | | + | |
- | | + | |
- | + | ||
- | + | ||
- | vmstat or virtual memory statistics is a small built-in tool that monitors | + | |
- | + | ||
- | For more Vmstat examples read : 6 Vmstat Command Examples in Linux | + | |
- | + | ||
- | + | ||
- | Web VMStat – System Statistics Monitoring | + | |
- | + | ||
- | Web VMStat is a very simple web application programmer, that provides a real time system information usage, from CPU to RAM, Swap and input/ | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Web-VMStat.png | + | |
- | + | ||
- | Read More: Web VMStat: A Real Time System Statistics Tool for Linux | + | |
- | + | ||
- | + | ||
- | uptime | + | |
- | + | ||
- | This small command | + | |
- | + | ||
- | + | ||
- | 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 | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\Sysstat-620x381.png | + | |
- | + | ||
- | Features of Sysstat | + | |
- | * Available in many Linux distributions repositories | + | |
- | * Ability | + | |
- | * Ability to monitor input & output statistics | + | |
- | * Ability to output reports about network interfaces and devices, with support | + | |
- | * Sysstat | + | |
- | * Many other features.. | + | |
- | + | ||
- | Read More: Install | + | |
- | + | ||
- | + | ||
- | 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 | + | |
- | * http:// | + | |
- | * Read More: Install Collectl (All-in-One Performance Monitoring) Tool in Linux | + | |
- | + | ||
- | + | ||
- | iostat | + | |
- | + | ||
- | ~\ownCloud\zim\Bilder\DEF\artikel-linux-monitoring-tools\iostat.jpg | + | |
+ | ===== iostat ===== | ||
+ | * http:// | ||
+ | * http:// | ||
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.1644198977.txt.gz · Last modified: 2022/02/07 01:56 by rokkitlawnchair