Collectd installation: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
= Apache2=
= Apache2=


Collectd with librrds requires running web server with enabled module perl and CGI.  (" Options +ExecCGI" needs to be defined under <Directory /where/link/located/to/collectd>)
Collectd with librrds requires running web server on a server for be possible to look at results using web-browser.


==  Enable apache2 modules ==
perl
cgi
using command 'a2enomod' .
== Add CGI handler into apache processing (in mime.conf uncomment)==
  AddHandler cgi-script .cgi
== Define +ExecCGI option ==
under directory where will be collctd's GUI link placed
<Directory "/var/www/html/abcdefg/collectd">
  Options +ExecCGI
</Directory>


= Centos =
= Centos =

Revision as of 01:22, 7 June 2016

Apache2

Collectd with librrds requires running web server on a server for be possible to look at results using web-browser.


Enable apache2 modules

perl
cgi

using command 'a2enomod' .


Add CGI handler into apache processing (in mime.conf uncomment)

 AddHandler cgi-script .cgi


Define +ExecCGI option

under directory where will be collctd's GUI link placed

<Directory "/var/www/html/abcdefg/collectd">
  Options +ExecCGI
</Directory>

Centos

Install collectd packages from epel repositories:

yum install epel-release
yum install collectd
yum install collectd-web


Atention: by default is web-collection accessible only from localhost, see config of httpd (search for 'Deny from' and 'Allow from' and change it:

vim /etc/httpd/conf.d/collectd.conf
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 collectd libregexp-common-perl libconfig-general-perl librrds-perl

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

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  libregexp-common-perl libconfig-general-perl 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