Measuring server load with collectd, Part II
15 Jun 2010 by Misha Dragojevic
In previous post, Part 1 we explained how to configure “collectd” daemon on client machines and on a server. In this post we will explain how to configure Apache to present the data.
Let’s start by clarifying that “collectd” is not used to visualize the data, only to collect and store. However, as part of “collectd” distribution, you get “collection3” set of Perl scripts that can be installed under Apache. If you are using Ubuntu (or Debian), those files are in /usr/share/doc/collectd/examples/collection3/.
This assumes that Apache is configured and works fine. Second assumption is that Apache document root is in “/var/www” (default location). If that location is somewhere else, you need to adjust the process accordingly. All steps below need to be followed on collectd server (in step 1 we called it “myserver.mydomain”)
Step 1: Install Perl modules
*Step 2*: Copy Perl scripts from "collectd" distribution location to Apache DocumentRoot location.Step 3: Configure Apache. Create configuration file /etc/apache2/sites-available/collection3
Restart Apache
Graphs
If everything went fine, you should see some nice looking graphs. Few examples are below:



