Difference between revisions of "Collectd installation"

From VoIPmonitor.org
Jump to navigation Jump to search
Line 14: Line 14:
 
== Debian7 ==
 
== Debian7 ==
 
Install collectd packages from debian main repositories:
 
Install collectd packages from debian main repositories:
  apt-get install collectd librrds-perl
+
  apt-get install  
 +
 
 +
Install perl modules
 +
apt-get install build-essential autoconf automake libtool gdb
 +
cpan install CPAN
 +
cpan Config::General
 +
cpan Regexp::Common
 +
cpan HTML::Entities
 +
apt-get install librrds-perl
 +
collectd librrds-perl
 +
 
 
Create link from default www directory to collectd's collections.
 
Create link from default www directory to collectd's collections.
 
  ln -s /usr/share/doc/collectd-core/examples/collection3/ /var/www/collectd
 
  ln -s /usr/share/doc/collectd-core/examples/collection3/ /var/www/collectd
 +
 +
Restart apache web-server (you should have cgid mod enabled "a2enmod cgid")
 +
/etc/init.d/apache2 restart
 +
 
You can now access using browser:
 
You can now access using browser:
 
  http://server_ip/collectd/bin/index.cgi
 
  http://server_ip/collectd/bin/index.cgi
 
  
 
== Debian8 ==
 
== Debian8 ==

Revision as of 15:30, 27 July 2015

Centos

Install collectd packages from epel repositories:

yum install epel-release
yum install collectd
yum install collectd-web
service httpd restart

You can now access collectd collections entering this url to a browser:

http://server_ip/collectd/bin/index.cgi

Debian

Debian7

Install collectd packages from debian main repositories:

apt-get install 

Install perl modules

apt-get install build-essential autoconf automake libtool gdb
cpan install CPAN
cpan Config::General
cpan Regexp::Common
cpan HTML::Entities
apt-get install librrds-perl
collectd librrds-perl

Create link from default www directory to collectd's collections.

ln -s /usr/share/doc/collectd-core/examples/collection3/ /var/www/collectd

Restart apache web-server (you should have cgid mod enabled "a2enmod cgid")

/etc/init.d/apache2 restart

You can now access using browser:

http://server_ip/collectd/bin/index.cgi

Debian8

Install collectd packages from debian main repositories:

apt-get install collectd

Install perl modules:

apt-get install build-essential autoconf automake libtool gdb
cpan install CPAN
cpan Config::General
cpan Regexp::Common
cpan HTML::Entities
apt-get install librrds-perl

Create link from default www directory to collectd's collections.

ln -s /usr/share/doc/collectd-core/examples/collection3/ /var/www/html/collectd

Restart apache

service apache2 restart

You can now access using browser:

http://server_ip/collectd/bin/index.cgi