Artifact Nmon
For example: nmon -f -s 1.
nmon CPU and Disk utilization
A log file will be created. The beginning of the log file is some system metadata (AAA - BBBV part), followed by regular snapshots of the monitored system properties, such as CPU and memory usage. This output file is difficult to process directly by a spreadsheet application, so the Nmon_Analyzer excel macro was born. This tool is great if you are using Windows/Mac and have Microsoft Office installed. If you don't have this environment, you can also use the Nmon2rrd tool. This tool can convert log files into RRD input files and then generate graphics. The process is rigid and a bit cumbersome. Now a more flexible tool has emerged, and I introduce to you pyNmonAnalyzer, which provides a customizable solution to generate structured CSV files and simple HTML reports with images generated with matplotlib.
system requirement:
It can be seen from the name that we need python. In addition, pyNmonAnalyzer also depends on matplotlib and numpy. If you are using a debian-derived system, you need to install these packages first:
$ sudo apt-get install python-numpy python-matplotlib
You can clone the git repository:
$ git clone git@github.com:madmaze/pyNmonAnalyzer.git
Or, download directly from here: pyNmonAnalyzer-1.0.zip. (LCTT translation annotation: This was a project 5 years ago but it has been continuously maintained)
Next we need an Nmon file. If not, you can use the instance provided in the distribution or record a sample yourself: nmon -F test.nmon -s 1 -c 120, which will record 120 snapshots per second. One, stored in the test.nmon file.
Let’s take a look at the basic help information:
$ ./pyNmonAnalyzer.py -h usage: pyNmonAnalyzer.py [-h] [-x] [-d] [-o OUTDIR] [-c] [-b] [-r CONFFNAME] input_file nmonParser converts Nmon monitor files into time-sorted CSV/Spreadsheets for easier analysis, without the use of the MS Excel Macro. Also included is an option to build an HTML report with graphs, which is configured through report.config. positional arguments: input_file Input NMON file optional arguments: -h, --help show this help message and exit -x, --overwrite overwrite existing results (Default: False) -d, --debug debug? (Default: False) -o OUTDIR, --output OUTDIR Output dir for CSV (Default: ./data/) -c, --csv CSV output? (Default: False) -b, --buildReport report output? (Default: False) -r CONFFNAME, --reportConfig CONFFNAME Report config file, if none exists: we will write the default config file out (Default: ./report.config)
This tool has two main options
- Summon the nmon file into a series of independent CSV files
- Use matplotlib to generate HTML reports with graphics
The following command will generate both a CSV file and an HTML report:
$ ./pyNmonAnalyzer.py -c -b test.nmon
This will create a ./data directory, which contains a directory for CSV files (./data/csv/), a directory for PNG images (./data/img/) and an HTML report (./ data/report.html).
By default, images are used in the HTML report to display CPU, disk busyness, memory usage, and network transmission. All of this is defined in a self-explanatory configuration file (report.config). At present, this tool is not particularly flexible, because CPU and MEM cannot be configured other than on and off. However, the next step will be to improve the plotting method and allow users to flexibly specify which plotting method to use for which data.
Currently these reports are very boring and can only print out several basic mark charts, but its functions are still being improved. Currently under development is a wizard to make configuration adjustments easier. If you have any suggestions, find any bugs, or have any feature requests, please feel free to contact me.
The above is the detailed content of Artifact Nmon. For more information, please follow other related articles on the PHP Chinese website!

A GUI for Effortless Flatpak Management: Introducing Warehouse Managing a growing collection of Flatpak applications can be cumbersome using only the command line. Enter Warehouse, a user-friendly graphical interface designed to streamline Flatpak a

This article provides a comprehensive guide to identifying and resolving hard drive bottlenecks in Linux systems. Experienced server administrators will find this particularly useful. Slow disk operations can severely impact application performance,

Efficient QR code generation tool under Linux system In today's digital world, QR codes have become a way to quickly and conveniently share information, simplifying data access from URLs, texts, contacts, Wi-Fi credentials, and even payment information. Linux users can use a variety of tools to create QR codes efficiently. Let's take a look at some popular QR code generators that can be used directly on Linux systems. QRencode QRencode is a lightweight command line tool for generating QR codes on Linux. It is well-received for its simplicity and efficiency and is popular with Linux users who prefer direct methods. Using QRencode, you can use the URL,

Elementary OS 8 Circe: A Smooth and Stylish Linux Experience Elementary OS, a Ubuntu-based Linux distribution, has evolved from a simple theme pack into a fully-fledged, independent operating system. Known for its user-friendly interface, elegant de

Mastering Linux is crucial for any machine learning (ML) engineer. Its command-line interface offers unparalleled flexibility and control, streamlining workflows and boosting productivity. This article outlines essential Linux commands, explained fo

Arch Linux: A Beginner's Command-Line Cheat Sheet Arch Linux offers unparalleled control but can feel daunting for newcomers. This cheat sheet provides essential commands to confidently manage your system. System Information & Updates These com

This guide provides a comprehensive walkthrough of installing and using the Scikit-learn machine learning library on Linux systems. Scikit-learn (sklearn) is a powerful, open-source Python library offering a wide array of tools for various machine l

This guide explains how to leverage Docker for accessing Kali Linux tools, a safer and more efficient alternative to outdated methods like Katoolin. Katoolin is no longer actively maintained and may cause compatibility problems on modern systems. Do


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version
Recommended: Win version, supports code prompts!
