############################################## ### Installation of Cacti on Ubuntu 12.04 LTS ############################################## root@instructor01:/# apt-get update root@instructor01:/# apt-cache search cacti cacti - Frontend to rrdtool for monitoring systems and services cacti-spine - Multi-Threading poller for cacti libpam-blue - PAM module for local authenticaction with bluetooth devices serverstats - a simple tool for creating graphs using rrdtool root@instructor01:/# apt-get install cacti cacti-spine Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dbconfig-common libcairo2 libdatrie1 libdbi1 libpango1.0-0 libphp-adodb libpixman-1-0 librrd4 libthai0 libxcb-render0 libxcb-shm0 php5-snmp rrdtool Suggested packages: php5-ldap snmp-mibs-downloader ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp php5-adodb librrds-perl The following NEW packages will be installed: cacti cacti-spine dbconfig-common libcairo2 libdatrie1 libdbi1 libpango1.0-0 libphp-adodb libpixman-1-0 librrd4 libthai0 libxcb-render0 libxcb-shm0 php5-snmp rrdtool 0 upgraded, 15 newly installed, 0 to remove and 15 not upgraded. Need to get 4753 kB of archives. After this operation, 14.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libpixman-1-0 amd64 0.24.4-1 [228 kB] Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libxcb-render0 amd64 1.8.1-1ubuntu0.2 [13.3 kB] Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libxcb-shm0 amd64 1.8.1-1ubuntu0.2 [5516 B] Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main libcairo2 amd64 1.10.2-6.1ubuntu3 [467 kB] Get:5 http://archive.ubuntu.com/ubuntu/ precise/main libdatrie1 amd64 0.2.5-3 [16.4 kB] Get:6 http://archive.ubuntu.com/ubuntu/ precise/main libthai0 amd64 0.1.16-3 [19.7 kB] Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpango1.0-0 amd64 1.30.0-0ubuntu3.1 [363 kB] Get:8 http://archive.ubuntu.com/ubuntu/ precise/main dbconfig-common all 1.8.47 [458 kB] Get:9 http://archive.ubuntu.com/ubuntu/ precise/main libdbi1 amd64 0.8.4-5.1 [28.5 kB] Get:10 http://archive.ubuntu.com/ubuntu/ precise/universe libphp-adodb all 5.12-1 [552 kB] Get:11 http://archive.ubuntu.com/ubuntu/ precise/main librrd4 amd64 1.4.7-1 [242 kB] Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main php5-snmp amd64 5.3.10-1ubuntu3.7 [11.0 kB] Get:13 http://archive.ubuntu.com/ubuntu/ precise/main rrdtool amd64 1.4.7-1 [369 kB] Get:14 http://archive.ubuntu.com/ubuntu/ precise/universe cacti all 0.8.7i-2ubuntu1 [1891 kB] Get:15 http://archive.ubuntu.com/ubuntu/ precise/universe cacti-spine amd64 0.8.7i-1ubuntu1 [89.0 kB] Fetched 4753 kB in 15s (307 kB/s) Preconfiguring packages ... Selecting previously unselected package libpixman-1-0. (Reading database ... 28890 files and directories currently installed.) Unpacking libpixman-1-0 (from .../libpixman-1-0_0.24.4-1_amd64.deb) ... Selecting previously unselected package libxcb-render0. Unpacking libxcb-render0 (from .../libxcb-render0_1.8.1-1ubuntu0.2_amd64.deb) ... Selecting previously unselected package libxcb-shm0. Unpacking libxcb-shm0 (from .../libxcb-shm0_1.8.1-1ubuntu0.2_amd64.deb) ... Selecting previously unselected package libcairo2. Unpacking libcairo2 (from .../libcairo2_1.10.2-6.1ubuntu3_amd64.deb) ... Selecting previously unselected package libdatrie1. Unpacking libdatrie1 (from .../libdatrie1_0.2.5-3_amd64.deb) ... Selecting previously unselected package libthai0. Unpacking libthai0 (from .../libthai0_0.1.16-3_amd64.deb) ... Selecting previously unselected package libpango1.0-0. Unpacking libpango1.0-0 (from .../libpango1.0-0_1.30.0-0ubuntu3.1_amd64.deb) ... Selecting previously unselected package dbconfig-common. Unpacking dbconfig-common (from .../dbconfig-common_1.8.47_all.deb) ... Selecting previously unselected package libdbi1. Unpacking libdbi1 (from .../libdbi1_0.8.4-5.1_amd64.deb) ... Selecting previously unselected package libphp-adodb. Unpacking libphp-adodb (from .../libphp-adodb_5.12-1_all.deb) ... Selecting previously unselected package librrd4. Unpacking librrd4 (from .../librrd4_1.4.7-1_amd64.deb) ... Selecting previously unselected package php5-snmp. Unpacking php5-snmp (from .../php5-snmp_5.3.10-1ubuntu3.7_amd64.deb) ... Selecting previously unselected package rrdtool. Unpacking rrdtool (from .../rrdtool_1.4.7-1_amd64.deb) ... Selecting previously unselected package cacti. Unpacking cacti (from .../cacti_0.8.7i-2ubuntu1_all.deb) ... Selecting previously unselected package cacti-spine. Unpacking cacti-spine (from .../cacti-spine_0.8.7i-1ubuntu1_amd64.deb) ... Processing triggers for man-db ... Processing triggers for libapache2-mod-php5 ... Package configuration ┌─────────────────────────────────────────┤ Configuring libphp-adodb ├─────────────────────────────────────────┐ │ │ │ WARNING: include path for php has changed! │ │ │ │ libphp-adodb is no longer installed in /usr/share/adodb. New installation path is now /usr/share/php/adodb. │ │ │ │ Please update your php.ini file. Maybe you must also change your web-server configuraton. │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Package configuration ┌─────────────────────────────────┤ Configuring cacti ├─────────────────────────────────┐ │ Please select the webserver type for which cacti should be automatically configured. │ │ Select "None/Others" if you would like to configure your webserver by hand. │ │ Webserver type │ │ Apache2 │ │ Lighttpd │ │ None/Others │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────────────────────┘ Package configuration ┌────────────────────────────────────────────────────────────┤ Configuring cacti├───────────────────────────────────────────────────────────────┐ │ │ │The cacti package must have a database installed and configured before it can be used. This can be optionally handled with dbconfig-common. │ │ │ │ If you are an advanced database administrator and know that you want to perform this configuration manually, or if your database has already │ │ been installed and configured, you should refuse this option. Details on what needs to be done should most likely be provided in │ │ /usr/share/doc/cacti. │ │ │ │ Otherwise, you should probably choose this option. │ │ │ │ Configure database for cacti with dbconfig-common? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Package configuration ┌─────────────────────────────────────────────────────┤ Configuring cacti ├──────────────────────────────────────────────────────┐ │ Please provide the password for the administrative account with which this package should create its MySQL database and user. │ │ │ │ Password of the database's administrative user: │ │ │ │ ______________________________________________________________________________________________________________________________ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Package configuration ┌──────────────────────────────────────────────────────┤ Configuring cacti ├──────────────────────────────────────────────────────┐ │ Please provide a password for cacti to register with the database server. If left blank, a random password will be generated. │ │ │ │ MySQL application password for cacti: │ │ │ │ _______________________________________________________________________________________________________________________________ │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ * Reloading web server config apache2 [ OK ] Setting up libpixman-1-0 (0.24.4-1) ... Setting up libxcb-render0 (1.8.1-1ubuntu0.2) ... Setting up libxcb-shm0 (1.8.1-1ubuntu0.2) ... Setting up libcairo2 (1.10.2-6.1ubuntu3) ... Setting up libdatrie1 (0.2.5-3) ... Setting up libthai0 (0.1.16-3) ... Setting up libpango1.0-0 (1.30.0-0ubuntu3.1) ... Setting up dbconfig-common (1.8.47) ... Creating config file /etc/dbconfig-common/config with new version Setting up libdbi1 (0.8.4-5.1) ... Setting up libphp-adodb (5.12-1) ... Setting up librrd4 (1.4.7-1) ... Setting up php5-snmp (5.3.10-1ubuntu3.7) ... Setting up rrdtool (1.4.7-1) ... Setting up cacti (0.8.7i-2ubuntu1) ... dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf Creating config file /etc/dbconfig-common/cacti.conf with new version Creating config file /etc/cacti/debian.php with new version granting access to database cacti for cacti@localhost: success. verifying access for cacti@localhost: success. creating database cacti: success. verifying database cacti exists: success. populating database via sql... done. dbconfig-common: flushing administrative password Creating config file /etc/cacti/apache.conf with new version Creating config file /etc/cacti/lighttpd.conf with new version * Reloading web server config apache2 [ OK ] Setting up cacti-spine (0.8.7i-1ubuntu1) ... Creating config file /etc/cacti/spine.conf with new version Processing triggers for libc-bin ... ldconfig deferred processing now taking place root@instructor01:/# ### Navigate to the cacti webpage ### http://192.168.0.10/cacti ### Instructor to take the participants through the system. ### IS FINISHED!!!