Introduction

Collectd is great, but with a functional web interface, it’s even better. We’re going to see how to install Collection3, an interface that isn’t necessarily pretty, but is very functional.

Installation

You must have a web server like Apache and CGI enabled. Here’s what you need to install if you choose Apache:

1
aptitude install apache2 librrds-perl libconfig-general-perl libhtml-parser-perl libregexp-common-perl

I haven’t mentioned it, but it’s obvious that you need Collectd installed.

Configuration

We’ll configure the Apache2 part:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ScriptAlias /collectd/bin/ /usr/share/doc/collectd/examples/collection3/bin/
Alias /collectd/ /usr/share/doc/collectd/examples/collection3/

<Directory /usr/share/doc/collectd/examples/collection3/>
    AddHandler cgi-script .cgi
    DirectoryIndex bin/index.cgi
    Options +ExecCGI
    Order Allow,Deny
    Allow from all
</Directory>

Then restart Apache2 or reload it.

You can now access your data via the following address: http://collectd-server/collectd/

Resources

Last updated 09 Jun 2010, 21:58 CEST. history