Cool and Collected with collectd

Tutorials – Collectd

Article from Issue 194/2017
Author(s):

The collectd tool harvests your system stats and stores them for plotting into colorful graphs.

Linux has a host of command-line tools for probing what's going on under the hood. To list just a few examples, there's top, which shows what processes are using which resources, df, which shows how much disk space is free, and iftop to show how much data is flowing through the network.

If you really want to get fine-grained details, you can poke about in the /proc filesystem that the kernel automatically populates with precise details of everything that happens, but it can be a little too low-level for mere mortals to understand. Although all these tools are useful, they all have one fatal flaw: They only tell you what's happening right now. In this article, we're going to look at collectd [1], which hoovers up your system stats and stores them, ready to be interrogated and plotted into colorful graphs.

You'll probably find collectd and kcollectd (the graphical front end we'll be using) in your package manager. On Debian, Ubuntu, and derivatives, you can install them with:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Performance Tools

    We describe five tools you can use to monitor and troubleshoot your system's performance.

  • Virtual Test Network

    If you don't have room on your desk for a whole laboratory of servers, simply hitch up a virtual playground on your own workstation.

  • Revive Your Old Laptop

    A few years ago, I bought an IBM ThinkPad T41p. It’s a great machine that served me well for a long time, although for the last year it mainly sat on the shelf. I had some free time at hand, so I decided to give it one more chance.

  • Tool Tips

    Tool review: Dialog 0.7, virtenv 0.8.6, collectd 5.4.0, convmv 1.15, Drukkar 1.11, and ngIRCd 20.3.

  • Skydive

    If you don't speak fluent Ethernet, it sometimes helps to get a graphical view of what your network is doing. Skydive offers visual insights that could reveal complex error patterns.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News