Collectd on Ubuntu 11.10 - fast & easy

We will set up collectd with web rrd graphs on ubuntu 11.10 in few small steps.
ubuntu@ec2lab:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:        11.10
Codename:       oneiric
1. You must install few deb archives:
ubuntu@ec2lab:~$ sudo apt-get install apache2 libconfig-general-perl libregexp-common-perl librrds-perl collectd
2. Next, create file /etc/apache2/conf.d/collection3.conf
ScriptAlias /collectd/bin/ /usr/share/doc/collectd-core/examples/collection3/bin/
Alias /collectd/ /usr/share/doc/collectd-core/examples/collection3/

< Directory /usr/share/doc/collectd-core/examples/collection3/>
    AddHandler cgi-script .cgi
    DirectoryIndex bin/index.cgi
    Options +ExecCGI
    Order Allow,Deny
    Allow from all
< /Directory>
3. Reload apache and start collectd deamon:
ubuntu@ec2lab:~$ sudo /etc/init.d/apache2 reload
ubuntu@ec2lab:~$ sudo /etc/init.d/collectd start
Yours basic collectd configuration is ready ! You can see example on

Brak komentarzy:

Prześlij komentarz