betterprogramming.pub
Open in
urlscan Pro
162.159.153.4
Public Scan
Submitted URL: https://shly.link/fN3h6
Effective URL: https://betterprogramming.pub/4-linux-monitoring-tools-you-should-use-38a136e68639?gi=dc91e94c7269
Submission: On December 18 via manual from RU — Scanned from DE
Effective URL: https://betterprogramming.pub/4-linux-monitoring-tools-you-should-use-38a136e68639?gi=dc91e94c7269
Submission: On December 18 via manual from RU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
Open in app Sign up Sign In Write Sign up Sign In Published in Better Programming You have 2 free member-only stories left this month. Sign up for Medium and get an extra one Tate Galbraith Follow Feb 20, 2020 · 5 min read · Member-only · Listen Save 4 LINUX MONITORING TOOLS YOU SHOULD USE SEE WHAT IS REALLY GOING ON UNDERNEATH THE HOOD WITH THESE TOOLS Photo by Lukas Blazek on Unsplash. If you don’t know what is happening within the underlying operating system of your servers, you’re flying blind. You can make educated guesses, but when it comes down to it, you need raw data — and you need it quickly. In order to make informed decisions on changes to your system, you need to be able to pinpoint issues and examine clear data. Have you ever noticed a machine behaving sluggishly, but CPU usage doesn’t seem very high? Have you discovered extremely high network utilization on a system but don’t know the offending process? These tools can help. The best part is most of them can be used without a GUI and are installed easily on most servers. Below are some of the best monitoring tools for Linux I use on a daily basis to help me diagnose issues quickly and accurately. 1. IOTOP Who is using I/O and how much in iotop. If you’ve ever wondered how much of your precious I/O is being used up by certain processes, iotop to the rescue! I’ve used this countless times to watch disk-hungry processes chew through IOPS. You just can’t get the raw numbers from a traditional tool like top. When you use iotop, you get exactly what it sounds like: an I/O-focused look at processes and system usage. You can use this for a multitude of purposes, but the most critical one is to see disk usage and flag potential bottlenecks. Coupling this tool with others like top or htop provides you with a bigger picture of what’s happening on your machine. One thing I would not suggest using iotop for is benchmarking speed. Although you do get a clear picture of how much I/O each process is using, it is more geared toward live monitoring and not repeated testing. If you’re interested in benchmarking I/O, I would check out a tool called fio. 2. HTOP All the crucial info in a single pane of glass. This is one of my personal favorites. This tool is way more visually appealing than regular top and has a great default color scheme. Right away, you have a clear understanding of what is going on with the system. You can see how many cores the machine has and what their utilization is on a clear horizontal bar graph. You get easy memory usage stats in the same fashion, and you also have the classic top process list at the bottom. The main reason I love htop so much is that it gives me the info I care about quickly. I want to see what my per-core CPU usage and memory utilization are like graphically — not a boring percentage. If you think something is maxing out all the cores on your system and you open htop, then you’ll be seeing quite a lot of red. It’s fast and concise. 3. IPTRAF Sending pings to Google while monitoring in iptraf-ng. This is an incredibly useful tool for diagnosing network issues. With this tool, you can monitor all of the network traffic transiting your system. You can set up filters for specific interfaces or traffic types (like a specific TCP port). This is very similar to Wireshark, except it is much more lightweight and can also be run without a GUI. You can do neat things like get a statistical breakdown of the traffic by overall packet size: Statistical breakdown by packet size in iptraf-ng. You could do something similar with command-line tools like tcpdump or tshark, but this tool is menu-driven and much easier to navigate. If you’re into interactively filtering and viewing your traffic, then IPTraf is a game-changer. 4. MONIT The result of running monit status with a few monitored processes. This is one of the most versatile and robust monitoring tools you can leverage on Linux. Monit has been around for many years and can be configured in numerous ways to support different kinds of threshold and performance alerting. Monit allows you to specify processes, ports, files, and more to monitor on a Linux system. You can set up dynamic alerting patterns with sophisticated back-off timers and messages. One example might be that you want to monitor a specific process to ensure it is running. If the process crashes once, simply restart it. If it begins crash-looping multiple times, don’t restart the process and send an alert instead. Process monitoring like this can easily be achieved in a few lines of configuration with Monit. Monit even has a nice lightweight web interface for the daemon to show you what’s going on at a glance: The Monit web interface. Source: mmonit.com. Whether you manage a single server or a fleet, Monit is one of the easiest, most efficient, and cost-effective (free!) methods to keep an eye on the status of things. CONCLUSION Thank you for taking the time to read. I hope you enjoyed learning about some of my favorite Linux monitoring tools and why they make such a difference when it comes to analyzing misbehaving systems. Linux Developer Programming Infrastructure Engineering 954 954 5 954 5 SIGN UP FOR COFFEE BYTES BY BETTER PROGRAMMING A newsletter covering the best programming articles published across Medium Take a look. By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices. Get this newsletter MORE FROM BETTER PROGRAMMING Follow Advice for programmers. Rianna Cleary ·Feb 20, 2020 HOW TO BUILD A COUNTER USING REDUX Learn the basics of Redux by making a small counting app — This is a tutorial on how to implement an incrementing/decrementing counter using Redux. For this tutorial, it is helpful to already know the fundamentals of: Javascript React What Is Redux, Anyway? Redux is a state container for various code libraries that manages state. In this case, we are using it with React. It’s more… Java Script 5 min read Java Script 5 min read -------------------------------------------------------------------------------- Share your ideas with millions of readers. Write on Medium -------------------------------------------------------------------------------- Alireza Bonab ·Feb 20, 2020 Member-only A BEST PRACTICE SETUP FOR GIT HOOKS AND ESLINT For teams with JavaScript/TypeScript mono repositories — If you are setting up a mono-repo consisting of JavaScript/TypeScript projects and you want to work on it with your team, then you need to setup ESLint properly. There are already tools like husky and lint-staged that you can utilize to set up ESLint on git hooks, but when it… Git 4 min read Git 4 min read -------------------------------------------------------------------------------- Al-Waleed Shihadeh ·Feb 20, 2020 Member-only CACHE AND SERVE STATIC ASSETS IN RAILS WITH NGINX REVERSE PROXY Improve the performance and the speed of your Rails web application by serving and caching static content — In my previous post, I presented three different methods for sharing the static content of Rails applications (it also applies to any web application that should serve static content) with the reverse proxy Nginx. The main reason for sharing the content is to improve the performance and speed of delivering… Programming 5 min read Programming 5 min read -------------------------------------------------------------------------------- Alcivanio (Swift) ·Feb 20, 2020 Member-only BUILD EVENT LISTENERS IN SWIFT How to design event listeners on iOS without adding retain cycles — Today, we will talk about how to create an implementation based on event listeners. This implementation will be retain-cycle-free. I will also give a brief description of how event listeners work and why we have to care about retain cycles when implementing them. Overview of Event Listeners Sometimes, you want to notify one or… Swift 4 min read Swift 4 min read -------------------------------------------------------------------------------- Colby Fayock ·Feb 20, 2020 Member-only WHAT IS THE JAMSTACK AND HOW DO I GET STARTED? But what exactly is it and how can we take advantage of it? — JAMstack sites are all the rage right now in the web dev world. And rightfully so! But what exactly is it and how can we all take advantage of its benefits? What Is This JAMstack? To start, JAMstack is a software architecture and philosophy that adheres to the following components: JavaScript, APIs, and Markup. … Technology 10 min read Technology 10 min read -------------------------------------------------------------------------------- Read more from Better Programming RECOMMENDED FROM MEDIUM Rulleranno READ/DOWNLOAD*! JENKINS 2: UP AND RUNNING: EVOLVE Steve Sangapu HOW AGILE METHODOLOGY RESULTS IN SUCCESSFUL DEV PROJECTS Adson Gomes Oliveira HOW TO DEPLOY A REST API WITHOUT HEROKU (FREE-METHOD) Leone Perdigão WHY IT IS WORTH LEARNING GOLANG Vineet Negi ANSIBLE DYNAMIC INVENTORY PLUGIN. Jason Knight in Level Up Coding “PUTTING ABOVE THE FOLD CSS IN THE MARKUP MAKES YOUR PAGE LOAD FASTER” — AT BEST A HALF TRUTH! Sourav Rakshit THE MUST HAVE PHP TERNARY RESCUE HELPER Bernard Pietraga in travel audience GITOPS CONTINUOUS DELIVERY ON KUBERNETES WITH FLUX, HELM AND CIRCLECI AboutHelpTermsPrivacy -------------------------------------------------------------------------------- GET THE MEDIUM APP TATE GALBRAITH 4.6K Followers Software Engineer @mixhalo & die-hard Rubyist. Amateur Radio operator with a love for old technology. Tweet at me: https://twitter.com/@Tate_Galbraith Follow MORE FROM MEDIUM Mark Vassilevskiy 5 UNIQUE PASSIVE INCOME IDEAS — HOW I MAKE $4,580/MONTH Frank Andrade in Towards Data Science PREDICTING THE FIFA WORLD CUP 2022 WITH A SIMPLE MODEL USING PYTHON Anmol Tomar in CodeX SAY GOODBYE TO LOOPS IN PYTHON, AND WELCOME VECTORIZATION! Anangsha Alammyan in Books Are Our Superpower 4 BOOKS SO POWERFUL, THEY CAN REWIRE YOUR BRAIN Help Status Writers Blog Careers Privacy Terms About Text to speech To make Medium work, we log user data. By using Medium, you agree to our Privacy Policy, including cookie policy.