ngxtop: An artifact to monitor Nginx in real time on the command line
The Nginx web server needs to be monitored in real time when it is running in a production environment. In fact, network monitoring software such as Nagios, Zabbix, and Munin support Nginx monitoring. If you don’t need the comprehensive reporting or long-term data statistics functions provided by the above software, but just need a quick and easy way to monitor the requests of the Nginx server, it is recommended that you use a command line tool called ngxtop. ngxtop borrows from the famous top command both in interface and name. ngxtop is displayed in real time by analyzing Nginx or other log files and using an interface similar to the top command. How to use ngxtop to monitor Nginx web server in real time? Install ngxtop on Linux First install the dependency library pip in the Linux system (Annotation: ngxtop is written in python). Then install ngxtop using the following command. $ sudo pip install ngxtop ngxtop uses The basic usage is as follows: ngxtop [options] ngxtop [options] (print|top|avg|sum) ngxtop info Here are some general options. -l : specify the full path to the log file (Nginx or Apache2) -f : log format –no-follow: Process the currently written log file…