A small example of collectD deployment in Ubuntu

Source: Internet
Author: User
Tags rrd

First, compile the source:
Sudo apt-Get install build-essential
Next, install some necessary packages. You may need to install the necessary plug-ins later. For more information, see http://collectd.org/wiki/index.php/first_steps#creating_graphs:
Sudo apt-Get install librrd2-dev libsensors-dev libsnmp-Dev.
Next, install:
Sudo apt-Get install collectD

Restart the service after installation:
Sudo/etc/init. d/collectD restart

You can find the RRD file generated by monitoring under/var/lib/collectD/RRD.

Next, we want collectD to display it on the front end. Front-end list of collectD 1: http://collectd.org/wiki/index.php/List_of_front-ends
Use the first one for testing. The procedure is as follows.
Sudo wget http://pommi.nethuis.nl/storage/software/cgp/cgp-0.3.tgz
Unzip: sudo tar-zxvf cgp-0.3.tgz
The cgp-0.3.tgz is unzipped in/usr/CGP, And the cgp-0.3 is obtained after unzipping.
MV/usr/CGP/cgp-0.3/var/www/CGP (where CGP is new,/var/WWW is Apache document root)

Modify/var/www/CGP/CONF/config. php:
# CollectD's datadir
$ Config ['datadir '] ='/var/lib/collectD ';
The location is the same as that of the installed collectD.

Then, if PHP is not configured and installed on the machine, you must configure and install it. Otherwise, the final page cannot be opened. Configuration process:

① Upgrade the software package:
Sudo apt-Get update
Sudo apt-Get upgrade
② Install PHP:
Sudo apt-Get install PhP5
Install the GD library of PHP:
Sudo apt-Get install php5-gd
Install Apache's PHP parser:
Sudo apt-Get install libapache2-mod-php5
③ Restart Apache
Sudo/etc/init. d/apache2 restart

Finally, enter http: // localhost/CGP in the browser.
View final image

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.