Installation
OpenSuSe user can install collectd using "1-click" installer - here
Debian/Ubuntu user can install collectd using command: apt-get install collectd
For Red Hat, CentOS and Fedora, there are collectd RPM packages in Dag Wieers' repository.
Configuration:
The configuration will lie in /etc/collectd.conf. Open the file and pay particular attention to the LoadPlugin lines : # vi etc/collectd.conf
For each plugin, there is a LoadPlugin line in the configuration. Almost all of those lines are commented out in order to keep the default configuration lean.
There's a wiki page containing a table of all plugins.
The Interval setting controls how often values are read. You should set this once and then never touch it again.
If you're done configuring, you need to (re-)start the daemon. If you installed a binary package there should be an init-script somewhere. Under Debian, the command would be:
# /etc/init.d/collectd restartYou also need to configure your webserver (apache) to display the rrd graph:
Restart your apache server and browse to http://localhost/collectd<IfModule mod_cgi.c>
ScriptAlias /collectd /srv/www/collectd/collection.cgi
<Directory "/srv/www/collectd">
Order allow,deny
Allow from 192.168.1
</Directory>
</IfModule>
0 comments:
Post a Comment